Python scripting - Operators

AuxiliaryCommands

 

E2 Kernel class

Operator class

OlpProgramModifyOperator

CENPyOlpProgramModifyOperator

OlpProgramProcessGeometryOperator

CENPyOlpProgramProcessGeometryOperator

OlpAttributeTableOperator

CENPyOlpAttributeTableOperator

 

 

AutoExecute auxiliary command entries

 

Each of these scripts will executed at a predefined fixed position only when the script is found. Note that only one script is supported at a time and its name must match the rule.

 

AutoExecute scripts should be placed relative to the active technology in the internal or external E2 Plugin folder ..\Standard\AuxiliaryCommands\AutoExecute\:

 

AuxCommandsAutoExecuteFolderLocation

 

Here is a list of available AutoExecute auxiliary command entries:

 

Predefined script names

Operator called

When called

PostProgramProcessGeometries

CENPyOlpProgramModifyOperator

After the process geometry programming is complete.

PostProgramDownload

CENPyOlpProgramModifyOperator

After the program is finished downloading in OLP workbench.

PostProgramDownloadOnsite

CENPyOlpProgramModifyOperator

After the program is finished downloading in Onsite workbench.

PostProgramUpload

CENPyOlpProgramModifyOperator

After the program is finished uploading in OLP workbench.

PostProgramUploadOnsite

CENPyOlpProgramModifyOperator

After the program is finished uploading in Onsite workbench.

PrevProgramDownload

CENPyOlpProgramModifyOperator

Before starting to download the program in the OLP workbench.

PrevProgramDownloadOnsite

CENPyOlpProgramModifyOperator

Before starting to download the program in the Onsite workbench.

PrevProgramUpload

CENPyOlpProgramModifyOperator

Before starting to upload the program in the OLP workbench.

PrevProgramUploadOnsite

CENPyOlpProgramModifyOperator

Before starting to upload the program in the Onsite workbench.

 

 

OlpProgram auxiliary command entries

 

ModifyActiveProgram scripts should be placed relative to the active technology in the internal or external E2 Plugin folder ..\Standard\AuxiliaryCommands\OlpProgram\:

 

AuxCommandsOlpProgramFolderLocation

 

Thus, all scripts will be available for execution in the Programs dashboard:

 

AuxCommandsOlpProgramScripts

 

 

ProcessGeometry auxiliary command entries

 

ProgramProcessGeometries scripts should be placed relative to the active technology in the internal or external E2 Plugin folder ..\Standard\AuxiliaryCommands\ProcessGeometry\:

 

AuxCommandsProgramPGFolderLocation

 

Thus, all scripts will be available for selection in the Programming defaults dashboard:

 

AuxCommandsProgramPGScripts

 

The selected script will be than executed during the Process Geometry programming command:

 

AuxCommandsProgramPGCommand

 

Moreover, the return value of the ProgramProcessGeometries callback will define if the internal ProgramProcessGeometries method should be executed or not. Thus, if the return value is False – the script will be executed first followed by the internal PG programming method. So both, Python callback and internal method will be executed. Otherwise, if the return value is True – the internal method will be skipped. The default return value is False.

 

 


Previous
Previous page
Chapter
Chapter page
Next
Next page