 | IObjectsRotate Method |
Rotates an object by a specified angle around the center of active coordinate system.
The axis of rotation is the axis of the coordinate system perpendicular to the active plane.
Namespace:
EMInvent.InventSim.COMServer
Assembly:
InventSim (in InventSim.exe) Version: 5.1.12.6+develop
SyntaxISimObject Rotate(
ISimObject simObject,
string angle
)
Function Rotate (
simObject As ISimObject,
angle As String
) As ISimObject
Dim instance As IObjects
Dim simObject As ISimObject
Dim angle As String
Dim returnValue As ISimObject
returnValue = instance.Rotate(simObject,
angle)
Parameters
- simObject
- Type: EMInvent.InventSim.COMServerISimObject
Object to be rotated. - angle
- Type: SystemString
Angle of rotation.
Return Value
Type:
ISimObject
Examples
IObjects objects = app.ActiveProject.Objects;
app.ActiveProject.Coordinates.ActivePlane = "XZ";
ISimObject simObject = objects.Get("Box1");
objects.Rotate(simObject, "23deg");
See Also