I want to ask if somebody knows or have a code for converting Lines in to Polyline with a visual basic application code. Thanks
I have Collection of lines in a ColLines as variant
For j=0 to Ubound(ColLines)
ColLines.startpoint
ColLines.endpoint
Next
The lines don't have a secuence of drawing. For example
Line1: StartPoint: 0,0 : End Point: 1,0
Line2: StartPoint: 1,1 : End Point: 0,1
Line3: StartPoint: 1,0 : End Point: 1,1
Line4: StartPoint: 0,1 : End Point: 0,0
I need create the vector list(PolylinePoints) for insert in my code:
Dim PolylinePoint ( ) as Double
Application.Documents.Item(pFiberDrawingName).ModelSpace.AddLightWeightPolyline (PolylinePoints)
The secuence correct is
Line1, Line3, Line2 and Line4