Procedure SetCurrentObject sets the referenced object to be the current object of the document. The current object is defined as the last object created, and can be referenced by LNewObj.
PROCEDURE SetCurrentObject(h : HANDLE);def vs.SetCurrentObject(h):
return None| Name | Type | Description |
|---|---|---|
| h | HANDLE | Handle to object. |
h1 := LNewObj;
Arc (-r2, r2, r2, -r2, 0, 360);
h2 := LNewObj;
ClipSurface (h1, h2);
SetCurrentObject (PrevObj (h2));
DelObject (h2);import vs
# Procedure SetCurrentObject sets the referenced object to be the current
# object of the document.
h = vs.FSActLayer() # handle to the first selected object on the active layer
vs.SetCurrentObject(h)Availability: from MiniCAD4.0