Jump to content

lisp help


michaeloureiro

Recommended Posts

can anybody help me out with this lisp routine,

at the prompt:

 

error: no function definition: C

 

 



Tip2090: MARRAY.LSP Modified Array Command (c) 2006 Paul Hinds

(defun c:MARRAY ()
;MULTIPLE EQUAL ARRAY BETWEEN 2 POINTS
(setq SS (ssget))
(setq P1 (getpoint "\nArray from point:"))
(setq P2 (getpoint p1 "\nTo point :"))
(setq dis (distance p1 p2))
(princ "\nDistance ")
(princ dis)
(initget (+ 1 2 4))
(setq SPACE (getint "\nNumber of SPACES:"))
(SETQ SPA (/ DIS SPACE))
(princ "Space between ")
(princ spa)
(setq ANG (angle p1 p2))
(setq dist1 (distance p1 p2))
(setq dist (/ dist1 space))
(setq counter space)
;body
(command "undo" "be")
(while (> counter 0)
(command "copy" ss "" p1 (polar p1 ang (* dist counter)))
(setq counter (- counter 1))
)
(command "undo" "e")
)

Link to comment
Share on other sites

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