I forgot about this problem....
I tried something today, but it seems is not working like a thaught it would.
So... back to my question:
What is the fastest way to get the entities which intersect a specific object?
Possible Answers:
A1: Just looping all the objects in drawing and checking with
IntersectWith() method.
Bad Idea, because it takes too long,espeally if I have a very large number of entities in my drawing.
A2: By using the method
editor.SelectCrossingWindow().
In this case, I need to define the zone for the object I selected. So I used the GeometricExtents.MaxPoint and GeometricExtents.MinPoint, but it's not always working. Sometimes, I get the objects which intersect the selected object, but sometimes I don't. Maybe, the way I'm calling the method with MaxPoint and MinPoint...
So... what should I do in order to use the editor.SelectCrossingWindow in order to get consistent results?
Later Edit:
If I'm using this method, I don't get always all the entities which intersect my object:
public static PromptSelectionResult SCW(Editor editor, Entity selectedEntity)
{
Point3d min = selectedEntity.GeometricExtents.MinPoint;
Point3d max = selectedEntity.GeometricExtents.MaxPoint;
PromptSelectionResult acSsPrompt = editor.SelectCrossingWindow(max, min);
return acSsPrompt;
}