*createdynamicdataname
Creates a dynamic dataname on an entity.
Syntax
*createdynamicdataname entity_type mark_id dataname=<value> displayname=<displayname > basictype=<value> ?defaultvalue=<value>? ?visible=<value>? ?editable=<value>?
Type
HyperMesh Tcl Modify Command
Description
Creates a dynamic data name on an entity. The entity must support dynamic data names.
Inputs
- entity_type
- The type of the entity to create the data name on.
- mark_id
- The ID of the mark containing the entities. Valid values are 1 and 2.Valid values are 1 and 2.
- dataname=<value>
- The name of the dataname.
- basictype=<value>
- The basic type of the dataname.
- displayname=<value>>
- The display name of the dataname.
- defaultvalue=<value>
- The default value of the dataname.
- visible=<value>
- Defines the visibility of the dynamic data name.
- editable=<value>
- Defines whether the dynamic data name is editable.
Examples
To create dynamic data name for structuralproperty2 and structuralproperty3 entities with the name and display name “Buckling_constant”, the basic type double and the default value 0.272:
*createmark structuralproperties 1 "structuralproperty2" "structuralproperty3"
*createdynamicdataname structuralproperties 1 dataname=Buckling_constant
displayname=Buckling_constant basictype=11 defaultvalue=0.272
Errors
Incorrect usage results in a Tcl error. To detect
errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2022