@immobiliareA2T2L wrote:
esclusivamente linee
In that case, the extraction of lengths can be simplified from the way it is done in Messages 2 & 3. For Line objects specifically, the Parameter anywhere on it is the length to that point. So it's not necessary to get the distance along it at a Parameter value, and give it the Line's End Parameter. You can just use the End Parameter directly:
(setq sumOf
(+
sumOf
(vlax-curve-getEndParam entName)
); +
); setq
But that doesn't give the right answer for other object types whose Parameter values represent different things, for which the approach in those routines is appropriate. That also makes it the appropriate way for something to get lengths of all (vlax-curve-...)-type objects including Lines.
Kent Cooper, AIA