Try the attached. It has no error controls, CMDECHO control, localizing of variables, etc., etc., yet.
Depending on the shapes of the Polylines selected, there will sometimes be places where the ends of the perpendiculars will not actually *touch* the second Polyline. If you don't like that result, remove the line that says
"per"
and it will take each Line to the *closest* point on the second Polyline, which in most cases will be perpendicular anyway.
If there's no reason for the Lines to be always perpendicular to the second Polyline, and not [usually] perpendicular to the first one, and to be evenly spaced along the first one but not [usually] along the second one, this could easily be adjusted to divide *both* Polylines into the same number of equal segments, similar to what LADDER.lsp does, here:
http://discussion.autodesk.com/forums/message.jspa?messageID=6110608&tstart=0
but adjusted for Polylines [or any other linear elements, such as Arcs or Splines] instead of only Lines.
--
Kent Cooper
m45bgz wrote...
....the first polyline should be broken into identical pieces, and from each these points, since the polyline beginning, perpendiculars on the second polyline will be constructed.
....
Edited by: Kent1Cooper on Aug 19, 2009 9:30 AM
[added equally-along-both-Polylines topic]
Kent Cooper, AIA