Scripted operation


Script operation can have OnCreateMethod , ChangePropertyMethod and MakeWorkPathMethod methods defined.

  • OnCreateMethod is a ENCY PL subprogram that is executed when operation is created.

  • ChangePropertyMethod is executed when operation property is changed.

  • MakeWorkPathMethod is executed when operation toolpath is calculated.

To create script operation use Create script operation .

images/download/attachments/150669616/image2024-7-26_17-4-44.png

First select parent operation. Any operation can be selected as parent. Parent operation defines basic properties of new script operation.

images/download/attachments/150669616/image2024-7-26_17-5-5.png

Input new operation parameters:

  • Caption or title - will be displayed in the technology tree. Operation caption is value of Comment node in operation xml-descriptor.

  • Name - this value will be new operations name in dialogs and menus for adding new operation to project. Name node in operation xml-descriptor.

  • Type - new operation type. Id attribute of operation xml-descriptor.

Use Operation properties panel to select what inherited properties will be visible in inspector.

When all parameters are set click Create template button to create xml-unit containing xml-descriptor of new operation and template ENCY PL project.

Also you can manually create operation descriptor xml-file and include it into ENCY xml-configuration.


See also:

Application Programming Interface

Brief Scripts in ENCY

Scripts IDE