The attached MirroredPart11.sldprt has config specific custom properties set that I wish to read. The file was created by the assembly mirror feature. Unfortunately the GetAll and Get4 methods are not returning anything. That is unless you do a File->Properties->Ok. Are there any API methods I can call to have SW recalc the custom properties?
Sub main()
Dim App As SldWorks.SldWorks
Dim Doc As ModelDoc2
Dim CustPrpMan As CustomPropertyManager
Set App = Application.SldWorks
Set Doc = App.ActiveDoc
Set CustPrpMan = Doc.Extension.CustomPropertyManager("d01")
Dim PropNames, PropTypes, PropValues As Variant
Debug.Print CustPrpMan.GetAll(PropNames, PropTypes, PropValues)
Dim i As Long
For i = 0 To CustPrpMan.Count - 1
Debug.Print PropNames(i); PropTypes(i); PropValues(i)
Next
End Sub
SolidworksApi macros