The script illustrated below enables you to:
Create a new Coordinate System.
Specify values for an arbitrary origin. This specifies the Details properties Origin X, Origin Y, and Origin Z.
Set an arbitrary direction vector. This specifies the Details properties X Axis Data, Y Axis Data, and Z Axis Data.
Important: The ability to set arbitrary direction vectors is only available through scripting.
Example Code
# Create a new coordinate system csys = Model.CoordinateSystems.AddCoordinateSystem() # place csys origin at arbitrary (0,25,50) location csys.SetOriginLocation(Quantity(0,"in"), Quantity(25,"in"), Quantity(50,"in")) # set primary X axis to arbitrary (1,2,3) direction csys.PrimaryAxisDirection = Vector3D(1,2,3) # force a graphics redraw to update coordinate system graphics annotations csys.Suppressed=True csys.Suppressed=False