Where is the user-customized .lsp file located?

mikegera
Advocate

Where is the user-customized .lsp file located?

mikegera
Advocate
Advocate

My apologies for the banal question.

 

Where is the .lsp file located that is intended to contain the user's custom code that will load with each .dwg and .dxf?

 

Thanks.

0 Likes
Reply
279 Views
6 Replies
Replies (6)

TomBeauford
Advisor
Advisor

You're describing an acaddoc.lsp file which loads each time a drawing is opened. An acad.lsp normally loads when AutoCAD opens but can also be set to open each time a drawing opens. As they're for user's custom code they're not installed with AutoCAD but are often added by the company you work for. They would need to be in a Trusted Folder and are generally in the Support File Search Path as well.

64bit AutoCAD Map & Civil 3D 2023
Architecture Engineering & Construction Collection
2023
Windows 10 Dell i7-12850HX 2.1 Ghz 12GB NVIDIA RTX A3000 12GB Graphics Adapter

mikegera
Advocate
Advocate

Thanks.

 

I assume you mean acadxxxxdoc.lsp (where xxxx=version year).

 

Should that file be moved to a directory outside of the AutoCAD installation so that reinstalling or upgrading AutoCAD does not eradicate it?

0 Likes

imadHabash
Mentor
Mentor

Hi,

I suggest also to check startup suite from APPLOAD (Command). Also you can follow this LINK that may help.

 

Imad Habash

EESignature

ВeekeeCZ
Consultant
Consultant

Please read HELP about acaddoc.lsp.

Also find there an important note about acad<release>.lsp files.

 

To answer your original question see THIS Lee's great site... and the following one.

cadffm
Consultant
Consultant

Hi,

 

the file is located where the user saved this file.

If no user saved such a file, there is no file.

 

If you want to have one, to add your own custom stuff, you got good links.

As mentioned above, you should create an acaddoc.lsp file

and save the file in a folder for all your  custom stuff.

In Options / Files /

Add this folder as support file path

and as trusted location path.

 

Sebastian

0 Likes

paullimapa
Mentor
Mentor

On the AutoCAD command prompt enter the following to see if the following files exist. If they do AutoCAD will show you where they’re located:

(findfile "acaddoc.lsp")
(findfile "acad.lsp")

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes

Type a product name