Inventor General Discussion

Inventor General Discussion

Valued Mentor
269 Posts
70 Kudos
Registered: ‎04-20-2012
Post 1 of 1

Edit part iproperties from drawing using VBA maco

406 Views, 0 Replies
06-05-2012 05:57 AM

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

End Function


Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!