Click or drag to resize

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
Syntax
ISimObject Rotate(
	ISimObject simObject,
	string angle
)

Parameters

simObject
Type: EMInvent.InventSim.COMServerISimObject
Object to be rotated.
angle
Type: SystemString
Angle of rotation.

Return Value

Type: ISimObject
Examples
// To rotate an object by 23 degress around Y axis:
IObjects objects = app.ActiveProject.Objects;
// Change active plane to set rotation axis
app.ActiveProject.Coordinates.ActivePlane = "XZ";
ISimObject simObject = objects.Get("Box1");
objects.Rotate(simObject, "23deg");
See Also