Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Curtis_Waguespack
in reply to: william

Hi @william 

 

This should work for you.

 

Also recall that there is the Inventor Customization forum , where programming questions of this type are better suited:
http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120

 

I'll ask the moderators to move this to that forum.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

oCustomPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties")

Dim searchTerm As String 
searchTerm = "Item"

For Each oProp In oCustomPropertySet
	If oProp.name.Contains(searchTerm) Then 
		MessageBox.Show("We found: " & oProp.name  _
		& vbLf & "Now we're going to delete it!", "iLogic")
		oProp.delete
		
	End If	
Next