Difference between revisions of "VS:ConvertToNURBS"
From Vectorworks Developer
(about views when converting to NURBS)
m (1 revision)
Revision as of 10:25, 12 August 2013
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
DescriptionThis function converts the input object into a new NURBS object or a group of NURBS objects in the document.
keepOrig :BOOLEAN) : HANDLE;
def vs.ConvertToNURBS(h, keepOrig): return HANDLE
h HANDLE Handle of original object. keepOrig BOOLEAN Leave the original object in the drawing.
Remarks(Orso, 2010 Dec. 24) The orientation of the generated NURBS object is -like for extrudes- based on the active view. You should set the view to top, to have predictable results. Unlike extrudes- this also happens while creating the object in PIO. Since in PIO it's highly advisable NOT to change view, you shouldn't use this call in this environment.
PROCEDURE Example; VAR h :HANDLE; BEGIN h := FSActLayer; h := ConvertToNURBS(h, FALSE); h := CreateOffsetNurbsObjectHandle(h, 1); END; RUN(Example);
def Example(): h = vs.FSActLayer() h = vs.ConvertToNURBS(h, False) h = vs.CreateOffsetNurbsObjectHandle(h, 1) Example()