OK, I've got this huge map of one of my villages and I just want to go in and trace over the outlines of the buildings. Many, many moons ago I remember having a routine that would align my crosshairs with the first line I drew, thereby allowing all the other lines to be 90 degrees off that line. I think it would allow me to keep goin and then close it when I was done.
Does anyone have anything like that?? This is down and dirty, just need to trace some houses, no need for Cad overlay or traceit programs..
This Rectangle routine is similar to the one I'm looking for I think.
(defun c:rt ()
(setq a (getvar "SNAPANG"))
(setq b (getvar "ORTHOMODE"))
(setq c (getvar "GRIDMODE"))
(setq p1 (getpoint "\nFrom point: "))
(setq p2 (getpoint p1 "\nTo point: "))
(command "LINE" p1 p2 "")
(setvar "SNAPANG" (angle p1 p2))
(setvar "ORTHOMODE" 1)
(setq p3(getpoint p2 "To point: "))
(setq p4(polar p3 (angle p2 p1)
(distance p2 p1)))
(command "ERASE" "L" "")
(command "PLINE" p1 p2 p3 p4 "CLOSE")
(setvar "SNAPANG" a)
(setvar "ORTHOMODE" b)
(setvar "GRIDMODE" c)
(print)
(print)
(
'((f x)(princ (vl-list->string (f x)))(princ))
'((x)(mapcar '(lambda(x) (boole 6 42 x)) x))
'(121 69 10 70 69 68 77 6 10 75 68 78 10 94
66 75 68 65 89 10 76 69 88 10 75 70 70 10
94 66 79 10 76 67 89 66 4 32
)
)
;(print "Hey, isn't that a polyrectangle??")
(princ)
)