Click or drag to resize

IObjectsMove Method

Moves an object by a specified offset in the active coordinate system.

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

Parameters

simObject
Type: EMInvent.InventSim.COMServerISimObject
Object to be moved.
offset
Type: SystemString
Offset in a form of a vector.

Return Value

Type: ISimObject
Examples
To move an object by X=2mm and Y=3mm:
IObjects objects = app.ActiveProject.Objects;
ISimObject simObject = objects.Get("Box1");
objects.Move(simObject, "2mm; 3mm; 0");
See Also