PreviousNext
Help > Programming PhotoModeler - Scripting/DDE Interface > Commands > RotateAxes
RotateAxes

Description:

Set the rotate part of the project coordinate transform based on two sets of axes defined by points or camera stations.

Syntax:

"RotateAxes axesType axis1ID1 axis1ID2 axis2ID1 axis2ID2 item1Type item2Type item3Type item4Type"

where:

axesType = 1 for X&Y axes, 2 for X&Z axes, 3 for Y&Z axes

axis1ID1 is the ID of the 1st item (point or camera station, see below) of the 1st axes

axis1ID2 is the ID of the 2nd item (point or camera station, see below) of the 1st axes

axis2ID1 is the ID of the 1st item (point or camera station, see below) of the 2nd axes

axis2ID2 is the ID of the 2nd item (point or camera station, see below) of the 2nd axes

 

and optional (default is point type):

 

item1Type is the type of the 1st item of 1st axes - 1 for Point, 2 for Camera Station

item2Type is the type of the 2nd item of 1st axes - 1 for Point, 2 for Camera Station

item3Type is the type of the 1st item of 2nd axes - 1 for Point, 2 for Camera Station

item4Type is the type of the 2nd item of 2nd axes - 1 for Point, 2 for Camera Station

Return:

ReturnsĀ  "1" if successful or "0" if not

Example:

"RotateAxes 1 38 30 42 15" would set up an X axes using points 38 and 30, and a Y axis using points 42 and 15

"RotateAxes 2 1 30 2 3 1 2 2 2" would set up an X axes using camera station 1 and point 30, and a Z axis using cam station 2 and camear station 3