Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Kent1Cooper
en respuesta a: Spakron


@Spakron wrote:

... measure the distance between A NUMBER of points within these lines (we can set the number of points manually) ....


I have a LADDER command that does that with two Line paths.  Attached is a modification called LADDERC.lsp with its eponymous command name, to work with two paths of any finite kind with linearity [anything in the (vlax-Curve...) class other than Rays/Xlines].  It divides the length of each path object equally within itself, which means it works well with "clean" path relationships:

Kent1Cooper_0-1626270457860.png

and gets a little weirder as the configurations of the two paths get a little more variable:

Kent1Cooper_2-1626270702747.png

but goes kind of wacko if they're very different:

Kent1Cooper_3-1626270827316.png

So it's appropriate in certain kinds of relationships and not others.

 

[The source routine is from 12 years ago, and if I were to write it today I would do certain things differently, but all I did was modify it minimally.  Very lightly tested.]

 

Kent Cooper, AIA