(defun c:d1()
(setq dp1(getpoint))
(setq dp2(getpoint))
(command "-insert" "9d" "r" dp1 dp2 dp1 "" "")
(command "align" "l" dp1 dp1 dp2 dp2 "" "y")
)
this is a little routine i have "created" to allow me to insert a door in an ope. the job is for an old building and none of the doors opes are the same size. the drawing is for fire certification so i only need to show a door symbol. ( a line and an arc)
my problem is it inserts the block of the door at the right rotation angle but i want it to scale to the opening as well, so i thought by using the align command on the same 2 pick points that i can achieve what i am trying to do, when the programe gets to the align part it ignores the to point values i have and wants me to insert 2 new points.
can somebody please point me in the right direction
thanks in advance
Diarmuid