SW Menus
SW Menus
(OP)
Hi,
How can I hide the menus and toolbars of SolidWorks? Note: The user can not add this removed buttons.
Regards,
MHendler
How can I hide the menus and toolbars of SolidWorks? Note: The user can not add this removed buttons.
Regards,
MHendler






RE: SW Menus
Also on the commands tab of the menu, you can add additional icons to your toolbars which are not there by default.
The menu's tab will also allow you to customize your menu's but why would you want to do this?
RE: SW Menus
Regards,
MHendler
RE: SW Menus
The toolbars are default set to auto-activate, that is follow the document set-up.
On the TOOLS - CUSTOMISE - TOOLBARS TAB try unchecking the auto-activate toolbars box. Maybe that's what you are after........
RE: SW Menus
Regards,
Jon
jgbena@yahoo.com
RE: SW Menus
work in background and monitor SW and catch SW notifications like "OnSave".
Then maybe you can do your thing.
BR,
Linqur
RE: SW Menus
RE: SW Menus
For an example, see "FileSaveNotify" in the API help.
RE: SW Menus
Answer: The "sldworks.exe /M 'macroName'" command line string can be used to execute a macro on startup.
RE: SW Menus
To do this right, you'd probably want to specify which toolbars, etc, and probably use a Form, etc... which cant be posted here.
The following snippet will turn ALL toolbars on/off. There's no error checking, or version checking... which will especially be needed if NOT run on sw2003, because the numbers of toolbars can/will change.
Sub main()
Dim Toolbar As Long
Dim swApp As SldWorks.SldWorks
Dim Part As ModelDoc2
Dim Visibilty As Boolean: Visibility = False 'set to false to hide
Set swApp = Application.SldWorks
Set Part = swApp.ActiveDoc
' assuming SW2003, and 27 toolbars ...
For Toolbar = 0 To 26
Part.SetToolBarVisibility Toolbar, Visibility
Next Toolbar
End Sub