Sheetmetal Dxf export fails with "0x80070057 (E_INVALIDARG) The parameter is incorrect"
Issue
When an Inventor sheetmetal file is converted to DXF with Sample.CreateDXF&STEPfromSheetmetal or directly with Export-Document it fails with
The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData) at Inventor.DataIO.WriteDataToFile(String Format, String FileName) at coolOrange.GenerateEngine.Inventor.Exports.DataIoExport.Execute() at coolOrange.PowerJobs.Cmdlets.CmdLets.Cad.ExportDocumentContext.Execute() at coolOrange.PowerJobs.Cmdlets.CmdLets.Cad.CadCmdletBase.Run(?□ result)
Cause
This happens when the config file contains different decimal separator than is configured in the system. The default config contains a decimal dot.
Solution
* Open the file "C:\ProgramData\coolOrange\powerJobs\Modules\Export\DXF_SheetMetal.ini"
* If the decimal separator in the line SplineTolerance= differs to your operating system decimal separator change it to whatever is defined in your operating system