Function PrevSObj returns the previous selected object in the list preceding the referenced object.
FUNCTION PrevSObj(h : HANDLE): HANDLE;def vs.PrevSObj(h):
return HANDLE| Name | Type | Description |
|---|---|---|
| h | HANDLE | Handle to object. |
BEGIN
ApplyMarkerStyleToSEM;
pluginH := NextSObj(pluginH);
END;
pluginH := PrevSObj(origObj);
While (pluginH <> NIL) Do
BEGIN
ApplyMarkerStyleToSEM;
pluginH := PrevSObj(pluginH);
BEGIN
ClipSurface (plateH, cutoutH);
plateH := PrevSObj (cutoutH);
HRotate (cutoutH, x0, y0, theta);
END;
SetSelect (gShaftH);
Rect (gX0 + a, gY0 + pWrenchFlatsDepth/2, gX0 + a + pWrenchFlatsLength, gY0 + pShaftDia1/2 + b);
rectH := LNewObj;
ClipSurface (gShaftH, rectH);
gShaftH := PrevSObj (rectH);
DelObject (rectH);import vs
# Function PrevSObj returns the previous selected object in the list
# preceding the referenced object.
h = vs.FSActLayer() # handle to the first selected object on the active layer
objHandle = vs.PrevSObj(h)
if objHandle is not None:
vs.Message('Created object handle: ' + str(objHandle))Relative calls:
- NextObj | PrevObj
- FObject | LObject
- FSActLayer | LSActLayer
- FSObject | LActLayer
- NextDObj | PrevDObj
- NextSObj | PrevSObj
Availability: from All Versions