AnsweredAssumed Answered

API System Options Hide/Show Feature Manager?

Question asked by Derek Eldridge on Mar 13, 2019
Latest reply on Mar 19, 2019 by Derek Eldridge

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