Get iProperties for child/reference files

Get iProperties for child/reference files

Anonymous
Not applicable
399 Views
2 Replies
Message 1 of 3

Get iProperties for child/reference files

Anonymous
Not applicable
Can you use "ReferencedOLEFileDescriptor" to get the iProperties for child/referenced files cotnained within a drawing or assembly or is there another method?
It doesn't look like it would work without opening the files first. I may be looking at it wrong.
0 Likes
400 Views
2 Replies
Replies (2)
Message 2 of 3

ewcler
Enthusiast
Enthusiast
Real quick and dirty, I use the .AllReferencedDocuments collection for this purpose. You have to have the assembly or drawing document open, but it is not necessary to open each child file.
{code}
Public Sub ListAssemblyChildren()
Dim InvDoc As Document
Set InvDoc = ThisApplication.ActiveDocument
Dim invDocument As Document
Dim i As Integer

For i = 1 To InvDoc.AllReferencedDocuments.Count
Set invDocument = InvDoc.AllReferencedDocuments.Item(i)
Debug.Print invDocument.FullFileName


Next i


End Sub

{code} Edited by: ewcler on Aug 21, 2009 9:42 AM
Eddie Cler
Paul's Machine & Welding Corp.
Dell Precision T3600- Xeon E5-1620 @ 3.6 GHz 32GB Ram - Nvidia Quadro 4000 Windows 7
0 Likes
Message 3 of 3

Anonymous
Not applicable
That works perfect... thanks!
0 Likes