Message 1 of 5

Not applicable
11-08-2020
05:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
(defun C:Test ()
(setq A (getpoint "\n Basic point: "))
(initget (+ 1 2 4))
(setq B (getreal "\n Input the length: "))
(initget (+ 1 2 4))
(setq C (getreal "\n Input the width: "))
(setq D (sqrt (+ (* B B) (* C C))))
(setq E (/ C D))
(setq A1 (polar A 0 B))
(setq A2 (polar A E D))
(setq A3 (polar A (/ pi 2) C))
(command ".pline" A A1 A2 A3 "close")
(princ)
)
-----------------------
The attached file is my autolisp, I input 200x100 but the rectangle is not correct! Please help me!
Solved! Go to Solution.