28 Jun 2016
In the past, I’ve seen requests to use Layer States in a drawing that contains reference drawings, also known as XREFs. The requests typically want to reuse those layer states for additional drawings, however, they always seem to fail when dealing with XREF layers.
Continue reading...
27 Apr 2016
Recently, I was tasked with modifying the Metes and Bounds report found in the Toolbox of the Toolspace palette. This report is generated using an XSL template and also uses some javascript for some formatting.
Continue reading...
11 Apr 2016
Can I get a show of hands for how many of you wish you could set the default Flow Direction Method when creating pipes? That’s a lot of raised hands. Of course, you can create a pipe rule in VBA or .NET to have this automated. But that turns into a lot of steps, just to change this one setting for each pipe. Thankfully, Autodesk has allowed access to this property through AutoLISP.
Continue reading...
08 Apr 2016
A lot of routines need to request user input. Fortunately, AutoLISP allows for this through the many getxxx functions. There is even a way to restrict user input to predefined values. The getkword function allows the programmer to specify these predefined values.
Continue reading...
03 Feb 2016
Many times I’ll need to freeze Civil 3D labels found in referenced drawings (XREF). Unfortunately, the layer assigned to the label may not match the object’s layer. This means the AutoCAD LAYFRZ command will not freeze the expected layer.
Continue reading...