DeleteObjs | Object Editing |
Declaration:
PROCEDURE DeleteObjs
; Description:
Procedure DeleteObjs deletes all selected objects on the active layer. Using this procedure when the layer display mode is Show/Snap/Modify will cause selected objects on any visible layer will be deleted.
Example:
DSelectAll; SelectObjs(((T=Locus) & (NOT V))); DeleteObjs;
DelObject | Object Editing |
Declaration:
PROCEDURE DelObject
( h:HANDLE ) ; Description:
Procedure DelObject deletes the referenced object from the document.Parameters:
h Handle to object. Example:
DelRecord | Object Editing |
Declaration:
PROCEDURE DelRecord
( h :HANDLE; name :STRING ) ; Description:
Procedure DelRecord removes an attached record from the referenced object.Parameters:
h Handle to object. name Name of record to be removed.
Duplicate | Object Editing |
Declaration:
PROCEDURE Duplicate
( offsetDX :REAL; offsetDY :REAL ) ; Description:
Procedure Duplicate copies the currently selected objects on the active layer and moves them the specified offset distance.Parameters:
offset Offset value. Example:
Rect(0,1,1,0); Duplicate(2,0); {duplicates the rectangle 2 units right of the original}
HMove | Object Editing |
Declaration:
PROCEDURE HMove
( h :HANDLE; xOffset :REAL; yOffset :REAL ) ; Description:
Procedure HMove moves the referenced object a relative offset distance.
Parameters:
h Handle to object. xOffset X offset distance. yOffset Y offset distance. Example:
HMove(handleToObject,2,2);
HRotate | Object Editing |
Declaration:
PROCEDURE HRotate
( h :HANDLE; centerX :REAL; centerY :REAL; rotationAngle :REAL ) ; Description:
Procedure HRotate rotates the referenced object about a coordinate point location.
Parameters:
h Handle to object. center X-Y coordinates of center point of rotation. rotationAngle Angle of rotation. Example:
HRotate(objHd,3,5,60d);
Move3D | Object Editing |
Declaration:
PROCEDURE Move3D
( xDistance :REAL; yDistance :REAL; zDistance :REAL ) ; Description:
Procedure Move3D moves the most recently created three-dimensional object a relative distance from it's original location. The object is moved relative to its center.
Parameters:
xDistance X offset distance. yDistance Y offset distance. zDistance Z offset ditance. Example:
BeginXtrd(0',2"); Rect(0",1",1",0"); EndXtrd; Move3D(3",1",2");
Move3DObj | Object Editing |
Declaration:
PROCEDURE Move3DObj
( h :HANDLE; xDistance :REAL; yDistance :REAL; zDistance :REAL ) ; Description:
Procedure Move3DObj moves the referenced object a specified distance from its current location. Movement distances are calculated from the 3D center of the object.Parameters:
h Handle to object. xDistance X offset distance. yDistance Y offset distance. zDistance Z offset distance. Example:
Move3DObj(HandleToObj,2,4,0);
MoveObjs | Object Editing |
Declaration:
PROCEDURE MoveObjs
( moveDX :REAL; moveDY :REAL; allLayers :BOOLEAN; allObjects :BOOLEAN ) ; Description:
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
Parameters:
move X-Y object offset distance. allLayers Move objects on all layers option setting. allObjects Move all objects option setting. Example:
MoveObjs(3,0,FALSE,FALSE); { moves selected objects on active layer 3 units to the right }
SetBBox | Object Editing |
Declaration:
PROCEDURE SetBBox
( h :HANDLE; p1X :REAL; p1Y :REAL; p2X :REAL; p2Y :REAL ) ; Description:
Procedure SetBBox sets the coordinate location of an object's bounding box. The bounding box is the rectangular area surrounding and object that is bounded by the selection handles, and defines its "hot" selection/display area.
Care should be exercised when using this procedure, as it is possible to set the bounding box so that the object cannot be selected, or may not display correctly.Parameters:
h Handle to object. p1 Top left coordinate of bounding box. p2 Bottom right coordinate of bounding box.
SetHDef | Object Editing |
Declaration:
PROCEDURE SetHDef
( oldH :HANDLE; newH :HANDLE ) ; Description:
Procedure SetHDef replaces the definition of the referenced "container" object with a new definition. Supported object types are extrudes, sweeps, roofs, floors, symbol definitions, and layer references.
Parameters:
oldH Handle to object. newH Handle to new definition. Example:
SetHDef(symbolHd,newSymDefHd); {updates the referenced symbol with a new definition}