Creates a polyline using inSourceObject. inSourceObject is unchanged.
FUNCTION MakePolyline(inSourceObject : HANDLE): HANDLE;def vs.MakePolyline(inSourceObject):
return HANDLE| Name | Type | Description |
|---|---|---|
| inSourceObject | HANDLE | The 2D object from which to make a polyline. |
Creates a polyline from inSourceObject. inSourceObject is unchanged.
This routine does not delete inSourceObject; also it 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.
PROCEDURE Example;
VAR
h,h2:HANDLE;
BEGIN
h:=FSActLayer;
h2 := MakePolyline(h);
DelObject(h);
END;
RUN(Example);Availability: from VectorWorks10.1