.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Selecting All Overlapping Polylines

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
scluna
1618 Views, 4 Replies

Selecting All Overlapping Polylines

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
4 REPLIES 4
Message 2 of 5
SENL1362
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.
Message 3 of 5
scluna
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
Message 4 of 5
SENL1362
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.
Message 5 of 5
scluna
in reply to: SENL1362

I see. The link you gave is quite helpful.

 

Thank you and regards.

SCLuna

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost