yrnomad Posted July 3, 2012 Posted July 3, 2012 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? Quote
Lee Mac Posted July 4, 2012 Posted July 4, 2012 The Startup Suite is known to be temperamental at times, have you tried using the ACADDOC.lsp? Quote
troggarf Posted July 5, 2012 Posted July 5, 2012 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>ApplicationPlugins Simply place the lisp files in there and enjoy. http://autocadtips.wordpress.com/2011/12/03/auto-load-your-lisp-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 Quote
yrnomad Posted July 5, 2012 Author Posted July 5, 2012 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. Quote
yrnomad Posted July 6, 2012 Author Posted July 6, 2012 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: 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. Quote
troggarf Posted July 6, 2012 Posted July 6, 2012 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 Quote
irneb Posted July 7, 2012 Posted July 7, 2012 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/ENU/filesACR/WS1a9193826455f5ffa23ce210c4a30acaf-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. Quote
Lee Mac Posted July 7, 2012 Posted July 7, 2012 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: (findfile "ACADDOC.lsp") 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. 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? Quote
yrnomad Posted July 9, 2012 Author Posted July 9, 2012 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? Quote
irneb Posted July 9, 2012 Posted July 9, 2012 You might find this thread useful to figure out what autoload does: http://forums.augi.com/showthread.php?124070-Autoload-LISP-by-entering-functionname Quote
Lee Mac Posted July 10, 2012 Posted July 10, 2012 Here is a brief overview of the Startup Suite / load / autoload: http://lee-mac.com/autoloading.html Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.