Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

polyline encompassing multiple ojects to one polyline

5 REPLIES 5
Reply
Message 1 of 6
zasanil
715 Views, 5 Replies

polyline encompassing multiple ojects to one polyline

Hello,

I wanted to see if anyone knew of a routine that could accomplish this. I would like to take a polyline that is surrounding multiple objects (other polylines or circles) and draw 1 polyline to define them all. A before and after example is attached that might explain it better. It's going from 3 objects (one polyline and 2 circles) in the before example to one closed polyline in the after example.

Thanks for any help.

Dan Nicholson C.I.D.
PCB Design Engineer
5 REPLIES 5
Message 2 of 6
Kent1Cooper
in reply to: zasanil


@zasanil wrote:

.... I would like to take a polyline that is surrounding multiple objects (other polylines or circles) and draw 1 polyline to define them all. A before and after example is attached that might explain it better. It's going from 3 objects (one polyline and 2 circles) in the before example to one closed polyline in the after example. ....


How complex might the shapes of interior Polylines be?  I can imagine something that would draw a temporary Line from the center of the bounding box of each interior object to the closest point on the perimeter Polyline, which would result in something you could run Boundary in.  If all interior objects are "simple" shapes, that should work.  But if interior Polylines could [for example] have concavities, it might sometimes not work as wanted, depending on how complex their shapes are, their orientation, etc.

Kent Cooper, AIA
Message 3 of 6
zasanil
in reply to: Kent1Cooper

Hi Kent,

All the objects would be simple circles, polylines, arcs or lines. They may overlap, but usually don't. They should all be closed objects though. Most of the time they would be circles. I've attached a more realistic example.

Thanks!

Dan

Dan Nicholson C.I.D.
PCB Design Engineer
Message 4 of 6
Kent1Cooper
in reply to: zasanil


@zasanil wrote:

....

All the objects would be simple circles, polylines, arcs or lines. They may overlap, but usually don't. They should all be closed objects though. Most of the time they would be circles. I've attached a more realistic example.

....


Wow....  You appear to have a lot of situations similar to the very simplified version in the attached image.  If what it says in there is correct about the way you would want it to work, I have a hard time imagining how a routine could be made to figure all of that out in your example situation.  But I'll continue to think about it....

Kent Cooper, AIA
Message 5 of 6
zasanil
in reply to: Kent1Cooper

Thanks for trying Kent. The right side in your example would be what I need, but I can see where it can get out of control really fast.

Dan Nicholson C.I.D.
PCB Design Engineer
Message 6 of 6
stevor
in reply to: zasanil

One way has been to connect the objects by some criteria,

like shortest distance, like the traveling salesman problem;

for cable planning, and a bunch of exotic methods.

S

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost