How to use InventorServer in a powerJobs Processor job

In Vault 2018.2 Autodesk introduced the InventorServer. InventorServer is a headless version of Inventor that can be used to process jobs.

Using InventorServer in powerJobs Processor jobs

To be able to use InventorServer you need at least Vault 2018.2 and powerJobs v19. To use InventorServer in powerJobs Processor open the document and pass the -Application InventorServer argument. 

As most jobs will handle Inventor and AutoCAD documents it is necessary to handle that as well. To do this the file can be checked for its provider.

Example change for Sample.CreatePDF

In the sample pdf job there should be a call to Open-Document 

$openResult = Open-Document -LocalFile $file.LocalPath -Options @{ FastOpen = $fastOpen }

It needs to be changed to look like this

$applicationKey = if($file._Provider -like 'Inventor*') { 'InventorServer' } else { 'DWG TrueView'}
$openResult = Open-Document -LocalFile $file.LocalPath -Options @{ FastOpen = $fastOpen } -Application $applicationKey

See Also