Tag: EKL

Circle Curve Divide

In this post we make a variation of Points along curve by max spacing, to generate division points and axes along a circle curve in three ways: by angle, instances and angle-instances. This spacing can be particularly useful as more flexible polar assembly pattern. The circular division is displayed using an action and a reaction, […]

Building Trees With Custom Syntax Using EKL

Automation can make things quick and easy. Inspired by the idea of providing Syntactic sugar to execute tasks quickly, and more specifically Markdown-Mermaid, here is an example of generating assemblies using EKL with simple syntax. The Syntax I’ll define syntax to builds trees by describing parents and children relationships as instructions. Since tree nodes can […]

Custom EKL Libraries

Organizations can create and reuse custom EKL functions as Knowledge Libraries. Creating such libraries requires a KHC license to use the Quality Rules Capture app. However, consuming them does not require KHC. It does however require KDI in order to be able to write EKL code. A custom EKL Function will behave as a regular […]

Google Sheets To CATIA Via EKL

REST, Representation State Transfer, is a pattern for making APIs (Application Programming Interfaces) that can serve clients (callers of that API). They’re used for web-services. REST’s pattern includes methods names and parameters. You send requests and receive responses. REST APIs typically include six methods: Delete, Get, Link, Patch, Post, and Put. These API Calls are […]

CopyPaste With EKL

I recently received a question on how to program copy-paste in EKL. While EKL does not support clipboard operations, it offers two options to deliver what is required. Let’s take a look. Use EKL To Recreate Datum Here, we rely on creating datum objects using the new method, then setting the newly created objects to […]

xGenerative Design (And A Fibonacci Series Example)

Parametric modeling, an approach to build geometry, permits data manipulation via exposing controls (operands and parameters) to end users. CATIA allows manipulating these controls via User-Interface (UI) tools or programmatically via EKL in Knowledge-ware objects. Users with basic computer science background will immediately map programming concepts onto CATIA: tools are like constructors in object-oriented-programming; features […]

Abbreviating Code With List Methods

EKL provides the List data structure to hold collections of elements that can be of different types. A common programming construct used for iterating over list elements is the for loop. However, writing loops can cause the code to be more verbose than necessary. Thankfully, EKL Lists support a number of methods that allow for […]