Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Edit part iproperties from drawing using VBA maco

0 REPLIES 0
Reply
Message 1 of 1
pball
687 Views, 0 Replies

Edit part iproperties from drawing using VBA maco

Could anyone help me with this. I found a macro which can edit the drawings iproperties, so I'm guessing it'd only be a matter of pointing the macro at the part instead of the drawing. Thanks

 

Function Fill_In_Checked_By(ByVal name, ByVal dt) As Boolean

' Get the active document.
Dim invDoc As Document
Set invDoc = ThisApplication.ActiveDocument
' Get the part number property.
Dim invPartNumberProperty As property
Set invPartNumberProperty = invDoc.PropertySets.Item("Design Tracking Properties").Item("Checked By")
invPartNumberProperty.Value = name
Set invPartNumberProperty = invDoc.PropertySets.Item("Design Tracking Properties").Item("Date Checked")
invPartNumberProperty.Value = dt
invDoc.Update

End Function

 

Tags (3)
0 REPLIES 0

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

Post to forums  

Autodesk Design & Make Report