MakePolygon creates a 2D Polygon using inSourceObject. Does not delete inSourceObject.
FUNCTION MakePolygon(inSourceObject : HANDLE): HANDLE;def vs.MakePolygon(inSourceObject):
return HANDLE| Name | Type | Description |
|---|---|---|
| inSourceObject | HANDLE | inSource object should be a 2D object that can be polygonalized. |
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
PROCEDURE Example;
VAR
h :HANDLE;
BEGIN
CallTool(-204);
h := FSActLayer;
h := MakePolygon(h);
END;
RUN(Example);Availability: from VectorWorks10.1