Is there an exposed property for "Show Flat Tree View"? It looks like everything else in the Tree Display menu (e.g. Show Component Descriptions) can be accessed via swFeatMgr. But I don't see anything for flat tree view.
Yes it's a toggle. If you repeat it, it will revert back.
No, there is no version to put it in a given state.
Hello. Try this:
Private Declare PtrSafe Function SendMessage Lib "User32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As LongSub main() Dim swApp As SldWorks.SldWorks Dim swFrame As SldWorks.Frame Set swApp = Application.SldWorks Set swFrame = swApp.Frame SendMessage swFrame.GetHWnd, &H111, 25432, 0End Sub
From Artem Taturevich post: SOLIDWORKS API Command Doesn't Exist? Need plan B
Interesting. I’ll give it a shot. Since this API call is basically calling the GUI, which is a checkbox/toggle, does that mean the command is also a toggle? Ideally, I could either switch it specifically on or off. If it is just a toggle, is there a way to call a version that is stateful (is that a word or did I make it up)?
Retrieving data ...