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.
@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.
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
@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....
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.
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.