Lets try this code...
Dim swApp As SldWorks.SldWorks
Dim swmodel As SldWorks.ModelDoc2
Dim boolstatus as boolean
Set swApp = Application.SldWorks
Set swmodel = swApp.ActiveDoc
boolstatus=swmodel.Extension.RunCommand (swCommands_Show_Config_Or_DisplayState_Name, "test")
Thanks for your reply,
it works but it selects or disselects the tree display item depending on wether it was selected or not before running the macro. I need it selected independend of the former setting.
I found the commands for some of the other items:
swFeatMgr.ShowComponentNames = True
swFeatMgr.ShowComponentDescriptions = True
swFeatMgr.ShowComponentConfigurationNames = True
swFeatMgr.ShowComponentConfigurationDescriptions = True
swFeatMgr.ShowDisplayStateNames = True
swFeatMgr.ShowFeatureName = True
swFeatMgr.ShowFeatureDescription = True
swFeatMgr.ShowFeatureDetails = True
I've been on the hunt, and the original question for the two items Ralf Pätzelt asked about still have not been answered.
I'm looking for the same thing. These were new selections that came out in the 2017 version of solidworks.