The Startup Suite is known to be temperamental at times, have you tried using the ACADDOC.lsp?
Registered forum members do not see this ad.
I just finished configuring a new system for a user, that is a Windows 7 - 64bit, with AutoCAD 2012. Most of the rest of us are using Windows XP with AutoCAD 2010.
We have about 20 Lisp routines that we load via the Startup Suite, and I've loaded each into his Startup Suit, and shut down autocad and restarted.
When I try to execute one of the routines that should have loaded via the startup suite, I get an unknown command response.
Any ideas?
"If you don't have time to do it right, will there be time to do it over?" this was hung on my boss' door 15 years ago for me to see on my first day... no pressure really!?!
The Startup Suite is known to be temperamental at times, have you tried using the ACADDOC.lsp?
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?
Just another Swamper
Big 1+ for Acad.lsp & AcadDoc.lsp here.
"Potential has a shelf life." - Margaret Atwood
AutoCAD 2012 has this sweet feature that lets you dump lisp files, vba routines, dlls and it will load them for you. The folder is located @ C:>Users>(username)>AppData>Roaming>Autodesk>Appli cationPlugins
Simply place the lisp files in there and enjoy.
http://autocadtips.wordpress.com/201...-files-others/
Note: they removed this feature in AutoCAD 2013 and instead of simply placing the files there and you're good to go, you now have to have folder within this folder with an xml file that calls the routine... (thumbs down)
I also recently learned that if you have a lisp file and want to easily load it, you can simply prefix it with "acad" and place it in your support path and it will load upon startup.
So a lisp called "lineheal.lsp" can be renamed "acadlineheal.lsp" and copied into the support path and you are good to go.
~Greg
~Greg B
Have fun!! www
d'oh! I realize now that I've been having it load in the acaddoc.lsp and the startup suite. It doesn't appear to have worked from either location for this user. my three 2010 users are loading it fine though. I've wondered if the acad.lsp that is being loaded is not the one I'm intending being loaded, so I need to look at my search path order.
For a temporary work around, I've taken the section of the acaddoc.lsp that loads the lisps, and made a "Temp.lsp" for this user to load so he can get by.
I've got one of those "unrealistic" deadline tomorrow morning, so I'll have to put off more troubleshooting until tomorrow afternoon.
Thanks for your input folks, I'll check back in tomorrow.
"If you don't have time to do it right, will there be time to do it over?" this was hung on my boss' door 15 years ago for me to see on my first day... no pressure really!?!
Well, I've stripped the Startup Suite loads out of my AutoCAD 2010 (on Windows XP) and I no longer get any of my typical routines loaded. Here is my support path:
Support file search path.jpg
The AcadDoc.lsp is in the C:\ACAD_PE\Support folder, so it is high up in the search path. I've even tried putting a copy of that TempLisp.lsp in the Acad_PE folder named AcadTempLisp.lsp and it's not picking them up. Our Acad2010.lsp & Acad2012.lsp are the ones that come with the install located in the C:\Program Files\AutoCAD 2010\Support folder.
Any ideas what else to check.
"If you don't have time to do it right, will there be time to do it over?" this was hung on my boss' door 15 years ago for me to see on my first day... no pressure really!?!
From what I remember, The files that are renamed with the prefix "acad..." may need to be in one of the default support paths. I have not tried this with 2012. I have tried it successfully with 2011, 2012, & 2013.
This is how I have my personal routines loading.
Otherwise, the way we have custom routines loading at work is:
A custom CUI that is loaded as the "enterprise CUI"
So in one folder we have:
- .cui
- .mnl The .mnl needs to be the same name as the cui for the cui to load it's content. Also, within the .mnl file, all it is doing is calling each of the lisp routines, ex. (load "cool.lsp" "\ncool.lsp not loaded") the second group of quoted text will only show if the lisp doesn't load. Also this is from memory and I don't know if this is exactly what the .mnl says in order to load the files... I will update this post when I am certain.
- .lsp files
- .bmp files for the buttons
~Greg B
Have fun!! www
2 possibilities I can think of: If using acad.lsp, this only loads once per session - the other PC's might have this default setting changed (http://docs.autodesk.com/ACD/2011/EN...0acaf-511f.htm). Though I'd advise rather just adding to acaddoc.lsp instead.
2nd: Is there perhaps something causing an error in one of the LSPs in 2012 only? This might easily happen if you're calling any commands from these. By default loading a LSP will error out if the LSP doesn't load properly. Thus if there's an error in one, none of the following would be loaded either.
Knowledge is proportional to experience, but wisdom is inversely proportional to ego!
My little bit of "wisdom": Hind-sight is useless, unless used to improve the next forethought!
Ensure that you have only one ACADDOC.lsp file, and that AutoCAD can find it.
To check, open a new drawing and type at the command line:
If this returns a valid filepath, ensure that the filepath points to the ACADDOC.lsp that you wish to load. If the above returns nil, AutoCAD cannot find the ACADDOC.lsp file.Code:(findfile "ACADDOC.lsp")
Also, how are you loading the programs in the ACADDOC.lsp? Using the load function? autoload function? Or do each of the programs reside in the ACADDOC.lsp?
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?
Just another Swamper
Registered forum members do not see this ad.
Ah, got it figured out. one of the setvar was crashing the rest of the loads... Thanks everyone for your help!
Lee Mac - What is the difference between doing a load, and an autoload function?
"If you don't have time to do it right, will there be time to do it over?" this was hung on my boss' door 15 years ago for me to see on my first day... no pressure really!?!
Bookmarks