Returns a handle to the last object created by a VectorScript function call during the current script execution.
FUNCTION LNewObj : HANDLE;def vs.LNewObj():
return HANDLE[As of 8.0.0b10]
If the object has been deleted since it was created, this function returns NIL. It is recommended that you call LNewObj immediately after the function or procedure which created the object to avoid problems.
resultH := LNewObj;vs.MoveTo ( textPtx, textPty )
vs.DSelectAll()
vs.CreateText( vs.PSheet_No )
vs.SetFPat( vs.LNewObj(), 0 )
vs.Rotate( dTextRotation )
vs.Locus((vs.PRadius+vs.PCurb_Width+(vs.PWidth/2)),0); SetAttrsByClassOrParent( vs.LNewObj(), gObjHandle, gCurb_Class )
vs.EndSweep()
vs.AddPoint( p6 )
vs.AddPoint( p5 )
vs.EndPoly()
SetAttrsByClassOrParent(vs.LNewObj(), gObjHandle, gPaving_Class, vs.PShow_Joints)See also in tutorials: 01. Draw a Room with Walls, 02. Draw 2D Geometry Primitives, 03. Build a Curved Path with Mixed Vertex Types, 04. Extrude 2D Shapes into 3D Solids
Availability: from All Versions