Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

No function definition error

3 REPLIES 3
Reply
Message 1 of 4
CADmgrMike
1364 Views, 3 Replies

No function definition error

I have a LISP routine that when I try to run it, I get this error message:
error: no function definition: F:LD

It worked fine with LDT2005, but when I installed LDT2009, it doesn't work.

this is the routine:
(DEFUN C:DAT ()
(F:LD)(LOAD "R:/ACAD 2009/APPS/GRADE_LSP/DATUM.LSP")
(PRINC)
)

I don't know a lot about AutoLISP, but I can usually fix small issues.
Mike Porter
https://provostandpritchard.com/
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: CADmgrMike

mikepo wrote:
> I have a LISP routine that when I try to run it, I get this error
> message: error: no function definition: F:LD It worked fine with
> LDT2005, but when I installed LDT2009, it doesn't work. this is the
> routine: (DEFUN C:DAT () (F:LD)(LOAD "R:/ACAD
> 2009/APPS/GRADE_LSP/DATUM.LSP") (PRINC) ) I don't know a lot about
> AutoLISP, but I can usually fix small issues.

Why don't you believe what the computer says?

The first thing your C:DAT function does is call the F:LD function,
which is not a part of AutoCAD and is not defined in this code extract.

So find out where it is defined and make sure to load it before calling
C:DAT.

--
Message 3 of 4
stevor
in reply to: CADmgrMike

To find it you could first search via the windows Find program, for files '*.lsp' and string 'n f:ld' in all the directories that contain the Autocad and LDT material.
If the function is in a vlx file, the Find may also work.

If found, it must be loaded before you start your work.
And the loading should have been made automatic by the LDT installation.
.
S
Message 4 of 4
CADmgrMike
in reply to: CADmgrMike

I do belive what my computer says.... Most of the time. 🙂
I assumed it was calling F:LD, but I can't figure out where F:LD resides.

I do know that this lisp routine and a couple others were part of something to to with Softdesk.
Mike Porter
https://provostandpritchard.com/

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost