 | 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
SyntaxISimObject Move(
ISimObject simObject,
string offset
)
Function Move (
simObject As ISimObject,
offset As String
) As ISimObject
Dim instance As IObjects
Dim simObject As ISimObject
Dim offset As String
Dim returnValue As ISimObject
returnValue = instance.Move(simObject,
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