How to Load an AutoLISP File

If you’re using AutoCAD for long period of time and you know how to use the AutoLISP and the importance of it. You probably know how to load the AutoLISP file in AutoCAD, and you certainly don’t need to read this tutorial. But if happens that you are relatively new on using the AutoCAD and you want to expand your knowledge in this drawing application software, then this tutorial is for you.

AutoLISP a Brief Description

AutoLISP is based on the LISP programming language, which is simple to learn and very usefull in everyway. AutoLISP Applications or routines can interact in AutoCAD in many ways. These routines can prompt the user for input, access built-in AutoCAD commands directly, and modify or create objects in the drawing database. By creating AutoLISP routines you can add discipline-specific commands to AutoCAD. Actually, some of the standard AutoCAD commands are AutoLISP applications. Knowing how to load and use these routines can enhance your productivity.

Loading the AutoLISP

There are two methods to load an AutoLISP file, one is loading it by using the Customize User Interface editor or CUI, the other is by using the command Load Application or simply APPLOAD. Customize User Interface editor can be found by clicking the CAD Manager pulldown menu, then Customize, then Interface (fig.1).



Alternatively at the command prompt, key-in CUI. Then in the Customize Interface editor tab, in the Customizations in all CUI files pane, right-click LISP files, then click Load LISP. Then in the Load LISP dialog box, locate and select the AutoLISP file you want to load. Remember only files with the extension LSP can be selected here. After you selected the AutoLISP file that you want, click OPEN.



Load Application or simply APPLOAD, using this command is the easiest method in loading an AutoLISP file. You can find this command under CAD Manager pulldown menu on the same place where the Customize User Interface can be found. Or at the command prompt key-in APPLOAD. The good thing in using this method is, not only the AutoLISP files can be loaded but also some other AutoCAD Application files as well. Such as ObjectARX files (arx), VBA files (dvb), ObjectDBX files (dvx), Visual Lisp Executables (vlx), and Fast-load AutoLISP Format (das) [Fig.3].



More of this method here in this post Free AutoLISP Routine.

How to dimension an Arc

dimarc1Two years ago, when I was still using AutoCAD version 2002 in my work. I always encounter an arc portion of a drawing that need to be measured. The problem that was is, AutoCAD version 2002 was not capable of dimensioning an arc.

So most of the time, I always end up doing a method which I called false dimensioning.  A method that will takes some time from you, just to produce a dimension for a single arc.

First thing I did was offset the arc to act as a dimension line, then create a line perpendicular to the arc, then copy an arrow head from my existing dimensions, then measure the actual length of the arc by using command list, then finally put a text on top of the false dimension line.


How to Rotate your Drawing in Paper Space

There are times when you’re almost done, on finishing your drawing, but the only hindrance in doing so are some of the details on your drawing that can’t seem to fit all inside in one paper. And the only solutions you might think is whether you separate it on another paper or just re arrange it.

I remember in my case when I encountered such predicament, I opted to just re-arranged it rather separate it in another paper. I re-arrange the drawing not in model space but in paper space, because I’m afraid it might ruin all the dimensions that I made.

With this, the UCSFOLLOW command and UCS Entity came in handy. These two AutoCAD commands will allow you to do exactly what you want, rotating your drawing without moving it in model space, you can just do it in paper space alone.

First things first you have to make sure your paper space is on UNLOCK mode.

Then while on the paper, space key-in the Mspace command to enter on the model space. Then key-in comand UCSfollow, set the new value to 1 (the default value is 0).

Then key-in UCS in the command prompt, then type E (entity) then enter. While your doing this stuff you’re still inside the model space.
Then the command prompt will ask for the object to be align to ucs. Just select any vertical line on your drawing.

Thats all, my drawing been rotated without doing it actually in model space.