Message 1 of 4
How to find parent & Child Relation ship of Xrefs in a drawing

Not applicable
01-03-2009
11:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
HI
I am trying to list out all Xrefs from all drawings in a folder; the problem I face is how to determine the nested xrefs in an xref in the current drawing so that I could have the listing with hirer key such as that in the Xref manager.
I have a code below that gives me the xref names and path but does not tell me if this is a parent or child xref.
For Each tempBlock In ThisDrawing.Blocks
If tempBlock.IsXRef Then
xrlist.AddItem
xrlist.List(colno, 1) = tempBlock.Name
xrlist.List(colno, 2) = tempBlock.Path
End If
Next
Could someone tell me how to find out the parent and child xrefs in a drawing?
I am trying to list out all Xrefs from all drawings in a folder; the problem I face is how to determine the nested xrefs in an xref in the current drawing so that I could have the listing with hirer key such as that in the Xref manager.
I have a code below that gives me the xref names and path but does not tell me if this is a parent or child xref.
For Each tempBlock In ThisDrawing.Blocks
If tempBlock.IsXRef Then
xrlist.AddItem
xrlist.List(colno, 1) = tempBlock.Name
xrlist.List(colno, 2) = tempBlock.Path
End If
Next
Could someone tell me how to find out the parent and child xrefs in a drawing?