Skip to Content

Report Utility — Query Methods

Back to Report Utility.

getCurrencyCode

def getCurrencyCode()

Returns the Ascii Code of the desired Currency Euro “E”, Dollar “D”, Pound “P”, Yen/Yuan “Y”

getRGBColours

def getRGBColours(item)

Get the RGB Colours for the Table Header Row. Can be set in the Report NLS File by “headerrowcolor=176.195.52” (Cenit green)

Parameters:

NameTypeDescription
itemthe desired Item from NLS File

getSpeedEvent

def getSpeedEvent(eventHandler, opTpe, beforeAfter=-1)

Calculates linear tool path length

Parameters:

NameTypeDescription
eventHandlerThe event handler
opTpethe current tool path element
beforeAfterget only desired Events (before/after/all) (default: -1)

getTechnoEvent

def getTechnoEvent(eventHandler, opTpe, beforeAfter=-1)

Calculates linear tool path length

Parameters:

NameTypeDescription
eventHandlerThe event handler
opTpethe current tool path element
beforeAfterget only desired Events (before/after/all) (default: -1)

getAccuracyEvent

def getAccuracyEvent(eventHandler, opTpe)

Calculates linear tool path length

Parameters:

NameTypeDescription
eventHandlerThe event handler
opTpethe current tool path element

getMotionTypeString

def getMotionTypeString(operator, opTpe)

Get the Motion Type of the TPE (PTP, LIN, CIR) …might be inheritate for own desired Information in PlugIn Script

Parameters:

NameTypeDescription
operatorthe CENPyOlpProgramModifyOperator
opTpethe current tool path element

getCollisionReachabilityString

def getCollisionReachabilityString(operator, opTpe)

Get the Colloision and/or Reachability of the TPE, …might be inheritate for own desired Information in PlugIn Script

Parameters:

NameTypeDescription
operatorthe CENPyOlpProgramModifyOperator
opTpethe current tool path element

getVariousField

def getVariousField(operator, opTpe)

Template, …might be inheritate for own desired Information in PlugIn Script

Parameters:

NameTypeDescription
operatorthe CENPyOlpProgramModifyOperator
opTpethe current tool path element

getVector

def getVector(point1, point2)

Gets vector through two points

Parameters:

NameTypeDescription
point1First point
point2Second point

getVectorLength

def getVectorLength(vector)

Calculates vector length

Parameters:

NameTypeDescription
vectorThe vector to calculate the length for

getVectorScalar

def getVectorScalar(vector1, vector2)

Calculates vector scalar

Parameters:

NameTypeDescription
vector1The first vector
vector2The second vector

getReportLocation

def getReportLocation(apppath: str)

Calls the Folder select dialog

Parameters:

NameTypeDescription
apppathstrthe Application Path for Pictures and Icons

getsetValues

def getsetValues(write, inList, myFileName='E2PDFReport.ini')

read or write

Parameters:

NameTypeDescription
writebool for writing = true, reading=false
inListList of Values in Case of writing = true
myFileNameoptional, default is “E2PDFReport.ini” (default: 'E2PDFReport.ini')
Was this page helpful?