Message 1 of 4

Not applicable
12-29-2019
07:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I wanted four lines will be drawn in order. but I can't.... ( I want to draw a rectangle by only putting values not by shaping directly) please help me.
(defun c:myrec ()
(setq a (getint "\n width:"))
(setq b (getint "\n height:"))
(command "line" (list 0 0) (list a 0)) ;line 1
(command "line" (list a 0) (list a b)) ;line 2
(command "line" (list a b) (list 0 b)) ;line 3
(command "line" (list 0 b) (list 0 0)) ;line 4
)
Solved! Go to Solution.