# Sample Jobs All jobs that come with the product are starting with the name '_Sample._'.
Their purpose is mainly to help getting started with creating their custom jobs and to be useful and easy to configure for some common scenarios.
It is recommended to copy these jobs and [create new ones](/jobprocessor/jobs/creating_job_scripts) when they need to be customized. To queue sample jobs see [queueing custom jobs]() section.
When a sample job is queue for a not supported file it will write a message to the log but will not fail.
All the sample jobs which support exports from Inventor Drawings can make use of the Inventor [FastOpen](https://knowledge.autodesk.com/support/inventor/learn-explore/caas/CloudHelp/cloudhelp/2018/ENU/Inventor-WhatsNew/files/GUID-59AED296-334D-4A84-94EA-99196967D926-htm.html) feature.
This means only the drawing without dependencies gets downloaded and [opened](/jobprocessor/code_reference/cmdlets/open-document). **Default settings** The variable `$[type]fileName` - where _[type]_ is the extension of your target file - holds the name of the file to export. It is set to the name of the Vault source file with an additional '._[type]_' suffix. When queuing the [Sample.CreatePDF job]() for the Inventor Drawing _Pad Lock.idw_, the value of the variable would be _Pad Lock.idw.**pdf**_. The variable `$workingDirectory` holds the path to a temporary directory. In the sample jobs it is used as temporary direcotry where Vault files are downloaded or file exports are generated. At the end of each job it will be purged automatically. ## Sample.CreatePDF **Supported files:** _idw, dwg (Inventor and AutoCAD)_
**Configuration file:** - Inventor drawings: [PDF_2D.ini]() - AutoCAD Drawings: [PDF.dwg]() By default, the Job creates a [PDF](/jobprocessor/code_reference/cmdlets/export-document/pdf) and adds it to the Vault as a _DesignVisualization_.
The PDF file is stored in the same location and with the same file name as the drawing and attached to it.
**Settings**
Important settings like the file name for the output format, if and where the file should be added to Vault,
whether the file should be published to a network share, and other settings are specified in the first lines of the job so that they can be easily changed: ```powershell #region Settings # To include the Revision of the main file in the PDF name set $true, otherwise $false $pdfFileNameWithRevision = $false # The character used to separate file name and Revision label in the PDF name such as hyphen (-) or underscore (_) $pdfFileNameRevisionSeparator = "_" # To include the file extension of the main file in the PDF name set $true, otherwise $false $pdfFileNameWithExtension = $true # To add the PDF to Vault set $true, to keep it out set $false $addPDFToVault = $true # To attach the PDF to the main file set $true, otherwise $false $attachPDFToVaultFile = $true # Specify a Vault folder in which the PDF should be stored (e.g. $/Designs/PDF), or leave the setting empty to store the PDF next to the main file $pdfVaultFolder = "" # Specify a network share into which the PDF should be copied (e.g. \\SERVERNAME\Share\Public\PDFs\) $pdfNetworkFolder = "" # To enable faster opening of released Inventor drawings without downloading and opening their model files set $true, otherwise $false $openReleasedDrawingsFast = $true #endregion ``` ## Sample.CreateDXF&STEPfromSheetmetal **Supported files:** _ipt (sheet metal)_
**Configuration file:** - For DXF: [DXF_SheetMetal.ini]() - For STEP: [STEP.ini]() By default, the Job creates a [DXF](/jobprocessor/code_reference/cmdlets/export-document/dxf) file and a [STEP](/jobprocessor/code_reference/cmdlets/export-document/step) file that are added to the Vault as _DesignVisualization_ files.
The DXF and STEP files are stored in the same location and with the same file name as the sheet metal part and attached to it.
Usually the DXF is used for manufacturing (laser cutter, bending machine, etc...),
while the STEP is used as 3D model for suppliers as it can be better used with the K-Factor of the machines. **Settings**
Important settings like the file name for the output format, if and where the file should be added to Vault, if only the DXF or STEP should be created,
whether the file should be published to a network share, and other settings are specified in the first lines of the job so that they can be easily changed: ```powershell #region Settings # To include the Revision of the sheet metal part in the DXF name set $true, otherwise $false $dxfFileNameWithRevision = $false # The character used to separate file name and Revision label in the DXF name such as hyphen (-) or underscore (_) $dxfFileNameRevisionSeparator = "_" # To include the file extension '.ipt' in the DXF name set $true, otherwise $false $dxfFileNameWithExtension = $true # To add the DXF to Vault set $true, to keep it out set $false $addDXFToVault = $true # To attach the DXF to the sheet metal part set $true, otherwise $false $attachDXFToVaultFile = $true # Specify a Vault folder in which the DXF should be stored (e.g. $/Designs/DXF), or leave the setting empty to store the DXF next to the sheet metal part $dxfVaultFolder = "" # Specify a network share into which the DXF should be copied (e.g. \\SERVERNAME\Share\Public\DXFs\) $dxfNetworkFolder = "" # To include the Revision of the sheet metal part in the STEP name set $true, otherwise $false $stepFileNameWithRevision = $false # The character used to separate file name and Revision label in the STEP name such as hyphen (-) or underscore (_) $stepFileNameRevisionSeparator = "_" # To include the file extension '.ipt' in the STEP name set $true, otherwise $false $stepFileNameWithExtension = $true # To add the STEP to Vault set $true, to keep it out set $false $addSTEPToVault = $true # To attach the STEP to the sheet metal part set $true, otherwise $false $attachSTEPToVaultFile = $true # Specify a Vault folder in which the STEP should be stored (e.g. $/Designs/STEP), or leave the setting empty to store the STEP next to the sheet metal part $stepVaultFolder = "" # Specify a network share into which the STEP should be copied (e.g. \\SERVERNAME\Share\Public\STEPs\) $stepNetworkFolder = "" #endregion ``` ## Sample.CreateDXFfromDrawing **Supported files:** _idw, dwg (Inventor)_
**Configuration file:** [DXF_2D.ini]() By default, the Job creates [DXF](/jobprocessor/code_reference/cmdlets/export-document/dxf) and adds it to the Vault as a _DesignVisualization_.
For **multisheet idw or dwg** depending on configuration either a .zip file is created or a .dxf file for each sheet.
The file(s) are stored in the same location and with the same file name as the source file and are attached to it. **Settings**
Important settings like the file name for the output format, if and where the file should be added to Vault,
whether the file should be published to a network share, and other settings are specified in the first lines of the job so that they can be easily changed: ```powershell #region Settings # To include the Revision of the main file in the DXF name set $true, otherwise $false $dxfFileNameWithRevision = $false # The character used to separate file name and Revision label in the DXF name such as hyphen (-) or underscore (_) $dxfFileNameRevisionSeparator = "_" # To include the file extension of the main file in the DXF name set $true, otherwise $false $dxfFileNameWithExtension = $true # To add the DXF to Vault set $true, to keep it out set $false $addDXFToVault = $true # To attach the DXF to the main file set $true, otherwise $false $attachDXFToVaultFile = $true # Specify a Vault folder in which the DXF should be stored (e.g. $/Designs/DXF), or leave the setting empty to store the DXF next to the main file $dxfVaultFolder = "" # Specify a network share into which the DXF should be copied (e.g. \\SERVERNAME\Share\Public\DXFs\) $dxfNetworkFolder = "" # To enable faster opening of released Inventor drawings without downloading and opening their model files set $true, otherwise $false $openReleasedDrawingsFast = $true #endregion ``` ## Sample.CreateSTEPfromModel **Supported files:** _iam, ipt_
**Configuration file:** [STEP.ini]() By default, the Job creates [STEP](/jobprocessor/code_reference/cmdlets/export-document/step) files and adds them to Vault as a _DesignVisualization_.
The STEP files are stored in the same location and with the same file name as the source file and are attached to it. **Settings**
Important settings like the file name for the output format, if and where the file should be added to Vault,
whether the file should be published to a network share, and other settings are specified in the first lines of the job so that they can be easily changed: ```powershell #region Settings # To include the Revision of the main file in the STEP name set $true, otherwise $false $stepFileNameWithRevision = $false # The character used to separate file name and Revision label in the STEP name such as hyphen (-) or underscore (_) $stepFileNameRevisionSeparator = "_" # To include the file extension of the main file in the STEP name set $true, otherwise $false $stepFileNameWithExtension = $true # To add the STEP to Vault set $true, to keep it out set $false $addSTEPToVault = $true # To attach the STEP to the main file set $true, otherwise $false $attachSTEPToVaultFile = $true # Specify a Vault folder in which the STEP should be stored (e.g. $/Designs/STEP), or leave the setting empty to store the STEP next to the main file $stepVaultFolder = "" # Specify a network share into which the STEP should be copied (e.g. \\SERVERNAME\Share\Public\STEPs\) $stepNetworkFolder = "" #endregion ``` ## Sample.CreateDWG **Supported files:** _ipt (incl. sheet metal), iam , idw, dwg (Inventor)_
**Configuration file:** - Sheet metal: [DWG_SheetMetal.ini]() - Drawings: [DWG_2D.ini]() - Models: [DWG_3D.ini]() By default, the Job creates [AutoCAD 2000 DWG](/jobprocessor/code_reference/cmdlets/export-document/dwg) and adds it to the Vault as a _DesignVisualization_.
For **multisheet idw or dwg** depending on configuration either a .zip file is created or a .dwg file for each sheet.
The Drawings files are stored in the same location and with the same file name as the source file and are attached to it. **Settings**
Important settings such as the file name for the output format, whether and where to add the file to Vault, and other settings can be easily changed: ```powershell #region Settings # To include the Revision of the main file in the DWG name set $true, otherwise $false $dwgFileNameWithRevision = $false # The character used to separate file name and Revision label in the DWG name such as hyphen (-) or underscore (_) $dwgFileNameRevisionSeparator = "_" # To include the file extension of the main file in the DWG name set $true, otherwise $false $dwgFileNameWithExtension = $true # Specify a Vault folder in which the DWG should be stored (e.g. $/Designs/DWG), or leave the setting empty to store the DWG next to the main file $dwgVaultFolder = "" # To enable faster opening of released Inventor drawings without downloading and opening their model files set $true, otherwise $false $openReleasedDrawingsFast = $true #endregion ``` ## Sample.CreateIGES **Supported files:** _iam, ipt_
**Configuration file:** [IGES.ini]() By default, the Job creates [IGES](/jobprocessor/code_reference/cmdlets/export-document/iges) files and adds them to Vault as a _DesignVisualization_.
The IGES files are stored in the same location and with the same file name as the source file and are attached to it.
**Settings**
Important settings such as the file name for the output format, whether and where to add the file to Vault, and other settings can be easily changed: ```powershell #region Settings # To include the Revision of the main file in the IGES name set $true, otherwise $false $igesFileNameWithRevision = $false # The character used to separate file name and Revision label in the IGES name such as hyphen (-) or underscore (_) $igesFileNameRevisionSeparator = "_" # To include the file extension of the main file in the IGES name set $true, otherwise $false $igesFileNameWithExtension = $true # Specify a Vault folder in which the IGES should be stored (e.g. $/Designs/IGES), or leave the setting empty to store the IGES next to the main file $igesVaultFolder = "" #endregion ``` ## Sample.CreateJPEG **Supported files:** _iam, ipt, ipn, idw, dwg (Inventor)_ By default, the Job creates [JPEG](/jobprocessor/code_reference/cmdlets/export-document/jpeg) files and adds them to Vault as a _DesignVisualization_.
The JPEG file is stored in the same location and with the same file name as the source file and is attached to it. **Settings**
Important settings such as the file name for the output format, whether and where to add the file to Vault, and other settings can be easily changed: ```powershell #region Settings # To include the Revision of the main file in the JPG name set $true, otherwise $false $jpgFileNameWithRevision = $false # The character used to separate file name and Revision label in the JPG name such as hyphen (-) or underscore (_) $jpgFileNameRevisionSeparator = "_" # To include the file extension of the main file in the JPG name set $true, otherwise $false $jpgFileNameWithExtension = $true # Specify a Vault folder in which the JPG should be stored (e.g. $/Designs/JPG), or leave the setting empty to store the JPG next to the main file $jpgVaultFolder = "" # To enable faster opening of released Inventor drawings without downloading and opening their model files set $true, otherwise $false $openReleasedDrawingsFast = $true #endregion ``` ## Sample.CreateGIF **Supported files:** _iam, ipt, ipn, idw, dwg (Inventor)_ By default, the Job creates [GIF](/jobprocessor/code_reference/cmdlets/export-document/gif) files and adds them to Vault as a _DesignVisualization_.
The GIF file is stored in the same location and with the same file name as the source file and is attached to it. **Settings**
Important settings such as the file name for the output format, whether and where to add the file to Vault, and other settings can be easily changed: ```powershell #region Settings # To include the Revision of the main file in the GIF name set $true, otherwise $false $gifFileNameWithRevision = $false # The character used to separate file name and Revision label in the GIF name such as hyphen (-) or underscore (_) $gifFileNameRevisionSeparator = "_" # To include the file extension of the main file in the GIF name set $true, otherwise $false $gifFileNameWithExtension = $true # Specify a Vault folder in which the GIF should be stored (e.g. $/Designs/GIF), or leave the setting empty to store the GIF next to the main file $gifVaultFolder = "" # To enable faster opening of released Inventor drawings without downloading and opening their model files set $true, otherwise $false $openReleasedDrawingsFast = $true #endregion ``` ## Sample.CreatePNG **Supported files:** _iam, ipt, ipn, idw, dwg (Inventor)_ By default, the Job creates [PNG](/jobprocessor/code_reference/cmdlets/export-document/png) files and adds them to Vault as a _DesignVisualization_.
The PNG file is stored in the same location and with the same file name as the source file and is attached to it. **Settings**
Important settings such as the file name for the output format, whether and where to add the file to Vault, and other settings can be easily changed: ```powershell #region Settings # To include the Revision of the main file in the PNG name set $true, otherwise $false $pngFileNameWithRevision = $false # The character used to separate file name and Revision label in the PNG name such as hyphen (-) or underscore (_) $pngFileNameRevisionSeparator = "_" # To add the PNG to Vault set $true, to keep it out set $false $pngFileNameWithExtension = $true # Specify a Vault folder in which the PNG should be stored (e.g. $/Designs/PNG), or leave the setting empty to store the PNG next to the main file $pngVaultFolder = "" # To enable faster opening of released Inventor drawings without downloading and opening their model files set $true, otherwise $false $openReleasedDrawingsFast = $true #endregion ``` ## Sample.CreateTIFF **Supported files:** _iam, ipt, ipn, idw, dwg (Inventor)_ By default, the Job creates [TIFF](/jobprocessor/code_reference/cmdlets/export-document/tiff) files and adds them to Vault as a _DesignVisualization_.
The TIFF file is stored in the same location and with the same file name as the source file and is attached to it. **Settings**
Important settings such as the file name for the output format, whether and where to add the file to Vault, and other settings can be easily changed: ```powershell #region Settings # To include the Revision of the main file in the TIFF name set $true, otherwise $false $tiffFileNameWithRevision = $false # The character used to separate file name and Revision label in the TIFF name such as hyphen (-) or underscore (_) $tiffFileNameRevisionSeparator = "_" # To include the file extension of the main file in the TIFF name set $true, otherwise $false $tiffFileNameWithExtension = $true # To add the TIFF to Vault set $true, to keep it out set $false $tiffVaultFolder # To enable faster opening of released Inventor drawings without downloading and opening their model files set $true, otherwise $false $openReleasedDrawingsFast = $true #endregion ``` ## Sample.CreateBMP **Supported files:** _iam, ipt, idw, dwg (Inventor)_ By default, the Job creates [BMP](/jobprocessor/code_reference/cmdlets/export-document/bmp) files and adds them to Vault as a _DesignVisualization_.
The BMP file is stored in the same location and with the same file name as the source file and is attached to it. **Settings**
Important settings such as the file name for the output format, whether and where to add the file to Vault, and other settings can be easily changed: ```powershell #region Settings # To include the Revision of the main file in the BMP name set $true, otherwise $false $bmpFileNameWithRevision = $false # The character used to separate file name and Revision label in the BPM name such as hyphen (-) or underscore (_) $bmpFileNameRevisionSeparator = "_" # To include the file extension of the main file in the BMP name set $true, otherwise $false $bmpFileNameWithExtension = $true # Specify a Vault folder in which the BMP should be stored (e.g. $/Designs/BMP), or leave the setting empty to store the BMP next to the main file $bmpVaultFolder = "" # To enable faster opening of released Inventor drawings without downloading and opening their model files set $true, otherwise $false $openReleasedDrawingsFast = $true #endregion ```