*baroffsetupdatelocal
Updates the offsets in the local system for multiple bar and/or bar3 elements.
Syntax
*baroffsetupdatelocal mark_id update_offset_a offset_x_a offset_y_a offset_z_a update_offset_a offset_x_b offset_y_b offset_z_b
Type
HyperMesh Tcl Modify
Description
Updates the offsets in the local system 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.
- update_offset_a, update_offset_b
- If non-zero, the offsets at end a, and end b are updated, respectively.
- offset_x_a, offset_y_a, offset_z_a
- The offset at end a in the x-direction, y-direction, and z-direction, respectively. This is defined in the local system at end a
- offset_x_b, offset_y_b, offset_z_b
- The offset at end b in the x-direction, y-direction, and z-direction, respectively. This is defined in the local system at end b.
Examples
To update bar element 23 with offset vector at end a defined as (1.0, 2.0, 3.0) relative to
the local system at a and at end b as (4.0, 5.0, 6.0) relative to the local system at
b:
*createmark elements 1 23
*baroffsetupdatelocal 1 1 1.0 2.0 3.0 1 4.0 5.0 6.0
Errors
Incorrect usage results in a Tcl error. To
detect errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}