Skip to content

Latest commit

 

History

History
72 lines (60 loc) · 1.67 KB

File metadata and controls

72 lines (60 loc) · 1.67 KB

PrevObj

Description

Function PrevObj returns the object in any list which precedes the specified object. If the end of the list is reached, the function returns NIL.

FUNCTION PrevObj(h : HANDLE): HANDLE;
def vs.PrevObj(h):
    return HANDLE

Parameters

Name Type Description
h HANDLE Handle to object, group, or symbol definition.

Examples

BEGIN
boo := GetHole(h, cnt, hole);
hole := CopyPoly(hole,FALSE);
ClipSurface(poly, hole);
poly := PrevObj(hole);
DelObj(hole);
END;

		fieldName	:= GetFldName( hRec, j );
		SetRField( hNewObj, recName, fieldName, GetRField( handles[cnt], recName, fieldName ) );
	END;
END;
hNewObj	:= PrevObj( hNewObj );
{now delete this}
DelObject( handles[cnt] );
END;

FOR cnt := 1 TO holeCnt DO BEGIN
	boo := GetHole(h, cnt, hole);
	hole := CopyPoly(hole);
	ClipSurface(poly, hole);
	poly := PrevObj(hole);
	DelObj(hole);
END;
import vs

# Function PrevObj returns the object in any list which precedes the
# specified object.
h = vs.FSActLayer()  # handle to the first selected object on the active layer

objHandle = vs.PrevObj(h)
if objHandle is not None:
    vs.Message('Created object handle: ' + str(objHandle))

See Also

Relative calls:

Version

Availability: from All Versions

Category