Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get iProperty of Each Model In a Drawing, for all Open Documents

1 REPLY 1
SOLVED
Reply
Message 1 of 2
C_Haines_ENG
177 Views, 1 Reply

Get iProperty of Each Model In a Drawing, for all Open Documents

Hello all!

 

Well I was going to ask this question but coincedentally I solved it myself as I was making the post. Ill leave it here for future people. See anwser below. 

1 REPLY 1
Message 2 of 2
C_Haines_ENG
in reply to: C_Haines_ENG

This code will get the description of the attached model file of all open drawings.

 

Dim oDoc As Document

For Each oDoc In ThisApplication.Documents.VisibleDocuments
	
AttachedModel = oDoc.Sheets.Item(1).DrawingViews.Item(1).ReferencedDocumentDescriptor.ReferencedDocument
Description = AttachedModel.PropertySets.Item("Design Tracking Properties").Item("Description").Value


Next

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report