*baroffset
Updates the offsets in the global system for a single bar or bar3 element.
Syntax
*baroffset element_id offset_x_a offset_y_a offset_z_a offset_x_b offset_y_b offset_z_b
Type
HyperMesh Tcl Modify Command
Description
Updates the offsets in the global system for a single bar or bar3 element.
Inputs
- element_id
- The ID of the bar or bar3 element to update.
- 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):
*baroffset 23 1.0 2.0 3.0 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
}