Have ever you used the SldWorks.exe arguments?

Amen Jlili

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:
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.

SOLIDWORKS journal dialog

/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.

SOLIDWORKS launched in batch mode

/d

The argument launches SOLIDWORKS in developer mode and enables the menu below.

/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.

SOLIDWORKS launched in lite mode.

/SWGenericMainWinTitle

This argument launches the sldworks.exe process without the year in the DS SOLIDWORKS logo (generic logo).

Sldworks.exe launched with a generic DS SOLIDWORKS logo

/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.

More great articles

Export SOLIDWORKS PDM BOMs to xlsx with thumbnails – PDM2Excel

With version 6 of PDM2Excel, a new export function has been added to allow you to export your PDM BOM…

Read Story

Prepare for the CSWP-API Exam like a BOSS

The CSWP-API is the latest addition to the SOLIDWORKS catalog of certificates (If you discount the 3DExperience platform).This exam tests…

Read Story

Export SLDPRT and SLDASM to HTML with PDM Convert Task Extended

Version 8 of the PDM Convert Task Extended comes with support for exporting SOLIDWORKS parts and assemblies to HTML. The…

Read Story
Arrow-up
×