Code:
Option Explicit
Dim swApp As SldWorks.SldWorks
Dim swModel As SldWorks.ModelDoc2
Dim swCustPropMgr As SldWorks.CustomPropertyManager
Dim nNbrProps As Long
Dim j As Long
Dim vPropNames As Variant
Dim valOut As String
Dim resolvedValOut As String
Dim custPropType As Long
Sub main()
Set swApp = Application.SldWorks
Set swModel = swApp.ActiveDoc
Set swCustPropMgr = swModel.Extension.CustomPropertyManager("")
' Get the new number of custom properties for this configuration
nNbrProps = swCustPropMgr.Count
Debug.Print "New number of properties for this configuration: " & nNbrProps
' Get the names of the custom properties
vPropNames = swCustPropMgr.GetNames
' For each custom property, get its type, value, and resolved value
' Then print its name, type, and resolved value
For j = 0 To nNbrProps - 1
swCustPropMgr.Get2 vPropNames(j), valOut, resolvedValOut
custPropType = swCustPropMgr.GetType2(vPropNames(j))
Debug.Print " Name, type, and resolved value of custom property: " & vPropNames(j) & " - "; custPropType & " - " & resolvedValOut
Next j
End Sub