*barelementupdatelocal

Updates the vector (local system), pin flags and property for multiple bar and/or bar3 elements.

Syntax

*barelementupdatelocal mark_id update_vector vector_id update_pins pin_flags_a pin_flags_b update_property property_name

Type

HyperMesh Tcl Modify

Description

Updates the vector (local system), pin flags and property for multiple bar and/or bar3 elements.

Inputs

mark_id
The mark ID containing the bar and/or bar3 elements to update. Valid values are 1 and 2.
update_vector
If non-zero, vector_id is used to update the local y-axis.
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 vector is defined in the local system at end a.
update_pins
If non-zero, pin_flags_a and pin_flags_b are used to update the pin flags.
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.
update_property
If non-zero, property_name is used to update the property.
property_name
The name of the property collector assigned to the bar.

Examples

To update bar elements 10 and 12 with local y-axis defined by (1.0, 0.0, and 0.0) using the local system at end a and property "crossmem":
*createmark elements 1 12 12
*createvector 1 1.0 0.0 0.0
*barelementupdatelocal 1 1 1 0 0 0 1 crossmem

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}