Racer24ksi
Structural
- Feb 18, 2002
- 11
I'm tinkering with a macro definition for an AutoCAD button that will create a leader line to be used for a welding symbol. The macro needs to create a leader in MS with the tail being exactly 1" in PS. The sticking point is my logic wants to use a relative coordinate definition that is based upon the DIMSCALE. I have been unable to figure out how to use relative coordinates in a macro without actually prompting for user input.
The only thing that works half-way is this:
^C^C(SETQ LX (GETVAR "DIMSCALE"LY '0);_LEADER;\\;;N;UCS;O;@;LINE;@;(LIST LX LY);;UCS;P;
The problem is, the specification "@" for last point picked (also LASTPOINT value) works correctly when starting in WCS, but if starting in anything other than WCS, the @ point is off in the stratosphere.
I want to believe that if I can use relative coordinates for the last point without stopping the leader command and going to draw a line based on a new UCS that it would work better.
Thoughts?
Thanks in advance!
Bill
Racer24ksi
The only thing that works half-way is this:
^C^C(SETQ LX (GETVAR "DIMSCALE"LY '0);_LEADER;\\;;N;UCS;O;@;LINE;@;(LIST LX LY);;UCS;P;
The problem is, the specification "@" for last point picked (also LASTPOINT value) works correctly when starting in WCS, but if starting in anything other than WCS, the @ point is off in the stratosphere.
I want to believe that if I can use relative coordinates for the last point without stopping the leader command and going to draw a line based on a new UCS that it would work better.
Thoughts?
Thanks in advance!
Bill
Racer24ksi