Sldworks.exe is the executable file that launches SOLIDWORKS 3D. This process can be launched with arguments that trigger certain modes or behaviors in SOLIDWORKS. Most arguments that are not well documented can be found in this thread on cadoverflow.
The arguments are case-sensitive. Make sure to respect the letter casing when you use them.
How to launch sldworks with arguments?
Simply follow these instructions:
- Open cmd
- Type the command CD followed by the path to the SOLIDWORKS installation folder enclosed in double-quotes.
- Type the following command to launch SOLIDWORKS with the desired argument. I’m using the /r argument:
1 |
sldworks.exe /r |
/r
This argument will suppress certain dialogs (dialogs of the MsgBox style) in SOLIDWORKS. From my experience, it suppresses dialogs created by SldWorks.SendToMsgToUser2 and SldWorks.SendToMsgUser. An example of the dialog that is affected by this argument is the journal warning when you launch multiple instances.
![](https://bluebyte.biz/wp-content/uploads/2022/07/image-3.png)
/m
This argument is used to launch a macro (swp). Using it would launch the SOLIDWORKS application without the splash screen.
/b
The argument launches SOLIDWORKS in batch mode. It launches SOLIDWORKS in a small window. This might be an issue for API calls that require UI such as ZoomToFit2.
![](https://bluebyte.biz/wp-content/uploads/2022/07/image-4.png)
/d
The argument launches SOLIDWORKS in developer mode and enables the menu below.
![](https://bluebyte.biz/wp-content/uploads/2022/07/image-5.png)
/swlite
This argument opens SOLIDWORKS in read-only mode. This can be useful when users are not meant to edit or create new models. The close window button (x) is not functional.
![](https://bluebyte.biz/wp-content/uploads/2022/07/image-6-1024x565.png)
/SWGenericMainWinTitle
This argument launches the sldworks.exe process without the year in the DS SOLIDWORKS logo (generic logo).
![](https://bluebyte.biz/wp-content/uploads/2022/07/image-7-1024x681.png)
/SWDisableExitApp
This argument launches the sldworks.exe process and disables the crash window.
Update: 2022/07/12
I have reached out to API support to get more information on the sldworks arguments and it turns out that they are not documented or supported by the API team.
![](https://bluebyte.biz/wp-content/uploads/2022/07/image-8-1024x884.png)