Can someone please push me in the right direction to understanding how to execute this enum?
I'm getting Compile error: Method or data member not found on .swFeatureManagerBlocksVisibility
2018 SOLIDWORKS API Help - System Options > FeatureManager
2018 SOLIDWORKS API Help - swAutoHideShowResponse_e Enumeration
I was trying to do it like this:
Dim swApp As SldWorks.SldWorks
Dim swModel As SldWorks.ModelDoc2
Dim Hide_Show As swAutoHideShowResponse_e
Sub main()
Set swApp = Application.SldWorks
Set swModel = swApp.ActiveDoc
Hide_Show = swModel.SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swFeatureManagerBlocksVisibility, swAutoHideShowResponse_e.swAutoHideShowResponse_Hide) 'Blocks
End Sub
SolidworksApi/macros