Issue

  • An inventor Drawing file (.dwg, .idw) is converted into a DXF file or DWG file with powerJobs using the InventorServer for the export but fails, and logfile contains following errors:
    coolOrange.PowerJobs.JobHandler.Powershell.PipelineExtension - Failed to export document C:\Temp\Case Back.idw\Case Back.idw to C:\Temp\Case Back.idw\Case Back.idw.dxf! Reason: Interface not registered
    OR
  • An inventor file is converted with powerJobs using the InventorServer into one of the following formats: BMP, GIF, JPEG, PNG, TIFF, and logfile contains following errors:
    coolOrange.PowerJobs.Cmdlets.CmdLets.Cad.CadCmdletBase - ExportDocumentContext failed with exception: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

Cause

  • The InventorServer application does not support converting files to DXF, DWG, BMP, GIF, JPEG, PNG, TIFF.

Solution

  • On the machine on which powerJobs is installed navigate to "C:\ProgramData\coolOrange\powerJobs\Jobs"
  • Open your job's script file
  • Search for Open-Document :
    Open-Document -LocalFile $file.LocalPath ...
  • change it to use Inventor as application:
    Open-Document -LocalFile $file.LocalPath -Application "Inventor"