Click or drag to resize

IObjectsCloneAroundAxis Method

Clones an object around an axis i.e. creates a series of clones placed around an axis defined by the active coordinate system and spaced by a specified angle.

Namespace:  EMInvent.InventSim.COMServer
Assembly:  InventSim (in InventSim.exe) Version: 5.1.12.6+develop
Syntax
void CloneAroundAxis(
	ISimObject simObject,
	int copies,
	string angle
)

Parameters

simObject
Type: EMInvent.InventSim.COMServerISimObject
Object to be cloned.
copies
Type: SystemInt32
Number of clones to be created (minimum 1).
angle
Type: SystemString
Angle of rotation of each clone.
Examples
// To create 3 clones of object placed around Z axis and spaced by PI/4 radians angle:
IObjects objects = app.ActiveProject.Objects;
// Change active plane to set rotation axis
app.ActiveProject.Coordinates.ActivePlane = "XY";
ISimObject simObject = objects.Get("Box1");
objects.CloneAroundAxis(simObject, 3, "pi/4 rad");
See Also