Showing posts with label LISP. Show all posts
Showing posts with label LISP. Show all posts

AutoCAD: Load LISP and Applications Manually or Automatically

Hot to load LSIP routines and other applications
Català - Castellano - Deutsch
I wrote recently some posts about using LISP routines to speed up certain tasks. I forgot to mention, how to load these Files. The manual way is to use the command APPLOAD. This will call the Load Application Dialog Box where you can browse for the saved LISP.



Alternatively, if it is a LISP that you use regularly, simply drag and drop it into the icon saying Startup Suite in the APPLOAD dialog box. This will make the LISP or application load automatically at start of the AutoCAD session.


Show me more...

AutoCAD: AutoLISP to Generate Multiple Hatch Boundaries

Do you need to re-generate the boundaries of multiple hatch patterns? An AutoLISP routine will do it.
Català - Castellano - Deutsch
I had to work on some files converted from ArchiCAD to AutoCAD and needed to use the AEC Space entities to get the areas. Unfortunately, plain AutoCAD doesn't read the are of this objects, and by exploding them, it generated Hatch Patters that would not show their area on the properties palette.

The solution for a single AEC_SPACE, was simple, explode it, regenerate the boundary of the Hatch Pattern, and select the resulting Polyline to see the area (or to extract the area to an excel file as explained on a previous post). The problem came becuase there were a lot of this AEC_SPACE objects,and AutoCAD does not allow to regenerate boundaries of multiple Hatch Patterns at the same time.

The solution was found via DigitalCAD, in the form of a LISP routine called HATCHB.LSP. This routine when used, allows you to select as many Hatch Patterns as you want and obtain their boundaries in the form of polylines. The polylines will be generated on the current layer, and properties.

Some thoughts: This real life situation is a clear case that shows how format incompatibilities makes us waste a lot of time. In this case the lead architect works in ArchiCAD, but we as Contruction Managers have only AutoCAD, so everytime we get files from them there is a lot of information in those files that is wasted, because we can not read it properly, so we have to waste hours on retracing polylines to be able to double check the information we have received...


Show me more...

AutoCAD: Set of Free AutoLisp Routines

A set of free AutoLISP routines for AutoCAD
Català - Castellano - Deutsch
My friend Aarti just sent me a link to a website that has collected a bunch of free AutoLISP routines. I haven't had time to check them one by one but I thought I'd post the link here in case you want to give it a look.

The one she told me she used was TLEN.lsp, that allows you to callculate the total length of a set of linear objects (lines, polylines, ecs) etc. Saving a lot of time when you have to do some measurements.

Here is the link to the list of free LISP



Show me more...

AutoCAD: LISP Routine for Converting Splines to Polylines

A LISP Routine to Convert some SPlines to Polylines. It has some bugs though.
Català - Castellano - Deutsch
I was recently looking for a way to convert Splines to Polyines and found a LISP routine via Cadalyst. The routine works fine for Splines that we create from scratch. Unfortunately it doesn't work properly for Splines that have been generated when we offset an ellipse. In that case, the resulting polyline does not correspond to the spline we selected. For any other spline, it seems to work properly. You can download it at the cadalyst website.
As I previously explained, remember that you have the option to create ellipses as such or to do it creating an ellipse looking polyline through the PELLIPSE system variable.

Update: Kerry pointed out that there is a much easier way to convert Splines into Polylines. It is as simple as using the FLATTEN command for the spline you want to Convert. Thanks Kerry for the feedback.

Show me more...