
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I need help with something. I want my lisp to be able to draw a circle of an already specified radius and automatically draw line from the middle of the circumference of the circle. I managed to do the circle and radius part. Here's what I have so far:
(defun c:lolp (/ center value-of-radius)
(terpri)
(setq center (getpoint "Specify center of circle:"))
(terpri)
(setq value-of-radius 1124.998)
(command "_circle" center value-of-radius)
(command "_chprop" "_last" "" "_color" "green" "")
)
I don't know how to add the line part. I know I can use the line command by doing something like : (command "_line") but idk how to write in my program that the line should start from the middle point of the circumference of the circle, either vertical or horizontal line. The length of line will also be specific in the program so at the end I should get a circle and line drawn together with predefined values. Could someone help me with line part or suggest something?
Any help will be appreciated 🙂
Solved! Go to Solution.