Jump to content

Recommended Posts

Posted

Im trying to write a very basic lisp to draw a circle with entered radius then draw a line from center of circle to selected point. Ive got myself started.. i think... but im not sure how to call autocad commands like line and circle, im sure someone knows how and its easy but im stuck please let me know

Posted

Just:

 

(command....

 

i.e.

 

(command "_.line" pt1 pt2 "")

 

Where pt1 & pt2 are variables bound to point values, like (1 2 3) & (4 5 6)

 

:)

Posted

Read the lisp help that came with your Autocad lots of examples of simple commands particuarly "down the garden path" also read all the lisp examples here there are hundereds particuarly the non vlisp versions

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...