Click or drag to resize

IObjectsCloneAlongLine Method

Clones an object along line i.e. creates a series of clones placed along line with a specified offset.

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

Parameters

simObject
Type: EMInvent.InventSim.COMServerISimObject
Object to be cloned.
copies
Type: SystemInt32
Number of clones to be created (minimum 1).
offset
Type: SystemString
Offset of each clone.
Examples
// To create 3 clones of object spaced by an offset X=3mm and Z=1mm
IObjects objects = app.ActiveProject.Objects;
ISimObject simObject = objects.Get("Box1");
objects.Clone(simObject, 3, "3 mm;0 mm;1 mm");
See Also