Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have small situation i want auto dim in this LISP and also required insert block in center of rectangle as per attached file
(defun c:cnt (/ pnt1 pnt2 pnt3 pt4 )
(princ "\n \n ")
(setq pnt1 (getpoint "\nFirst corner ")) (terpri)
(setq pnt3 (getcorner pnt1 "\nOpposite corner...")) (terpri)
(setq pnt2 (list (car pnt1) (cadr pnt3)))
(setq pnt4 (list (car pnt3) (cadr pnt1)))
(command "PLINE" pnt1 pnt2 pnt3 pnt4 "c")
(command "line" pnt1 pnt3 "") ; draw the square
(command "line" pnt2 pnt4 "") ; draw the square
(princ "\n \n ")(princ)
) ; end of the defun
Solved! Go to Solution.