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:
| Name | Type | Description |
|---|---|---|
item | — | the desired Item from NLS File |
getSpeedEvent
def getSpeedEvent(eventHandler, opTpe, beforeAfter=-1)Calculates linear tool path length
Parameters:
| Name | Type | Description |
|---|---|---|
eventHandler | — | The event handler |
opTpe | — | the current tool path element |
beforeAfter | — | get only desired Events (before/after/all) (default: -1) |
getTechnoEvent
def getTechnoEvent(eventHandler, opTpe, beforeAfter=-1)Calculates linear tool path length
Parameters:
| Name | Type | Description |
|---|---|---|
eventHandler | — | The event handler |
opTpe | — | the current tool path element |
beforeAfter | — | get only desired Events (before/after/all) (default: -1) |
getAccuracyEvent
def getAccuracyEvent(eventHandler, opTpe)Calculates linear tool path length
Parameters:
| Name | Type | Description |
|---|---|---|
eventHandler | — | The event handler |
opTpe | — | the 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:
| Name | Type | Description |
|---|---|---|
operator | — | the CENPyOlpProgramModifyOperator |
opTpe | — | the 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:
| Name | Type | Description |
|---|---|---|
operator | — | the CENPyOlpProgramModifyOperator |
opTpe | — | the current tool path element |
getVariousField
def getVariousField(operator, opTpe)Template, …might be inheritate for own desired Information in PlugIn Script
Parameters:
| Name | Type | Description |
|---|---|---|
operator | — | the CENPyOlpProgramModifyOperator |
opTpe | — | the current tool path element |
getVector
def getVector(point1, point2)Gets vector through two points
Parameters:
| Name | Type | Description |
|---|---|---|
point1 | — | First point |
point2 | — | Second point |
getVectorLength
def getVectorLength(vector)Calculates vector length
Parameters:
| Name | Type | Description |
|---|---|---|
vector | — | The vector to calculate the length for |
getVectorScalar
def getVectorScalar(vector1, vector2)Calculates vector scalar
Parameters:
| Name | Type | Description |
|---|---|---|
vector1 | — | The first vector |
vector2 | — | The second vector |
getReportLocation
def getReportLocation(apppath: str)Calls the Folder select dialog
Parameters:
| Name | Type | Description |
|---|---|---|
apppath | str | the Application Path for Pictures and Icons |
getsetValues
def getsetValues(write, inList, myFileName='E2PDFReport.ini')read or write
Parameters:
| Name | Type | Description |
|---|---|---|
write | — | bool for writing = true, reading=false |
inList | — | List of Values in Case of writing = true |
myFileName | — | optional, default is “E2PDFReport.ini” (default: 'E2PDFReport.ini') |