*barelement
Creates a bar element.
Syntax
*barelement node1 node2 vector_id orientation_node y_dir pin_flags_a pin_flags_b property_name
Type
HyperMesh Tcl Modify Command
Description
Creates a bar element.
Inputs
- node1
 - The first node ID (end a).
 - node2
 - The second node ID (end b).
 - vector_id
 - The ID of the y-axis vector to use, defined using the *createvector command. If used, this must be set to 1. This argument is only used if orientation_node is 0.
 - orientation_node
 - The orientation node ID. If set to 0, then vector_id is used. If non-zero, then y_dir specifies whether this node defines the local y- or local z-axis.
 - y_dir
 - If set to 1, then orientation_node defines the local y-axis of the bar. Otherwise, orientation_node defines the local z-axis.
 - pin_flags_a
 - The pin flags at end a. A pin flag of 0 passes forces in all degrees of freedom.
 - pin_flags_b
 - The pin flags at end b. A pin flag of 0 passes force in all degrees of freedom.
 - property_name
 - The name of the property collector assigned to the bar.
 
Examples
*createvector 1 1.0000 0.0000 0.0000
*barelement 101 102 1 0 0 0 0 "prop1"Errors
if { [ catch {command_name...} ] } {
   # Handle error
}