.NET

Reply
Valued Contributor
scluna
Posts: 61
Registered: ‎02-20-2007
Message 1 of 5 (296 Views)
Accepted Solution

Selecting All Overlapping Polylines

296 Views, 4 Replies
02-26-2014 01:35 PM

Hi,

 

Does anyone knows how querying drawing using autocad api (.net) and selecting all overlapping polygon?

Please refer to attached picture of overlapping polyline.

 

Thanks and regards

SCLuna
Mentor
SENL1362
Posts: 167
Registered: ‎07-20-2011
Message 2 of 5 (258 Views)

Re: Selecting All Overlapping Polylines

02-27-2014 10:06 AM in reply to: scluna
Get inspired by Regions and their methods to identify points inside them. Credits to Tony.
http://forums.autodesk.com/t5/NET/Find-entities-in-region/m-p/4772867#M38830

Start with boundary min/max point test against each other .
Then when the inside tests are positive continue with their actual vertices.
Valued Contributor
scluna
Posts: 61
Registered: ‎02-20-2007
Message 3 of 5 (233 Views)

Re: Selecting All Overlapping Polylines

02-28-2014 01:39 PM in reply to: SENL1362

Hi,

 

Is there another method to do this. Although the scripts does the job it is too slow beacuse I will need to convert polyline to region and get all points /vertices of each polyline I will compare with the region?

 

There is a method I saw GetLineContainment, but I am not familiar with how to use it.

 

Thanks and regards,

SCLuna
Mentor
SENL1362
Posts: 167
Registered: ‎07-20-2011
Message 4 of 5 (225 Views)

Re: Selecting All Overlapping Polylines

02-28-2014 10:45 PM in reply to: scluna
the alternative i know of is to do the math your self, ie. calc the in/outside status of vertices within closed area's.
sorry.
Valued Contributor
scluna
Posts: 61
Registered: ‎02-20-2007
Message 5 of 5 (197 Views)

Re: Selecting All Overlapping Polylines

03-03-2014 06:58 AM in reply to: SENL1362

I see. The link you gave is quite helpful.

 

Thank you and regards.

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