I'd like to add or update a "Description" custom property with other existing custom properties. If I were doing it manually I'd populate the "Descriptoin" prop with the following:
\$PRP:"GenericDescription" \$PRP:"ConfigDescription"
I was thinking something along the lines of this but I can't figure out how to get the above information in the program.
*Note this is part of a routine that would traverse an assembly
-------------------------------------------------------------------------------------------------------------
Function updateProperty(swModel As SldWorks.ModelDoc2) As Boolean
Dim cpm As CustomPropertyManager
Dim path As String, filename As String, Description As String, DescVal As String
Set cpm = swModel.Extension.CustomPropertyManager("")
Set DescVal=\$PRP:"GenericDescription" \$PRP:"ConfigDescription"
cpm.Delete "Description"
cpm.Add2 "Description", swCustomInfoText, "\$PRP:"GenericDescription" \$PRP:"ConfigDescription"
End Function
SolidworksApi macros