Build a line and a circle

You have problems, and we're glad to hear them. Explain the problem, what you have tried, and where you got stuck.
Feel free to share a little info on yourself and the course.
Forum rules
Please respect your teacher's guidelines. Homework is a learning tool. If we just post answers, we aren't actually helping. When you post questions, be sure to show what you have tried or what you don't understand.

Build a line and a circle

Postby tony_graff » Fri Nov 04, 2016 9:00 am

What i am trying to do is to build a line and a circle in autocad using lisp.
The code:
( DEFUN C:myprog ()
( COMMAND "_erase" "_all" "" )
( COMMAND "_line" ( LIST 10 10 ) ( LIST 10 100 ) "" )
( COMMAND "_circle" "10.0,50.0" 30.0 "" )
As a result I get a correctly build line, but a wrong circle. The center of the circle is in the point (10,10) - the beginning of the line. But it's supposed to be in (10,50).
What am I doing wrong?
Posts: 1
Joined: Fri Nov 04, 2016 8:40 am

Re: Build a line and a circle

Postby David Mullen » Sat Nov 05, 2016 12:40 pm

David Mullen
Posts: 56
Joined: Mon Dec 01, 2014 12:29 pm

Return to Homework

Who is online

Users browsing this forum: No registered users and 2 guests