Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lisp to break apart closed polylines

Status
Not open for further replies.

drumgroove

IS-IT--Management
Sep 25, 2002
4
US
Anyone know of a LISP that will break apart "shapes" composed of many polygons (defined by closed line segments) into it’s components (pieces). The drafting department routinely build a (flat 2d) shape, then divide up and break out the pieces manually for our production process.
Thanks in advance,
Bob Lewis
 
Do you mean, a program to duplicate when you explode an entity until it cannot be exploded any more?
 
What I'm looking for is a way to break up a shape that is assembled using various two dimensional compositional "smaller shapes" (typically rectangles and triangles of specific sizes). These smaller shapes are used for production, so they need to be extracted and sent to a material cutting machine (and then the shapes are assembled to create the end product). The issue is that the draftsmen draw with every method necessary to get the needed end result (highly custom work), so the object that needs to be broken down to it’s fundamental parts can be a mix of line types (in some cases there will be overlapping lines too).
It would be like taking a finished puzzle and breaking it into the pieces that were used to assemble it.
bob

 
There probably is not something that will do exactly what you want but you can write a program to do it. If I am following you correctly, you have these varying shapes (polygons - polylines maybe?) that need separated by their shape? i.e. get all rectangles or get all triangles and show them separately? Am I on the right track?
 
That's it! I have been tasked to develop this routine while learning AutoLISP. I think this is too much to ask, so I am looking for already mostly done solution.
 
Sorry for the delay in replying. Well, if you want a general direction... First create selection sets of each type of object that you are trying to find (i.e. All polylines that have only 3 vertices and is a closed shape) and then iterate one by one through the selection set and then output the info from each. Is this helping any?
 
Yes, it is a help. What would it cost for you to write a lisp like this (I know you will need more information)?
:bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top