To answer thatcadguy's question, even though not directly in reply to his post:
I will often set a System Variable using it as though a command, in a (command) function, when I've got one of those running anyway, simply because it saves some code as compared to using (setvar), especially when doing several of them, since (setvar) can only do one at a time, requiring a separate (setvar) function for each variable. Sometimes I wish you could combine multiple variables into one (setvar) function, the way you can with (setq).
BUT another question arises [the reasons I'm answering that in reply to this post instead]:
This code would have a problem if a User *typed in* an angle for the SNAPANG System Variable, rather than picking two points, since only one pause would be used up by that. If you know you'll always want to do it with point picks, then that's fine, but you could give the User the choice of how to do it, if you want:
(setvar 'autosnap 55)
(setvar 'snapang (getangle "\nSnap angle: "))
(setvar 'orthomode 1)
[I tried putting those into one (command) function, but it didn't handle the optional number of inputs to (getangle) in there as I hoped it would.]
--
Kent Cooper
brian.wiley wrote...
....
(Command "AUTOSNAP" "55" "snapang" pause pause "ortho" "on")
....
Kent Cooper, AIA