AECLAY.lsp

AECLAY.lsp

Anonymous
Not applicable
1,098 Views
6 Replies
Message 1 of 7

AECLAY.lsp

Anonymous
Not applicable

AECLAY.lsp does not work in AutoCAD MEP 2019; no function definition - see attached photos.  The majority of projects I work on need to comply with AEC CAD Standards R6.0 - 2015.  This lisp routine is supposed to populate the drawing with Standard layers per discipline, which save time.  Is there any way to fix this?

 

 

0 Likes
Accepted solutions (2)
1,099 Views
6 Replies
Replies (6)
Message 2 of 7

tcorey
Mentor
Mentor
Accepted solution

That routine appears to have other routine that is calls, based on whether you select Arch, Elec, etc. Those routines must not be defined inside the main .lsp. If you post the code, we can take a look...



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Platinum Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
Message 3 of 7

Anonymous
Not applicable

Where do I find the code?

0 Likes
Message 4 of 7

tcorey
Mentor
Mentor

This is not a built-in AutoCAD command. It comes from a third party.

 

It could be in any number of places. Check the Startup Suite in APPLOAD command. If not there, it might be loaded when you select a certain button. You can inspect the button properties in CUI. The routine might be loaded automatically when you open a drawing, if it has been added to acaddoc.lsp or when you open AutoCAD itself, through acad.lsp.

 

What do you do when you want to run the command?



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Platinum Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
0 Likes
Message 5 of 7

hencoop
Advisor
Advisor

If you open the visual lisp IDE (Command VLIDE), turn on "break on error" under the debug menu, and then go back to AutoCAD and rerun the AECLAY it will open VLIDE when the error is encountered. Under the debug menu, select "last break source". That should open the offending file. Then you should be able to determine where it's located.

VLIDE debug.jpg

VLIDE last break source.jpg

AutoCAD User since 1989. Civil Engineering Professional since 1983
Product Version: 13.6.1963.0 Civil 3D 2024.4.1 Update Built on: U.202.0.0 AutoCAD 2024.1.6
                        27.0.37.14 Autodesk AutoCAD Map 3D 2024.0.1
                        8.6.52.0 AutoCAD Architecture 2024
Message 6 of 7

Anonymous
Not applicable

When I applied your suggestions (hencoop), this dialog box appeared - I don't believe this shows me where the file is located.  Nothing happens when I click OK.

 

VisualLISP-CALLBACK-ENTRY.JPG

 

Also, I had my companies IT department uninstall/reinstall AutoCAD MEP, which must have fixed some functions of AECLAY, because now 7 of 14 of the disciplines load with no problem.  The remaining 7 of 14 have a new error message - 

aeclay new err msg.JPG

 

Any further suggestions?

0 Likes
Message 7 of 7

Anonymous
Not applicable
Accepted solution

Eureka!  All is well with this .lsp routine.  I relocated the tsaec8 LIN file and added the path within AutoCAD and all disciplines work now.

 

Thanks for your support.  It's appreciated.

0 Likes