Jump to content

Recommended Posts

Posted

NOT SURE HOW I CAN INCORPORATE CIRCLE COMMAND INTO MY LISP

PROGRAM ??? c ENTER 2PT??

GOAL IS TO DRAW A LINE WITH CIRCLE ON EACH END WITH QUESTION FOR RADI> LOTS STUCK

ANY SUGGUESTIONS

 

EG:



(DEFUN C:CCIRCLE)
(SETVAR "CMDECHO" 0)
(GRAPHSCR)
(SETQ P1 (GETPOINT "/N ENTER FIRST POINT:"))
(SETQ P2 (GETPOINT "/N ENTER SECOND:"))
(COMMAND "LINE" P1 P2)
(SETVAR "CIRCLE" D)
(SETVAR "CIRCLED"(D(/SIN A)(COS A))))
(COMMAND "CIRCLE")
(SETVAR "CMDECHO" 1)
(PRINC)
)

BEST REGARDS o:)

Posted

Please use

 tags

[code](defun c:ccircle(/ pt1 pt2 cDia)
 (and
   (setq pt1(getpoint "\nSpecify start point: "))
   (setq pt2(getpoint pt1 "\nSpecify end point: "))
   (setq cDia(/(distance pt1 pt2)20))
   (vl-cmdf "_.line" pt1 pt2 ""
     "_.circle" pt1 cDia
     "_.circle" pt2 cDia)
   ); end and
 (princ)
 ); end of c:ccircle

Posted

Wow I was way off.

yet again you show me that i worship the wrong god.

thanks.

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...