*createentity - Elements
Create a new element entity with specified data.
Syntax
*createentity entity_type config=<config value> ?modelname=<name_of_model>? ?name1=value1? ?name2=value2? ... ?name3=valueN?
Type
HyperMesh Tcl Modify Command
Description
Creates a new element entity with specified data. Config is a mandatory argument.
Inputs
- entity_type
- The entity type to create.
- config
- The integer value representing the configuration of the element.
- type
- The solver type of the element. If not defined, the default value for specified config will be used.
- nodes
- The list of node IDs for element creation. If not provided, a temporary node is created at [0, 0, 0] position and used to define all required nodes.
- property
- The ID of the property to be assigned to the element.
- direction
- The list of x, y, z vector components defining the direction of beam elements. Default value is {0 0 1}.
Examples
To create a tria element using nodes ID 1, 2,
3:
*createentity elems config=103 nodes={1 2 3}
To create a quad element without defining the
nodes:
*createentity elems config=104
To create a tria element of type
1:
*createentity elems config=103 type=1
To create a beam element with direction
[0,1,0]:
*createentity elems config=60 direction={0 1 0}
To create a tria element of type 1 and assign property ID 5 to
it:
*createentity elems config=103 type=1 property=5
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
2025.1