exotichwa.blogg.se

Autocad lsp how to get polyline coordinated
Autocad lsp how to get polyline coordinated









autocad lsp how to get polyline coordinated

Because parameters and points are mutually descriptive of unique locations, they can be converted back and forth.

autocad lsp how to get polyline coordinated

(vlax-curve-getDistAtParam ObjName (vlax-curve-getendparam ObjName))Ĭopied the following from Stig Madsen's tutorial:Ĭommand: (vlax-curve-getEndParam objline)įrom this follows that the length of a line can always be found by simply retrieving the end parameter. The following statement seemed to work on a few basic entities in a quick check: To get the length of a line, extract the endpoint coordinates from the "Entity data", then use the "distance" lisp function.Ģ. Then the length is stored in the PERIMETER system variable. Knowing the "name" of a *polyline* entity (call it 'ObjName'), query it with the "area" command. There are a few ways to get the length of lines and polylines.ġ.











Autocad lsp how to get polyline coordinated