Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
I am trying to write some code to look through the custom i-properties and if the name of the i-property contains the search term, then delete it.
So far I have got to here...
oCustomPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties") oCustomPropertyName = (oCustomPropertySet.Name) Dim searchTerm As String searchTerm = "Item" For Each oCustomPropertyName in oCustomPropertySet If InStr(1, oCustomPropertyName, searchTerm, CompareMethod.Text) >0 Then MessageBox.Show("We found it", "Debug") Else MessageBox.Show("We didnt find it", "Debug") End If Next
The error i am getting is "Conversion from type 'Property' to type 'String' is not valid."
What am I doing wrong?
Regards
Solved! Go to Solution.