How to select assembly component feature in detail view?

Does anyone have real solution for this problem? I have drawing where is detail view of assembly. Now I want select assembly component feature with SelectByID2 from detail view. Problem is that View.Name and View.GetName2 returns wrong viewname for selection. I mean there can be for example two views in drawing:"Drawing View1" and "Detail View1". View.Name returns both of those names correctly as seen on feature tree, but the correct name of "Detail View1" for SelectByID2 method would be "Drawing View2".

Also getting rootcomponent name for "Detail View1" returns drawing component name which is actually from the parent view and not from the detail view.

SolidworksApi macros