Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Active Member
zasanil
Posts: 6
Registered: ‎05-08-2007
Message 1 of 6 (265 Views)

polyline encompassing multiple ojects to one polyline

265 Views, 5 Replies
05-09-2012 06:32 AM

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.

*Expert Elite*
Kent1Cooper
Posts: 5,363
Registered: ‎09-13-2004
Message 2 of 6 (258 Views)

Re: polyline encompassing multiple ojects to one polyline

05-09-2012 06:57 AM 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
Active Member
zasanil
Posts: 6
Registered: ‎05-08-2007
Message 3 of 6 (254 Views)

Re: polyline encompassing multiple ojects to one polyline

05-09-2012 07:08 AM 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

*Expert Elite*
Kent1Cooper
Posts: 5,363
Registered: ‎09-13-2004
Message 4 of 6 (228 Views)

Re: polyline encompassing multiple ojects to one polyline

05-09-2012 08:38 AM 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
Active Member
zasanil
Posts: 6
Registered: ‎05-08-2007
Message 5 of 6 (221 Views)

Re: polyline encompassing multiple ojects to one polyline

05-09-2012 09:16 AM 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.

Mentor
stevor
Posts: 846
Registered: ‎12-26-2005
Message 6 of 6 (166 Views)

Re: polyline encompassing multiple ojects to one polyline

05-15-2012 06:35 AM 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
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.