.NET

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

parent xref of nested xref

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

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.