Entity selection

Entity selection

Anonymous
Not applicable
315 Views
2 Replies
Message 1 of 3

Entity selection

Anonymous
Not applicable
Hiya

I would like to select entities with an area and not those outside it (I have defined a 2D polyline as a boundary).
Is there a trick which would allow me to instruct 2008 to select only entities within the boundary and exclude those outside of the boundary?

Thanks
0 Likes
316 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
create a selection set and use acSelectionSetWindow as the mode
0 Likes
Message 3 of 3

jbooth
Advocate
Advocate
acSelectionSetWindow will select in a rectangle. I think the question was for something that will select based on a polyline of any shape.

acSelectionSetFence will get what you need, but when using the Select() method point1 needs to be an array of points, and point2 needs to be a null reference.

Note that this will only work with straight polylines (no bulges).
0 Likes