Align Command

The align command is a combination of the rotate and move commands.

The first align command below will transform the specified volumes by computing a transformation that would align the first surface with the second surface such that the surface centroids are coincident and the normals are pointing either in the same or opposite direction (depending on their initial alignment). The first surface need not be in the specified volumes.

The second form of the align command either aligns a face of a volume or two vertices (forming a direction) with the xy, yz, and xz planes or the x, y, and z axes. If the [reverse] option is specified, the resulting alignment is flipped 180 degrees.

The third form of the command is a rotational alignment, where the specified entities are rotated about the specified axis, where the angle of rotation is the angle between the first and second locations with respect to the axis.

The syntax of the align commands are:

Align Volume <id_range> Surface <surface_id> with Surface <surface_id> [reverse] [include_merged] [preview]

Align Volume <id_range> {Surface <surface_id>| Vertex <vertex_id>} {{X|Y|Z Axis}|{XY|XZ|YZ plane}} [reverse] [include_merged] [preview]

Align Volume <id_range> Location {options} with Location {options} about Axis {options} [include_merged] [preview]

This transformation is useful for aligning surfaces in preparation for geometry decomposition and aligning models for axis-symmetric analysis. If the [include_merged] option is used, all entities that are merged with the specified volume will be included in the align transformation also.