VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

(findfile "acaddoc.lsp")

2 REPLIES 2
Reply
Message 1 of 3
sdilucca
216 Views, 2 Replies

(findfile "acaddoc.lsp")

I am using Acad 2006. I tried the routine (findfile "acaddoc.lsp") and it returns the value NIL. Why is this?
2 REPLIES 2
Message 2 of 3
dolives
in reply to: sdilucca

Hi, just a litle part of help file.

An application can use the findfile function to search for a particular file name. The application can specify the directory to search, or it can use the current AutoCAD library path.

In the following code fragment, findfile searches for the requested file name according to the AutoCAD library path:

Nil = not found
If your path is not in library path, you must indicate it.
Daniel OLIVES
Lyon, FRANCE
Message 3 of 3
Anonymous
in reply to: sdilucca

acaddoc.lsp is a user file, you need to make it.
AutoCAD doesn't have either an acaddoc.lsp file or an acad.lsp file out of
the box,
but if you create either one, and it's in the search path,
AutoCAD automatically loads them at startup.

/// kwb
wrote in message news:5440658@discussion.autodesk.com...
I am using Acad 2006. I tried the routine (findfile "acaddoc.lsp") and it
returns the value NIL. Why is this?

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

Post to forums  

Autodesk Design & Make Report

”Boost