Inventor General Discussion

Inventor General Discussion

Reply
Mentor
pball
Posts: 237
Registered: ‎04-20-2012
Message 1 of 1 (382 Views)

Edit part iproperties from drawing using VBA maco

382 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
invDoc.Update

End Function

 

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.