Skip to main content
Version: 18

ROTATE_SELECTED

Rotates pre-selected objects.

Description

Rotates pre-selected model space objects, which can be members, plates, supports, links, loads etc.. The roation is defined by the coordinates of the center of rotation, the coordinates of a reference point, and the angle of rotation. The command will execute only if there is 1 or more objects selected.

Syntax

ROTATE_SELECTED [CentX] [CentY] [CentZ] [RefX] [RefY] [RefZ] [Angle]

Command parameters

Command parameterAssignmentValue formatInput options
CentX, CentY, CentZRequiredIntegerLocal, variable
RefX, RefY, RefZRequiredIntegerLocal, variable
AngleRequiredIntegerLocal, variable

CentX, CentY, CentZ:

Coordinates of the center of rotation.

RefX, RefY, RefZ:

Coordinates of the reference point.

Angle:

Angle of rotation. Unit of measurment: degrees [°].

Sample code

Command only:

ROTATE_SELECTED 0 0 0 5000 0 0 90

With added prerequisites: (object creation and selection)

LOAD_SECTION_LIBRARY Sec_ID1 "HEA 200"

CREATE Mem_ID1 Structural_member "HEA 200"
0 0 0
0 0 3000

CREATE Mem_ID2 Structural_Member "HEA 200"
3000 0 0
3000 0 3000

SELECT ALL

ROTATE_SELECTED 0 0 0 5000 0 0 90