Jump to content

Recommended Posts

Posted

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?

Posted

The Startup Suite is known to be temperamental at times, have you tried using the ACADDOC.lsp?

Posted

Big 1+ for Acad.lsp & AcadDoc.lsp here.

Posted

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

Posted

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.

Posted

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.

Posted

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:

  1. .cui
  2. .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.
  3. .lsp files
  4. .bmp files for the buttons

Posted

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.

Posted

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?

Posted

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?

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...