AfraLISP - Learn AutoLISP for AutoCAD productivity

Learn AutoLISP for AutoCAD productivity

What is AutoLISP?

AutoLISP is a programming language designed specifically for use with the full version of AutoCAD (i.e. it does not work with AutoCAD LT). AutoLISP is one of a number of Application Programming Interfaces (APIs) built into AutoCAD but it is probably the easiest to use and therefore the most productive for the beginner. If you'd like to learn how to use AutoLISP to improve productivity, you're in the right place.

AfraLISP will help you get to grips with AutoLISP as quickly and easily as possible using some great tutorials for beginners. But the site also contains many intermediate and advanced AutoLISP tutorials to take you much further than the basics. In addition, AfraLISP provides DCL Tutorials (Dialog Control Language), Visual LISP tutorials, VBA Tutorials and AutoCAD customization tutorials in case you'd like to take your AutoLISP and AutoCAD programming to the next level.

Beginners Start Here

Featured Tutorials

Tip of the Day

Filleting Lines

If you have lines within your drawing that you'd like to fillet that you built without the POLYLINE command, you can quickly convert your series of lines to a polyline using the PEDIT command and then use the polyline option during your FILLET command to put fillets on each corner of the polyline - all at one time.

To convert your series of lines to a polyline, type PEDIT at the command line and when prompted to select objects, select one of the objects on your screen. AutoCAD will tell you that the line isn't a polyline and then will ask you if you want to turn that line into one. Reply Y for yes and press [Enter]. At the next prompt, Enter an option…

[Close/Join/Width/Edit vertex/Fit/Spline/Decurve/Ltype gen/Undo]:

Type J for join and press [Enter]. You're then prompted to select the objects onscreen to join. Draw a window around the objects you want to join together as a polyline. Press [Enter] again to exit the command. Your objects have been joined as a polyline and you're now ready to use the FILLET command.

First specify a radius for your fillet by typing FILLET at the command line and then entering R for radius. Then, type a value for the radius and press [Enter]. Press [Enter] again to re-enter the FILLET command and this time type P for polyline in response to the prompt. Select your newly created polyline on your screen and all the corners are filleted onscreen.

Missed a Tip?

Did you miss yesterday's tip? Maybe you forgot to drop by or maybe you didn't visit over the weekend. If so, you can now see all the tips published during the past week.