Visual LISP, AutoLISP and General Customization

Reply
Mentor
mikepo
Posts: 220
Registered: ‎04-29-2008
Message 1 of 4 (575 Views)

No function definition error

575 Views, 3 Replies
06-04-2009 05:01 PM
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:smileyvery-happy:AT ()
(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
www.ppeng.com
Civil3D 2014 SP2
Win 7 Professional - 64-bit
HP Z400
Xeon W3550 @ 3.07Ghz
24GB of RAM
Nvidia GeForce GTX 760
*Martti Halminen
Message 2 of 4 (575 Views)

Re: No function definition error

06-05-2009 12:06 AM in reply to: mikepo
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:smileyvery-happy:AT () (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:smileyvery-happy:AT 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:smileyvery-happy:AT.

--
Mentor
stevor
Posts: 838
Registered: ‎12-26-2005
Message 3 of 4 (575 Views)

Re: No function definition error

06-05-2009 05:56 AM in reply to: mikepo
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
Mentor
mikepo
Posts: 220
Registered: ‎04-29-2008
Message 4 of 4 (575 Views)

Re: No function definition error

06-05-2009 04:37 PM in reply to: mikepo
I do belive what my computer says.... Most of the time. :smileyhappy:
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
www.ppeng.com
Civil3D 2014 SP2
Win 7 Professional - 64-bit
HP Z400
Xeon W3550 @ 3.07Ghz
24GB of RAM
Nvidia GeForce GTX 760

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community