Read all Properties from referenced drawings

Read all Properties from referenced drawings

GeorgK
Advisor Advisor
370 Views
2 Replies
Message 1 of 3

Read all Properties from referenced drawings

GeorgK
Advisor
Advisor

Hello together,

 

whats the best and quickest way to iterate through a complete assembly and read all Part Number from all refenced drawings? I would like to compare the number from the part with number of the drawing and update it if it´s not correct.

 

 

For Each docFile In openDoc.AllReferencedDocuments
  Dim oIProInEachRefDoc
  oIProInEachRefDoc = docFile.PropertySets("Design Tracking Properties").Item("Part Number")
  Dim oPartNo
  oPartNo = oIProInEachRefDoc.Value  
  MessageBox.Show(oPartNo)  
Next

 

Thank you Georg

0 Likes
371 Views
2 Replies
Replies (2)
Message 2 of 3

GeorgK
Advisor
Advisor
Solved it.
0 Likes
Message 3 of 3

adam.nagy
Autodesk Support
Autodesk Support

Hi Gerg,

 

I'm glad you managed to find the solution.

Could you please write it down here and then set it as the accepted solution?

 

Thank you,



Adam Nagy
Autodesk Platform Services
0 Likes