hi,
been struggling with this one for a while. Looking through previous posts I have got so far, but cannot determine what the parent xref of the nested xref is. Code below is what I have at present. I cannot get from a graphnode to a xrefgraphnode, that's assuming I am heading in the correct direction. Any pointers would be appreciated.
graphXref = db.GetHostDwgXrefGraph(False)
For idx As Integer = 1 To graphXref.NumNodes - 1
'Dim nodeXref As XrefGraphNode()
nodeXref = graphXref.GetXrefNode(idx)
If Not nodeXref Is Nothing Then
Dim btrId As ObjectId
btrId = nodeXref.BlockTableRecordId()
Dim jkBTR As BlockTableRecord = CType(tm.GetObject(btrId, OpenMode.ForRead, False), BlockTableRecord)
Dim path As String = jkBTR.PathName
Debug.WriteLine("xref = " & nodeXref.Name & " path=" & path & " " & nodeXref.IsNested & " " & nodeXref.NumIn & " " & nodeXref.NumOut)
If nodeXref.NumOut = 1 Then
Dim tnode As GraphNode
tnode = nodeXref.Out(0)
'tnode = CType(nodeXref.Out(0), XrefGraphNode)
End If
End If
Next