 | 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
Syntaxvoid CloneAroundAxis(
ISimObject simObject,
int copies,
string angle
)
Sub CloneAroundAxis (
simObject As ISimObject,
copies As Integer,
angle As String
)
Dim instance As IObjects
Dim simObject As ISimObject
Dim copies As Integer
Dim angle As String
instance.CloneAroundAxis(simObject, copies,
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
IObjects objects = app.ActiveProject.Objects;
app.ActiveProject.Coordinates.ActivePlane = "XY";
ISimObject simObject = objects.Get("Box1");
objects.CloneAroundAxis(simObject, 3, "pi/4 rad");
See Also