Procedure Duplicate copies the currently selected objects and moves them the specified offset distance.
PROCEDURE Duplicate(offset : REAL);def vs.Duplicate(offset):
return None| Name | Type | Description |
|---|---|---|
| offset | REAL | Offset value. |
If user has "Offset Duplications" turned off, Duplicate ignores the x/y.
Rect(0,1,1,0);
Duplicate(2,0);
{duplicates the rectangle 2 units right of the original}vs.Rect(0,1,1,0)
vs.Duplicate(2,0)
#{duplicates the rectangle 2 units right of the original} IF kDebugMode THEN alrtdialog( concat('sub MakeSymbol === Begin Sym ', SymName ) );
BeginSym(SymName);
SetSelect(h);
Duplicate(-xLoc, -yLoc);
EndSym;
DelObj(h);
END;
if GetType(temp_h) = 15 then BEGIN {placed symbol}
found_window := TRUE;
DSelectAll;
SetSelect(h);
Duplicate(0,0);
round_wall_copy := FSActLayer;
temp_h := FIn3D(round_wall_copy);
while temp_h <> nil do BEGIN
trash_h := NIL;import vs
# Procedure Duplicate copies the currently selected objects and moves them
# the specified offset distance.
offset = 0.0
vs.Duplicate(offset)Availability: from All Versions