Jim Kelly
Posts: 3
Registered: ‎04-30-2004
Message 1 of 1 (103 Views)

parent xref of nested xref

103 Views, 0 Replies
11-07-2006 01:46 AM
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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!