*baroffsetupdate
Updates the offsets in the global system for multiple bar and/or bar3 elements.
Syntax
*baroffsetupdate mark_id update_offset_a offset_x_a offset_y_a offset_z_a update_offset_b offset_x_b offset_y_b offset_z_b
Type
HyperMesh Tcl Modify Command
Description
Updates the offsets in the global 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
- If non-zero, the offsets at end a are updated.
- update_offset_b
- If non-zero, the offsets at end b are updated.
- offset_x_a
- The offset in the x-direction at end a. This is defined in the global system.
- offset_y_a
- The offset in the y-direction at end a. This is defined in the global system.
- offset_z_a
- The offset in the z-direction at end a. This is defined in the global system.
- offset_x_b
- The offset in the x-direction at end b. This is defined in the global system.
- offset_y_b
- The offset in the y-direction at end b. This is defined in the global system.
- offset_z_b
- The offset in the z-direction at end b. This is defined in the global system.
Examples
To update bar element 23 with offset vector at end a defined as (1.0, 2.0, 3.0) and at end
b as (4.0, 5.0,
6.0):
*createmark elements 1 23
*baroffsetupdate 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
}