Mack Attack
Usenet Archive
- Joined
- Sep 11, 2003
- Messages
- 34
- Reaction score
- 0
I am trying to come up with a simple tail added to my section marker with a defined wider foot and length. I can't get it to stay at an orthoganal angle and the last length of the tail to work. Please help and thanks in advance
(defun C:tail ( / ort cla sna pt1 pt2 pt3 dst dsc wd1 lng )
(SETQ ORT (GETVAR "orthomode")) ;capture ortho mode
(SETVAR "orthomode" 1) ;turn on ortho
(SETQ CLA (GETVAR "clayer")) ;capture current layer
(SETQ SNA (GETVAR "osmode")) ;capture osmode
(SETVAR "osmode" 16) ;change osmode to quadrant only (SETVAR "plinewid" 0) ;set pline width to zero (command "layer" "m" "A-anno-symb" "c" "7" "" "") ;make or change to proper layer
(SETQ pt1 (GETPOINT "\nPick first point:")) ;set first selection (SETQ pt2 (GETPOINT "\nSelect end point:")) ;set length of tail (SETQ dsc (GETVAR "dimscale")) ;capture dimscale value (SETQ wd1 (* 0.0625 dsc)) ;set width of pline (SETQ lng (* 0.1875 dsc)) ;set lenght of tail (progn (command "pline" pt1 pt2 "w" wd1 "" lng) ) (SETVAR "orthomode" ORT) (SETVAR "clayer" CLA) (SETVAR "osmode" SNA)
)
(defun C:tail ( / ort cla sna pt1 pt2 pt3 dst dsc wd1 lng )
(SETQ ORT (GETVAR "orthomode")) ;capture ortho mode
(SETVAR "orthomode" 1) ;turn on ortho
(SETQ CLA (GETVAR "clayer")) ;capture current layer
(SETQ SNA (GETVAR "osmode")) ;capture osmode
(SETVAR "osmode" 16) ;change osmode to quadrant only (SETVAR "plinewid" 0) ;set pline width to zero (command "layer" "m" "A-anno-symb" "c" "7" "" "") ;make or change to proper layer
(SETQ pt1 (GETPOINT "\nPick first point:")) ;set first selection (SETQ pt2 (GETPOINT "\nSelect end point:")) ;set length of tail (SETQ dsc (GETVAR "dimscale")) ;capture dimscale value (SETQ wd1 (* 0.0625 dsc)) ;set width of pline (SETQ lng (* 0.1875 dsc)) ;set lenght of tail (progn (command "pline" pt1 pt2 "w" wd1 "" lng) ) (SETVAR "orthomode" ORT) (SETVAR "clayer" CLA) (SETVAR "osmode" SNA)
)