Procedure MoveObjs moves object(s) a specified offset distance. The last two parameters, allLayers and allObjects, control which objects are offset by this procedure.
Table - Effect of MoveObjs Parameters
| allLayers | allObjects | Effect |
|---|---|---|
| TRUE | TRUE | Move all objects on all layers |
| TRUE | FALSE | Move selected objects on all layers |
| FALSE | TRUE | Move all objects on active layer |
| FALSE | FALSE | Move selected objects on active layer |
PROCEDURE MoveObjs(
move : REAL;
allLayers : BOOLEAN;
allObjects : BOOLEAN);def vs.MoveObjs(move, allLayers, allObjects):
return None| Name | Type | Description |
|---|---|---|
| move | REAL | X-Y object offset distance. |
| allLayers | BOOLEAN | Move objects on all layers option setting. |
| allObjects | BOOLEAN | Move all objects option setting. |
MoveObjs(3,0,FALSE,FALSE);
{ moves selected objects on active layer 3 units to the right }MoveObjs(1.0, TRUE, FALSE);while (i <= n ):
# Draw road bed
DrawParallelArcs( vs.PRadius - vs.PWidth / 2, 90, vs.PWidth, gPaving_Class )
vs.MoveObjs( vs.PCurb_Width + vs.PWidth, 0, False, False )
vs.Locus( vs.PRadius + vs.PCurb_Width + ( vs.PWidth / 2 ), 0 ); SetAttrsByClassOrParent( vs.LNewObj(), gObjHandle, gCurb_Class )
vs.Rotate( sweepTmp - 90 )
hObj = vs.LNewObj()
vs.DSelectAll()Availability: from All Versions