*entitybundleregister
Defines a name and signature for a new entity bundle.
Syntax
*entitybundleregister name entity_type_list also_delete_instance
Type
HyperMesh Tcl Modify Command
Description
Defines a name and signature for a new entity bundle.
In that case, you would usually use also_delete_instance to additionally discard that data saved with that bundle name. It is not necessary to discard the data. You could have the bundle registered and active only while a particular dialog or browser is displayed and unregister the definition whenever it is not displayed, but let the data persist between uses.
Inputs
- name
- The name to use for the entity bundle. If the name is already in use, this overwrites the prior definition.
- entity_type_list
- The signature to use for the data of the entity bundle. This is a list of entity type names (for example, "components materials elements") with each item being a list of entities of those particular entity types. A maximum of 10 entity types can be provided.
- also_delete_instance
- If entity_type_list is empty, any data associated with that definition may be kept in the database for future use.
Examples
*entitybundleregister "compbundle" "components components" 1
*entitybundleregister "compbundle" "" 1
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
14.0.130