Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.01 KB

File metadata and controls

49 lines (37 loc) · 1.01 KB

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: <a href=http://www.vectorworks.net/support/custom/vscript/reference/asp/main.asp?name=ConvertToPolygon&gt;ConvertToPolygon&lt;/a>.

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

  • Objects - 2D