Hello,
I guess I'm missing something fundamental. If a block reference is inserted into a drawing twice then it is in two locations and the objects inside the xref are shown in two locations - I believe with their own object IDs. If you have an objects of a component inside one of the block references I would think I could find the specific block reference it is located inside of...not just the block table record or the database reference (which is the same for both objects)
I guess I should back up my thought process...
I have an xref inserted in a drawing and the reference is shown in a position other than 0,0,0.
If you are in a viewport and cycle through each object in the model and then use the Autodesk.AutoCAD.Internal.Utils.SelectObjects on each individual object, the selection grips AutoCAD shows are not on the object in the XREF. They are offset from the actual object displayed by AutoCAD by the exact distance where the XREF Block Reference is offset. I assume this is a bug in AutoCAD because if you put a solid around the xREF and do a clash with the object...AutoCAD (in terms of the clash location) believes the object is where the grips are shown above...not the true location of where its drawn or in fact where the xREF Block Reference refers to.
Does that make any sense???
Anyhow, i need the XREF Block Reference so I can perform a transform on the object to get the correct location...
I must be missing something. I need a way to get to the specific XREF Block reference from the object reference...