Lee Chu Chu 发表于 2022-7-5 22:42:56

;error: Unknown function defin

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.

7o7 发表于 2022-7-5 23:05:11

Change iso3 like this and try again:

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

Lee Chu Chu 发表于 2022-7-5 23:24:08

Same error. Don't worry now, all fixed

heschr 发表于 2022-7-5 23:39:20

 
Is there a closing bracket missing?

Lee Chu Chu 发表于 2022-7-5 23:47:51

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".
页: [1]
查看完整版本: ;error: Unknown function defin