Button Properties

Use the Button properties pane to add a command button that launches an application, add-in, or Web page.

To display this pane:

In the Card Editor, click Button (Controls toolbar), and click in the card to place the button.

Caption The caption for the command button.

If you leave the edit box empty, the button will not have a caption.

Command type The type of action the button command should perform:
Command String

Enter a command in the Command field to be run when the button is clicked. For example, the command could be the name of an executable file, such as notepad.exe. Click to add dynamic triggers to the command string. Enclose commands and triggers containing spaces with quote signs).

  • Browse - Opens the browse for file dialog box, where you can select a file to be used in the command field.
    The file and path must be available to all client systems intending to use the command button.
  • File Path (%1) - Adds the full file path to currently selected file.
  • File Vault Name (%2) - Adds the current vault name.
  • File Name (%3) - Adds the file name of currently selected file.
  • File Extension (%4) - Adds the file extension of currently selected file.
  • Folder Path (%5) - Adds the folder path of currently selected file.
 
Browse for File

Opens a browse for file dialog box for the user to select a file.

  • Dialog box caption - Title of the browse for file dialog box.
  • Destination variable - Select a data card variable to hold the full path to the file that is selected in the browse dialog box.
  • Only files in the vault - The user can select only vault files.
  • Path relative to vault root - The file path of the selected file is shown relative to the vault root.
  • Permit multiple selection - The user can select multiple files in the browse for file dialog box.
 
Select Folder

Opens a select folder dialog box for the user to select a folder.

  • Dialog box caption - Title of the browse dialog box.
  • Destination variable - Select a data card variable to hold the full path of the folder that is selected in the browse dialog box.
  • Only files in the vault - The user can select only vault folders.
  • Path relative to vault root - The file path of selected folder is shown relative to the vault root.
 
Run Add-in

Launches an installed SOLIDWORKS PDM add-in.

  • Name of add-in - Type the name of the add-in.
 
Web Page

Opens a Web page.

  • WWW-address - Type the URL of the Web page.