.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

parent xref of nested xref

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
231 Views, 0 Replies

parent xref of nested xref

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
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost