Skip to Content
FASTSUITE E2API ReferencePython APIAPI DomainsCenPy UtilityReport UtilityReport Utility

Report Utility

Class “ReportUtility” for PDF Reports

Quick Facts

PropertyValue
ClassReportUtility
Modulecenpylib.ReportUtility
Packagecenpylib
ReleaseR2025.2.4
Methods52
Inherits fromFPDF

Inheritance

Quick Start

# Boilerplate Example obj = ReportUtility()

Lifecycle

MethodReturnsSummary
__init__Initialization
createAutoExecutePDFReportPass Command from AutoExecute, e.g.
createAuxCommandsPDFReportPass Command from Program Dashboard’s “Auxiliary Commands”
createPDFReportMain Method to create the PDF Report
createDialogueUICreate the window elements and functions.

Query Methods

MethodReturnsSummary
getCurrencyCodeReturns the Ascii Code of the desired Currency
getRGBColoursGet the RGB Colours for the Table Header Row.
getSpeedEventCalculates linear tool path length
getTechnoEventCalculates linear tool path length
getAccuracyEventCalculates linear tool path length
getMotionTypeStringGet the Motion Type of the TPE (PTP, LIN, CIR)
getCollisionReachabilityStringGet the Colloision and/or Reachability of the TPE,
getVariousFieldTemplate, …might be inheritate for own desired Information in PlugIn Script
getVectorGets vector through two points
getVectorLengthCalculates vector length
getVectorScalarCalculates vector scalar
getReportLocationCalls the Folder select dialog
getsetValuesread or write

Mutation Methods

MethodReturnsSummary
setCostsSets the Costs per Meter
setCurrencySets the desired Currency
setLanguageSets the desired Language
setHeaderLogoSets the Logo shown on Reports top/right
setFooterLogoSets the Logo shown on Reports bottom/left

Execution & Actions

MethodReturnsSummary
buildReportNameBuild Report File Name, to be inheritate if customizing desired.
calculateCostsCalculates Costs per TPE dependent to TechnoState, MotionType, etc.

Utilities

MethodReturnsSummary
defineFontDefines the desired Font Type and size to Globals.
defineColumnTitleWidthDefines the Order of the desired Table Columns.
defineColName
defineColMotionType
defineColLength
defineColSpeed
defineColTime
defineColCosts
defineColCollReach
defineColEvents
defineColVarious
headerDefines the common Header of the PDF Report, called from FPDF Base Class
cenheaderDefines the customized Header of the PDF Report, underneath common Header
cenfooterDefines the customized Footer of the PDF Report, underneath common Header
footerDefines the common Footer of the PDF Report, called from FPDF Base Class
bodyDefines the customized Body of the PDF Report.
collectelementsCollect all the necessary Information from the Program and writes it to a List
columnOrderSorts the complete Range of Columns to the desired Order of the single Columns
header_tableWrite a Table with common Program Information
intermediateBlockBeforeAnything between CenHeader and TPE List (Template for Inheritance)
intermediateBlockAfterAnything between TPE List and CenFooter (Template for Inheritance)
colored_tableWrite the Program TPEs Information to the Table
technoEventsExistCalculates linear tool path length
calcLinLengthCalculates linear tool path length
calcCircLengthCalculates circular tool path length
saveReportAsCalls the usual file save dialog
extendedSaveUIextended File Save dialogue with Costs Settings

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?