Python scripting PDF reports - Settings

Settings as method calls


Several settings can be done as method calls prior to the creation command.



Report language


setLanguage(language)


All relevant items (parameters, names, dimensions, etc.) are translated into the common E2 languages : English, French, Chinese, Japanese and German. The E2 language setting unfortunately cannot be transferred to the Python script.

To get the desired report language, the setLanguage(language) method call has to be used.The parameter English "EN",  German "DE",  French "FR",  Chinese "CN" or Japanese "JP" has to be passed. When nothing has been defined, the default language will be English..


ArcWeldReport_LanguageSetting



Download folder


setDownloadFolder(path)


For storing the Arc welding report in any other folder than the one from the download definition, the setDownloadFolder(path) method can be called.

The absolute path of the preferred folder has to be passed.


ArcWeldReport_DownloadFolderSetting


Information  The backslashes between the folders must be doubled \\.



Report units


setReportUnit(unit)


For output the report in imperial units the function setReportUnit (unit) method can be called.

Available items for setting the imperial unit system are: "inch" or "INCH" or "imperial".

Default is the metric unit system. Retrieving the unit from E2 directly is not possible.


ArcWeldReport_UnitSetting



Previous
Page précédente
Chapter
Page principale du chapitre
Next
Page suivante