Skip to Content

Report Utility — Utilities

Back to Report Utility.

defineFont

def defineFont()

Defines the desired Font Type and size to Globals. Note : CN & JP are only supported by one unique Font, Size can be adjusted

defineColumnTitleWidth

def defineColumnTitleWidth(columns)

Defines the Order of the desired Table Columns. Note: internal Column Name and its Place in the Order must be fix

Parameters:

NameTypeDescription
columnsthe desired List of Columns in desired Order

defineColName

def defineColName()

defineColMotionType

def defineColMotionType()

defineColLength

def defineColLength()

defineColSpeed

def defineColSpeed()

defineColTime

def defineColTime()

defineColCosts

def defineColCosts()

defineColCollReach

def defineColCollReach()

defineColEvents

def defineColEvents()

defineColVarious

def defineColVarious()
def header()

Defines the common Header of the PDF Report, called from FPDF Base Class

cenheader

def cenheader(Operator, path, portrLands)

Defines the customized Header of the PDF Report, underneath common Header

Parameters:

NameTypeDescription
Operatorthe CENPyOlpProgramModifyOperator
paththe Location of the Caller Script. Needed to find the Images
portrLandsif Report is created in Portrait or Landscape Mode

cenfooter

def cenfooter(path, portrLands)

Defines the customized Footer of the PDF Report, underneath common Header

Parameters:

NameTypeDescription
paththe Location of the Caller Script. Needed to find the Images
portrLandsif Report is created in Portrait or Landscape Mode
def footer()

Defines the common Footer of the PDF Report, called from FPDF Base Class

body

def body(Operator, headLine, colWidths, order)

Defines the customized Body of the PDF Report.

Parameters:

NameTypeDescription
Operatorthe CENPyOlpProgramModifyOperator
headLinethe List of the Columns Header Names
colWidthsthe List of the Columns Width
orderthe List of the ordered Column Numbers

collectelements

def collectelements(Operator, order, costPerMeter)

Collect all the necessary Information from the Program and writes it to a List

Parameters:

NameTypeDescription
Operatorthe CENPyOlpProgramModifyOperator
orderthe List of the ordered Column Numbers
costPerMeterthe Value of the Costs per Meter

columnOrder

def columnOrder(order, unsorted)

Sorts the complete Range of Columns to the desired Order of the single Columns

Parameters:

NameTypeDescription
orderthe numeric List of the desired Order
unsortedthe complete Range of Information per TPE

header_table

def header_table(Operator)

Write a Table with common Program Information

Parameters:

NameTypeDescription
Operatorthe CENPyOlpProgramModifyOperator

intermediateBlockBefore

def intermediateBlockBefore(Operator, paramList)

Anything between CenHeader and TPE List (Template for Inheritance)

Parameters:

NameTypeDescription
Operatorthe CENPyOlpProgramModifyOperator
paramListthe List of used Parameters

intermediateBlockAfter

def intermediateBlockAfter(Operator, paramList)

Anything between TPE List and CenFooter (Template for Inheritance)

Parameters:

NameTypeDescription
Operatorthe CENPyOlpProgramModifyOperator
paramListthe List of used Parameters

colored_table

def colored_table(headings, rows, colWidths)

Write the Program TPEs Information to the Table

Parameters:

NameTypeDescription
headingsthe List of the Table Header
rowsthe List of the TPE Information
colWidthsthe List of the Column Width

technoEventsExist

def technoEventsExist(eventHandler, opTpes)

Calculates linear tool path length

Parameters:

NameTypeDescription
eventHandlerThe event handler
opTpesarray of the Ops TPEs

calcLinLength

def calcLinLength(teachHandler, lastTpE, opTpe)

Calculates linear tool path length

Parameters:

NameTypeDescription
teachHandlerthe teach handler
lastTpEthe last tool path element
opTpethe current tool path element

calcCircLength

def calcCircLength(teachHandler, lastTpE, opTpe)

Calculates circular tool path length

Parameters:

NameTypeDescription
teachHandlerthe teach handler
lastTpEthe last tool path element
opTpethe current tool path element

saveReportAs

def saveReportAs(defaultFileName: str, apppath: str)

Calls the usual file save dialog

Parameters:

NameTypeDescription
defaultFileNamestrdefault file name
apppathstrthe Application Path for Pictures and Icons

extendedSaveUI

def extendedSaveUI(Operator, defaultFileName, apppath)

extended File Save dialogue with Costs Settings

Parameters:

NameTypeDescription
Operatorthe CENPyOlpProgramModifyOperator
defaultFileNamethe default Filename of the PDF Report
apppaththe Location of the Caller Script. Needed to find the Images
Was this page helpful?