powerjobs_processor:jobprocessor:jobs:sample_jobs

Sample Jobs

All jobs that come with the product are staring 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.

Following sample jobs are delivered with the product:

Job TypeSupported ExtensionsConfiguration FileOutput file
Sample.CreatePDFidw, dwg (Inventor and AutoCAD)PDF_2D.ini for Inventor drawings
PDF.dwg for AutoCAD
PDF Visualization Attachments
Sample.CreateDXFipt (sheet metal), idw, dwg (Inventor)DXF_SheetMetal.ini for sheet metal
DXF_2D.dwg for Inventor drawings
DXF DesignVisualization Attachments from Inventor
For multisheet idw or dwg depending on configuration a .zip file is created or a .dxf file for each sheet. This is handled in the job to automatically check in the zip or multiple dxffiles.
Sample.CreateDWGipt (incl. sheet metal), iam , idw, dwg (Inventor)DWG_SheetMetal.ini for sheet metal
DWG_2D.ini for drawings
DWG_3D.ini for models
AutoCAD 2000 DWG files.
For multisheet idw or dwg depending on configuration a .zip file is created or a .dwg file for each sheet. This is handled in the job to automatically check in the zip or multiple dwg files.
Sample.CreateSTEPiam, iptSTEP.iniSTEP files
Sample.CreateIGESiam, iptIGES.iniIGES files
Sample.CreateJPEGiam, ipt, ipn, idw, dwg (Inventor)NoneJPEG files
Sample.CreateGIFiam, ipt, ipn, idw, dwg (Inventor)NoneGIF files
Sample.CreateBMPiam, ipt, idw, dwg (Inventor)NoneBMP files
Sample.CreateTIFFiam, ipt, ipn, idw, dwg (Inventor)NoneTIFF files
Sample.CreatePNGiam, ipt, ipn, idw, dwg (Inventor)NonePNG files

The Sample.CreatePDF job can be execute using the Vault Client Extension when a file is selected and the 'Create PDF' button in the powerJobs menu is clicked. This will enqueue the Sample.CreatePDF job for the selected file.
To queue other 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.

By default the sample jobs will create files with the same filename as the cad file and in the same Vault directory. Additionally the generated file will be attached to the cad file.

All the exporting jobs that support exporting from Inventor Drawings support the FastOpen feature.
This means only the drawing without its dependencies is downloaded and opened.

General settings

Some of the most important settings like filenames and the Vault path are always set in the first few lines of every sample job so they can be changed easily. For example the Sample.CreatePDF job:

$hidePDF = $false    #change this setting to $true or $false for hiding/showing the PDF
$workingDirectory = "C:\Temp\$($file._Name)"    #define where your dwg file will be downloaded and where the PDF will be generated
$localPDFfileLocation = "$workingDirectory\$($file._Name).pdf"    #define the file name and path for the generated PDF
$vaultPDFfileLocation = $file._EntityPath +"/"+ (Split-Path -Leaf $localPDFfileLocation)    #define the file name and to which directory the PDF will be uploaded in Vault
$fastOpen = $file._Extension -eq "idw" -or $file._Extension -eq "dwg" -and $file._ReleasedRevision    #Use fastOpen for realeased idw and dwg files