Enterprise Knowledge Language Editor

The EKL Editor runs on both Windows and Linux and lets you create scripts to automate the design process. It uses Intelligent Code Completion, which makes context-aware suggestions for types, global functions, attributes, methods, declared variables, and libraries. It also features tooltips for method return types and arguments.

This page discusses:

Editor Basics

The sections below explain how to access the EKL editor as well as the details of how it uses Intelligent Code Completion to perform a wide variety of functionalities.

Accessing the Editor

There are many different ways to access the editor. They are detailed in the table below.

Name of App Command Description

Engineering Rules Capture

Quality Rules Capture

Quality Rules Reuse

Rule , Insert New Rule , Expert Rule , Create Business Rule A rule is a set of instructions, generally based on conditional statements, where the relationship between parameters is controlled.

Engineering Rules Capture

Quality Rules Capture

Quality Rules Reuse

Check , Insert New Check , Expert Check A check is a multiline statement used to ensure that specific conditions are fulfilled.

Quality Rules Capture

Insert New Filter , Insert New Precondition

Filters can be applied to the input variables of an instantiated check. They let you filter out checks that do not meet some criteria.

Preconditions can be applied to a processing group so that it is excluded from the process in Quality Rules Configuration when the precondition is not met.

Engineering Rules Capture

Reaction Reactions are features that let you create an EKL or Visual Basic script by specifying how to change certain feature attributes when an event occurs.

Engineering Rules Capture

Know-how Apps Components

Knowledge Pattern , Knowledge Language

A knowledge pattern is a feature that lets you generate geometry and instantiate templates into 3D Part documents. It also lets you manage the instantiated objects in an associative manner and allows the automatic generation of repetitive structures with differences between each instance of the structure.

Knowledge language is designed to write Engineering Rules Capture scripts that are executed at run time in the user app.

Engineering Rules Capture

Know-how Apps User Experience

Action The action command lets you interactively perform what the EKL enables you to do. Actions are not automatically performed; they behave in an interactive manner.

Engineering Rules Capture

Set of Equations You can create a set of equations and solve them by clicking the relation set in the tree and clicking Set of Equations .
Know-how Apps Logic Create Know-how Library , Create KML Rule

A library is a feature containing text describing its full content (concepts, rules, and includes). Libraries are stored in a Know-how Apps component.

KML rules evaluate the attributes or children of a concept.

Multiple Apps through the action bar or the tree by right-clicking the parameter Edit Parameter > Edit Formula Formula Formulas are features used to define or constrain a parameter. A formula is a relation: the left side of the relation is the parameter to be constrained and the right side is a statement.

Using Intelligent Code Completion

The EKL editor makes the following suggestions when you begin typing a script:

  • List of types during the declaration of a variable
  • Most Recently Used (MRU) types filtering while entering a list of types
  • List of methods and attributes when using a dot or an arrow operator on a variable
  • List of know-how libraries for the include keyword (if declared in a resource table)
  • List of know-how functions for included libraries
  • List of arguments for supported functions/methods
  • Special type of argument for specific functions/methods
  • Resource table ID for supported functions/methods

The following elements are supported:

  • Expression Editor Preferences
  • All EKL editor dialog operations such as Find and Replace, Snippet, Wizard, and others.

The following behaviors are automatic:

  • Indentation
  • Token highlighting

About the EKL Action Editor Interface

The EKL editor helps you to write EKL scripts with various dialog boxes. Each dialog box is specific for each command and provides different features based on the relative command. Most commands support basic features, however, this section focuses on the Action editor as the reference for the global behavior.

Action Editor User Interface



Action Panel Description
Preferences lets you define various preferences for knowledge editors.
The Line section indicates the current line in the EKL editor. You can also use it to move to a specific line by entering the required line number.
Various editor commands. See Customizing the Editor.
The Argument List lets you define the name and type of arguments. These arguments can be used inside the scripts similar to other variables in the script. You can get or set attributes for the arguments and also use methods corresponding to the type of argument.

Intelligent Code Completion is available for the arguments.

In some cases, for example Rule, Knowledge Language, and others, you cannot add any argument. In other cases, such as Business Rules, some arguments are automatically defined as This Object or Parameters.

This is the actual editor where you write and define your script.
This is the Wizard section, which helps you to write an EKL script. It provides an editing dictionary and exposes functions and parameters that can be used to define a formula. Double-click the dictionary object and it is added to the EKL script at the cursor's position. If you select a function, the signature of the function is added without arguments.
The Parameter Editor displays the selected parameter in the parameters list. You can also valuate a parameter using the spinner. The variables created inside the script are also displayed here. (In this example, there is no selected parameter.)

About the Editor Commands

Most of the commands used to access the EKL editor are available from the Quality Rules Capture, Quality Rules Reuse, Know-how Apps User Experience, Know-how Apps Components, and Data Setup apps. You can also use the Create Know-how Function command in the Know-how Libraries section.

Know-how Reusable Functions

Reusable functions use generic EKL code that you can add to a resource table and use inside of an Action.

Rule or Expert Rule

An expert rule is a set of instructions that lets you start an action for any object having a type defined in a type list. The action generally consists of a set of instructions that modify the document, but can also be a message that does not modify the document.

Check or Expert Check

An expert check is a relation that only verifies that a condition is true for the objects of one or more given types. It does not modify the document that it is applied to but produces results.

Filter and Precondition Commands

You can apply a filter to the input variables of an instantiated check. It filters checks that do not meet certain criteria.

You can apply a precondition to a processing group to exclude it from the process in Quality Rules Configuration when the precondition is not met.

Create Business Rule

You can create a business rule to modify the behavior of the system. A business rule is used to implement a Business Logic behavior. Business Rules can also be created from the Data Setup app.

KML Editor

The KML editor is accessed with the Know-how Apps Logic app, which is designed to describe CAD data through concepts containing attributes and rules. Its goal is to allow the generation of models based on a general definition that describes a variability through rules and formulas. It provides an extension of the Enterprise EKL Action. The Know-how Apps Logic app is composed of a script editor and a set of tools that let you use the edited script to create Data.

Knowledge Language

You can create a knowledge language operation in a custom command or main sequence. A knowledge language operation is similar to an action. It is executed automatically at runtime when the custom command is run from a button or from a process.