Rotation
Syntax
<Path>.Rotation:real/real[4] |
The method Rotation sets the rotation of the designated graphic designated by <Path>.
When you assign the attribute, Plant Simulation deactivates graphic inheritance.
You cannot assign the attribute when the graphic is an automatically generated graphic group or when the graphic is located in an automatically generated graphic group.
Data Type of the Value You Can Assign
You can specify:
A value of data type real which sets the rotation around the negative Z-axis at the position at which you inserted the object.
An array of data type real with four values that sets the rotation around the designated axis (values 2 to 4) at the position at which you inserted the object.
Data Type of the Value You Can Assign
When you query the attribute, Plant Simulation returns an array with four values.
Example
var a : any := MyStation._3D.getGraphic("default", [1]).Rotation -- returns an array of size 4 |
MyStation._3D.getGraphic("default", [1]).Rotation := 30 -- rotates the graphic by 30 degrees |
MyStation._3D.getGraphic("default", [1]).Rotation := [45, 0, 1, 0] -- rotates the graphic by 45 degrees around the Y-axis |
Related Topics
Edit 3D Properties > Tab Transformation > Settings for the Rotation
Related Topics
Detailed Access To GraphicsaddGraphicTransformation
deleteGraphic
graphic
groupGraphics
Index
InternalGraphicType
makeAnimatableObject
MaterialActive
MaterialAmbientColor
MaterialDiffuseColor
MaterialEmissiveColor
MaterialShininess
MaterialSpecularColor
MaterialTransparency
Name
NumGraphics
ObstacleForWorker
optimizeByPruningTinyGraphics
optimizeByStructureFlattening
optimizeByVisibilityFilter
Position
Scale
TransformationMatrix
ungroupGraphic