Or, do you always WANT it to snap to nearest and perpendicular, to put this
kind of thing perpendicularly from one line/pline over to another parallel
one, or something? If so, and you're doing it by having Nea & Per set as
running Osnap modes, I think Nea is always going to win out over Per (the
Nearest point on the line/pline will always be closer to the pick location
than the point that's Perpendicular from the previous point, unless they
happen to be the same).
[The one exception would be if you're picking a little beyond the end of the
line/pline but its endpoint is still within the Osnap target -- then Per
COULD win out over Nea, but only if the resulting perpendicular location
falls beyond that endpoint. (And not TOO far beyond that endpoint, or the
endpoint itself will be Nearer.) That's one of the VERY few situations in
which Nea wouldn't win out over virtually any other Osnap option, so I don't
know that it's ever much good to set Nearest as a running Osnap mode, unless
it's the only one you have running. (There ARE very few such situations,
but not none. If you had Nea and Ins running, and picked around a piece of
text, Nea would lose, because there's no such thing as the Nearest point on
a piece of text. And Nea could lose out to Cen on a circle or arc if the
Osnap target was big enough in relation to the radius that the target could
pick up the curve with the pick location actually closer to the center.)]
If that's what you want, you could do the following, with running Osnap
disabled one way or another:
(setq arrowhead1 (getpoint "Pick one Endpoint: ") "nea")
(setq arrowhead2 (getpoint "Pick other Endpoint: ") "per")
(command "LEADER" arrowhead1 arrowhead2 "" "" "N")
(command "LEADER" arrowhead2 arrowhead1 "" "" "N")
The last line should also be replaceable by
(command "LEADER" "@" arrowhead1 "" "" "N")
Or without disabling Osnap, maybe:
(setq arrowhead1 (getpoint "Pick one Endpoint: "))
(setq arrowhead2 (getpoint "Pick other Endpoint: "))
(command "LEADER" "nea" arrowhead1 "per" arrowhead2 "" "" "N")
(command "LEADER" "@" "nea" arrowhead1 "" "" "N")
Kent Cooper, AIA
"molokaiboy" wrote...
> this works as well, but why does it snap to certain points when I have my
osnaps set to nearest and perpendicular?
>
> Collin