Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 976 Bytes

File metadata and controls

48 lines (37 loc) · 976 Bytes

MakePolygon

Description

MakePolygon creates a 2D Polygon using inSourceObject. Does not delete inSourceObject.

FUNCTION MakePolygon(inSourceObject : HANDLE): HANDLE;
def vs.MakePolygon(inSourceObject):
    return HANDLE

Parameters

Name Type Description
inSourceObject HANDLE inSource object should be a 2D object that can be polygonalized.

Remarks

This routine creates its returned object not as the last object in the active layer, but immediately after inSourceObject in the stacking order, so if you delete inSourceObject, you will have "replaced" it.

See also: ConvertToPolygon

Examples

VectorScript

PROCEDURE Example;
VAR
h :HANDLE;
BEGIN
CallTool(-204);
h := FSActLayer;
h := MakePolygon(h);
END;
RUN(Example);

Python

Version

Availability: from VectorWorks10.1

Category