Message 1 of 2
X-Ref Listing with RealDwg
Not applicable
08-29-2011
08:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is it possible to get a listing of all of the X-Refs contained in a particular document. I am attempting to do this with the following code: db.ReadDwgFile(testFileName, FileOpenMode.OpenForReadAndWriteNoShare, true, null); using (var tx = db.TransactionManager.StartTransaction()) { var xrefGraph = db.GetHostDwgXrefGraph(true); for(int i = 0; i < xrefGraph.NumNodes; i++) { XrefGraphNode xgn = xrefGraph.GetXrefNode(i); Console.WriteLine(xgn.Name); } } I know that this drawing has 3 attached X-Refs, but none are coming up in the node graph. Any ideas of what I may be doing wrong? Thanks and Regards, Sean Hunter