Hi, if the iProperties' names are always the same (I assume you mean custom iProperties) then it is quite easy to do:
iProperties.Value("Custom", "PropertyName1") = ""
iProperties.Value("Custom", "PropertyName2") = ""
For Project iProperties:
iProperties.Value("Project", "Part Number") = ""
For assembly:
Dim oDoc As Document = ThisApplication.ActiveDocument
Dim aDoc As DocumentsEnumerator = oDoc.AllReferencedDocuments
Dim iDoc As Document
For Each iDoc In aDoc
'Here we clean iProperties in each of the parts in assembly
Dim sTS As String = iDoc.FullFileName
Dim FNamePos As Long = InStrRev(sTS, "\", - 1)
Dim docFName As String = Mid(sTS, FNamePos + 1, Len(sTS) - FNamePos)
iProperties.Value(docFName, "Custom", "PropertyName1") = ""
iProperties.Value(docFName, "Custom", "PropertyName2") = ""
Next
'Here we clean the assembly's iProperties
iProperties.Value("Custom", "PropertyName1") = ""
iProperties.Value("Custom", "PropertyName2") = ""
Consider using "Accept as Solution" / "Kudos" if you find this helpful.
- - - - - - - - - - - - - - -
Regards,
Mike
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - John F. Woods