+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Full Member
    Using
    AutoCAD 2014
    Join Date
    Jul 2014
    Posts
    57

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

    Registered forum members do not see this ad.

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

    Code:
    (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.

  2. #2
    Senior Member
    Using
    not specified
    Join Date
    Apr 2014
    Posts
    105

    Default

    Change iso3 like this and try again:
    Code:
    (defun ISO3 ()
       (ISOCP3TEXT)
       (setvar "clayer" "0")
       (initdia) (command ".mtext" (getpoint ""))
    )
    Using Tapatalk

  3. #3
    Full Member
    Using
    AutoCAD 2014
    Join Date
    Jul 2014
    Posts
    57

    Default

    Same error. Don't worry now, all fixed
    Last edited by Lee Chu Chu; 18th Jul 2014 at 08:07 am.

  4. #4
    Forum Newbie
    Computer Details
    heschr's Computer Details
    Operating System:
    Windows 7
    Using
    AutoCAD 2014
    Join Date
    Jan 2014
    Posts
    8

    Default

    Quote Originally Posted by Lee Chu Chu View Post

    (defun c:meh ()
    (ISO3)
    Is there a closing bracket missing?

  5. #5
    Full Member
    Using
    AutoCAD 2014
    Join Date
    Jul 2014
    Posts
    57

    Default

    Registered forum members do not see this ad.

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

Similar Threads

  1. after loding lisp : "error no function definition , ACET-STR-FORMAT"
    By Salama in forum AutoLISP, Visual LISP & DCL
    Replies: 4
    Last Post: 28th Mar 2014, 11:03 pm
  2. NET lisp error: no function definition
    By LINHOREKA in forum .NET, ObjectARX & VBA
    Replies: 0
    Last Post: 5th Sep 2013, 06:06 pm
  3. error on lisp (no function definition: SF)
    By sachindkini in forum AutoLISP, Visual LISP & DCL
    Replies: 5
    Last Post: 21st May 2012, 11:16 am
  4. error: no function definition
    By its.personal in forum AutoCAD General
    Replies: 1
    Last Post: 9th Jun 2009, 11:02 am
  5. error no function definition: DTR for AutoCAD 7
    By muck in forum AutoLISP, Visual LISP & DCL
    Replies: 1
    Last Post: 9th Nov 2007, 02:27 pm

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts