Demo: Select (Panel) Lines which are Open or Closed (Precast, AutoCAD .net)

Demo of tool which selects closed lines.
Demo of tool which selects closed lines.

Sometimes we have a need to identify – and quickly – lines which are open and lines which are closed – especially prior to running any operations on those lines involving regions.

Here is a demo of a little plugin I wrote.

It goes through the modelspace and finds all the line segments which are connected to each other. It further goes on to query which line segments are closed and which are open.

Getting AutoCAD to do this quickly was quite a task. But am very pleased with the speed – only 1-2 seconds when you’re iterating through a few thousand lines. Not bad.

Enough talk, here is the demo:

 

Select Open and/or Closed Panel Lines from Tek1 on Vimeo.

 


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *