Jump to content
Lee Chu Chu

;error: Unknown function definition when it is clearly in my lisp.

Recommended Posts

Lee Chu Chu

Help, I keep getting this stupid error no function definition even though I have clearly defun it in my lisp.

 

(defun ISOCP3TEXT ()
  (command "-style" "isocp3" "isocp.shx" "3" "1" "0" "no" "no")
)

(defun ISO3 ()
  (ISOCP3TEXT)
  (setvar "clayer" "0")
  (setq pt1 (getpoint ""))
  (initdia) (command ".mtext" pt1)
)

(defun c:meh ()
  (ISO3)

 

If you are wondering, I am using meh which may seem redundant but in my main source code, I actually need to call up iso3 due to a dialog box settings thing. For some reason, when I try to run meh, I keep getting ; error: no function definition: ISO3 when clearly I do have a defined function ISO3. Help please.

Share this post


Link to post
Share on other sites
7o7

Change iso3 like this and try again:

(defun ISO3 ()
  (ISOCP3TEXT)
  (setvar "clayer" "0")
  (initdia) (command ".mtext" (getpoint ""))
)

Share this post


Link to post
Share on other sites
Lee Chu Chu

Same error. Don't worry now, all fixed

Edited by Lee Chu Chu

Share this post


Link to post
Share on other sites
heschr

 

(defun c:meh ()

(ISO3)

 

 

Is there a closing bracket missing?

Share this post


Link to post
Share on other sites
Lee Chu Chu

In the code that I have posted here, yes but not in my lisp. I found out that I made the silly mistake of spelling iso with a zero instead of an "o".

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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