Skip to content

Latest commit

 

History

History
70 lines (58 loc) · 1.61 KB

File metadata and controls

70 lines (58 loc) · 1.61 KB

PrevSObj

Description

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

Parameters

Name Type Description
h HANDLE Handle to object.

Examples

	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))

See Also

Relative calls:

Version

Availability: from All Versions

Category