Auto Load Your Lisp Files (& others)

I was fortunate enough to attend Autodesk university this week. There were many things that I learned but one thing I learned was from a class that I did not attend. A friend attended a class and and learned this awesome tip from this class. He told me and now I am happy to say that IT WORKS!!!!

What is this tip? It is very simple – there is a folder that is included in AutoCAD 2012. This folder can contain any custom routine – LISP, .NET, ObjectARX, VBA…

After being placed in this folder, AutoCAD will automatically load it for you. So instead of using the commands NETLOAD or APPLOAD and then searching for your lisp file or .dll, it is automatically loaded and ready to be used without having to do anything but simply placing the routine in the folder. How cool is that?

The following is where the folder is located:
Computer>C:>Users>(username)>AppData>Roaming>Autodesk>ApplicationPlugins

Notice that there are folders already in this location. These are plugins that I loaded from the “App Store” that is available in AutoCAD 2012. And this folder is where these plugins are stored and thus auto-loaded as well.

Below is a routine that I simply copied into this folder and then opened AutoCAD. After AutoCAD started, I simply ran the command and it works as if it was a native AutoCAD command.

The Routine shown in this example can be found here.

Note: I am using this for LISP routines only for now.

Advertisements

About AutoCAD Tips

This blog serves as a knowledge base for myself (and anyone else) so that I can reference tips & tricks that I have learned and also refer others to it as well. I hope that this blog helps you learn at least one tip to make your drafting/design experience better.
This entry was posted in AutoLISP, Customization, New in 2012. Bookmark the permalink.

9 Responses to Auto Load Your Lisp Files (& others)

  1. aldo says:

    Hi ma am aldo from mauritius and i also enjoy uising autocad. am experiencing a problem wirth the hide object tool , do you think you can help me ?

  2. Sivashankar says:

    Hi thanks for this helpful post – Siva

  3. M SHERAZ says:

    HI BUNDLE OF THANKS FOR HELPFUL POST

  4. frank says:

    I have used this trick on 2012 and thanks for it…how about for 2014, is there a way to auto load the lisps that I have?

    • AutoCAD Tips says:

      Unfortunately, the autolaoder functionality as shown in this post was only good for 2012.
      2014 requires a support path to be added and ALSO a “Trusted Path” to be defined in order to load custom content.
      Check out this link that discusses it more: http://designandmotion.net/autodesk/autocad-2014-startup-lisp-and-autodesk-new-security/

    • Craig says:

      I had the same problem with ACAD 2014 however I went into the ‘Options’ – ‘Files’ and then the third folder down which says ‘Trusted Locations’. Click on the ‘+’ symbol to open it and then click ‘Add’ then ‘Browse’. All you need to do is put in the path where your LSP programs are. Click on ‘Apply’ then exit. Close ACAD down and then open ACAD up again and it works!

  5. Lots of thanks for this simple solution. it saved lot of time :-)

  6. qasir says:

    VERY THANKS

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s