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 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 feature.
This means only the drawing without dependencies gets downloaded and opened.

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:

By default, the Job creates a 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:

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

By default, the Job creates a DXF file and a 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:

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

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

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

By default, the Job creates AutoCAD 2000 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:

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

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

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

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

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

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

#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