Find xref object layer
Hi
I am trying to write an app to check all xref objects are on the correct layer according to our office standards. In a project folder that contains a number of dwgs.
Typical we want an xref object inserted on a layer X-FileName.
I have gotten the code at the following link up an running that lets me select a folder and then loops thru the dwgs in the folder and finds the xrefs in each dwg.
https://forums.autodesk.com/t5/net/net-c-updating-xref-path-without-opening-the-drawing/td-p/3566486
I am now stuck at what I need to insert to select the xref object and find the layer it is inserted on.
Is someone able to provide a sample of the code demonstrating now one would find the xref layer.
Regards
Justin Ralston
http://c3dxtreme.blogspot.com/
Justin Ralston
http://c3dxtreme.blogspot.com/
Link copied