export
Description
The export command allows you to export SOLIDWORKS files from the PDM vault to various formats using SOLIDWORKS. This command supports exporting a single file or multiple files found via search, with options for specifying file extensions, export location, and more.
Syntax
export [-search|-filePath] -name -directory -extensions -recursive -version
Parameters
| Parameter | Alias | Required | Description |
|---|---|---|---|
-search |
No | Search query to find files for export. | |
-filePath |
No | Path to the file to export (relative or absolute). | |
-name |
No | The base name for the exported file(s). This supports evaluation. More information here. | |
-directory |
-dir |
No | The target folder for exported files. |
-extensions |
-ext |
No | Comma-separated list of file extensions to export to (e.g., pdf,dxf). |
-recursive |
No | If set, search will include subfolders. | |
-version |
No | SOLIDWORKS year version. Example 2023. Default is latest. | |
-timeout |
No | Timeout in seconds (for starting SOLIDWORKS only) |
More about parameters
The export command requires several parameters:
Examples
Export a file to PDF and DXF in a specific directory using SOLIDWORKS 2023:
export -filePath"Designs/part1.sldprt" -name "part1_export" -directory "Exports" -extensions "pdf,dxf" -version 2023