Object picking in overlapping detail views

Hey,

I’ve got a question about object picking in (partially) overlapping detail views. I want to create a simple command to help me create drawings, specifically to create leaders with the names of objects in my drawing. This is quite well established on the forum and i have created a command in c# that roughly does this job in the following manner:

  • Create a GetObject with the option to InactiveDetailPickEnabled. The clicked location will be the arrow point for the leader.
  • Use a GetPoint to pick the location for the leader text to be displayed at.

For regular cases, this works quite well. The problem I run into is with partially overlapping detail views.

If, for example, I have drawn the green detail view first, and I’ve drawn the blue detail view partially over top of it, i can not pick the orange surface in the location where the blue detail view obscures it. Even though the orange surface is the only object in quite a bit of the overlapping part of the detail views.

Is there any way for me to control which detail view the GetObject tries to pick the objects in?