Table of Contents

runtemplate

Free

Description

Runs a SOLIDWORKS PDM template from PDMShell by using the template menu name.

The runtemplate command is useful when you want to start a configured PDM template from a script or command line workflow. The command runs the template in the current vault folder unless a different vault folder is provided.

Syntax

runtemplate -templateName template_menu_name [-directory vault_folder] [-silent]

Parameters

Parameter Alias Required Description
-directory -d No Vault folder where the template should run. Defaults to current folder.
-silent No Automatically confirms the template create dialog.
-templateName Yes Template menu name to run.

More about parameters

  • templateName Required. Template menu name to run. This is the same name shown for the template command in SOLIDWORKS PDM.
  • directory Optional. Vault folder where the template should run. If omitted, the current PDMShell folder is used.
  • d Optional short name for directory.
  • silent Optional. Automatically confirms the template creation dialog when possible.

Examples

# runtemplate
runtemplate -templateName "New Project"

# runtemplate
runtemplate -templateName "New Project" -directory "Projects"

# runtemplate
runtemplate -templateName "New Project" -d "Projects"

# runtemplate
runtemplate -templateName "Create ECO" -d "Engineering Change Orders" -silent

Remarks

  • The template name must match the template menu string configured in SOLIDWORKS PDM.
  • The command uses the current vault session.
  • If directory is relative, it is resolved from the current PDMShell folder.
  • The template must be installed and available in the selected vault.
  • Use silent only when the template can be created without entering additional information. It does not populate template-card fields from task inputs. An interactive desktop is still required.
  • Hosted add-in/task execution also attempts automatic confirmation.