*assignsystem

References a coordinate system to an element.

Syntax

*assignsystem entity_type mark_id system_id axis only_orient normal_size color

Type

HyperMesh Tcl Modify Command

Description

References a coordinate system to an element. The specified axis of this system is then projected on the element plane. Re-orients and visualizes the element (material) coordinate system for selected elements. When review is complete, the command *vectorsoff must be run.

Inputs

entity_type
The type of entity to update. Only elements are supported.
mark_id
The ID of the mark containing the entities. Valid values are 1 and 2.
system_id
The ID of the system to project onto the element plane. A value of 0 indicates the global axes.
axis
Determines the selected axis of the coordinate system to be projected. This axis is projected onto the element plane to define the element orientation. Angle theta is determined from the new x-element direction and the element normal, and then saved. The new x-element direction is visualized.
-1 - The system ID is saved and the first axis is used for projection and visualization.
0 - First axis.
1 - Second axis.
2 - Third axis.
only_orient
0 - The new x-element directions are shown as continuous gradient lines starting and ending on free edges.
1 - The new x-element directions are displayed as vectors starting from the element centroid.
normal_size
If only_orient =1, this defines the size of the displayed vectors.
color
The color of the vectors or lines. Valid values are 1 through 64.

Examples

To project the z-axis of the global coordinate system (ID = 0) on the element plane of four selected elements and display the projection as blue vectors (color 7) with size = 3:

*createmark elems 1 376 377 389 418
*assignsystem elems 1 0 2 1 5 7
*vectorsoff
To project the local coordinate system (ID = 1) on the element plane of those elements and display the projection as green lines (color 10):
*createmark elems 1 376 377 389 418
*assignsystem elems 1 1 -1 0 0 10
*vectorsoff

Errors

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