Brilliant, thank you
--
Erik D.
CAD Manager
Atkinson Industries, Inc.
620-231-6900
"Jim Claypool" wrote in message
news:5392901@discussion.autodesk.com...
(defun c:drawrect ( / hgt width depth pt1 pt2 pt3 pt4 pt5 pt6 pt7)
(setq
hgt (getreal "\Height: ")
width (getreal "\Width: ")
depth (getreal "\Depth: ")
pt1 (getpoint "\nSelect start point: ");lower left corner of front
pt2 (polar pt1 0 width);lower right corner of front
pt3 (polar pt2 (* pi 0.5) hgt);upper right corner of front
pt4 (polar pt1 (* pi 0.5) (+ hgt 1.0));lower left corner of top
pt5 (polar pt2 (* pi 0.5) (+ hgt 1.0 depth));upper right corner of top
pt6 (polar pt1 0 (+ width 1.0));lower left corner of end
pt7 (polar pt3 0 (+ 1.0 depth));upper right corner of end
)
(command
".rectangle" pt1 pt3
".rectangle" pt4 pt5
".rectangle" pt6 pt7
)
(princ)
)
"Erik Deyo" wrote in message
news:5392845@discussion.autodesk.com...
Command prompt is fine for this. I want the lisp to prompt for the height,
width, depth of a piece of equipment & then draw 3 rectangles representing
the top view, side view & front view of the described piece of equipment.
--
Erik D.
CAD Manager
Atkinson Industries, Inc.
620-231-6900
wrote in message news:5392840@discussion.autodesk.com...
Sorry, Erik
I am so stupid...
What you mean about height, width &
depth of rectangle
Can you uppload some picture about what you need?
One more question: do you want to use this routine
with DCL or without it (with prompts in command line only)?
Fatty The Stupid Old Horse
>'J'<