Python scripting PDF reports - Settings

Parameters in the command line


Base


The command has two parameters :

The operator CENPyOlpProgramModifyOperator

A path-string, at least as an empty string.

 

PDF_BaseCommand

 

A third parameter can be the set and order of the desired columns of the report.



Operator


The operator CENPyOlpProgramModifyOperator is already in the call of ModifyActiveProgram and will be just passed to the report command, to get all the necessary accesses to functions, methods and calls of the operator.

 

PDF_BaseCommand



Path string


The report by default is using pictures and NLS files located in the cenpylib folder, coming with the E2 installation. If it is required to use customer related pictures, logos or translation, the path to the desired files can be set here.


PDF_PlugInPath

Information   The backslashes between the folders must be doubled \\ and a double backslash after the last folder name …ds\\Logos\\


Report columns


By default, the report provides nine columns of information for the toolpath elements (TPE):

Name; the name of the current TPE

MotionType; the motion type of the current TPE (PTP, LIN, CIR

Length; the calculated length in millimeter between last and current T

Speed; the current set speed to perform the move

Time; the calculated time of length and speed of the current move

Costs; the calculated costs of length and costs per meter

CollReach; if the TPE has a collision or is unreachable

Events; the events performed on the current T

Various; by default an empty column, but can be defined to add some other Information


Six of them by default are listed in the report:

Name

MotionType

Length

Speed

Time

Costs


If it´s required to decrease or increase the number of columns, or to change the order of the columns, a Python-list with the desired items can be set and passed to the command.


Information

Beware to use the exact same wording of the column names!


PDF_ColumnsSettings


Each column has a pre-defined width which should generally fits.

By default, the report is created in a portrait format. But If the sum of the displayed column width exceeds the sheet width, the format is changed to landscape automatically.


PDF_PortraitLandscape



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