*bardirectionupdate
Updates the direction node for multiple bar and/or bar3 elements.
Syntax
*bardirectionupdate mark_id orientation_node y_dir
Type
HyperMesh Tcl Modify Command
Description
Updates the direction node for multiple bar and/or bar3 elements.
Inputs
- mark_id
- The ID of the mark containing the bar and/or bar3 elements to update. Valid values are 1 and 2.
- orientation_node
- The orientation node ID. 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.
Examples
To update bar element 17 with orientation node 5 as the
y-axis:
*createmark elements 1 17
*bardirectionupdate 1 5 1
Errors
Incorrect usage results in a Tcl error. To detect
errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}