Message 1 of 10

Not applicable
08-14-2018
09:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone!
Sometimes when I dowload 3D CAD models from manufacturer, dowloaded file have many useless properties and each one I have to delete and add my. I'm trying to write a vba macro to deleting and adding custom properties of *IPT and *.IAM files. I have problem with deleting. Why it is not working? Please help.
Private Sub DeleteButton_Click() Dim oCustomPropertySet As Document Set oCustomPropertySet = ThisApplication.ActiveDocument Dim invCustomPropertySet As PropertySet oCustomPropertySet = invCustomPropertySet.PropertySets.Item("Inventor User Defined Properties") For Each oCustomPropertySet In invCustomPropertySet oCustProp.Delete Next End Sub
Thanks
Adam
Solved! Go to Solution.