# Author: Maher Elkhaldi

## Knowledge-ware Formulas: Variable, Operators, and Expressions

Formulas are Knowledge-ware objects of type AdvisorFormula, which is a specialized AdvisorRelation. I usually explain formulas as single-line Rules written in EKL*. They serve as the building blocks for constructing complex Parameter relationships. Formulas are composed of variables, operators, and/or functions and methods**. A formula can drive only one parameter. It also must return a […]

## The Physical Product PositionMatrix

I showed earlier how to extract origin-coordinates and rotation-angles from Axis Systems’ components. Atsushi followed with a post on working with vectors and I recently showed how to perform Axis To Axis transformations on geometric features. Today I’ll focus on Physical Product’sPositionMatrix; more specifically, the VPMInstance PositionMatrix. Instance Position Vs Occurrence Position A Physical ProductReference […]

## On Automating Problems Away With Joe Burch

I recently had a chat with Joe Burch at Tesla’s office in Palo Alto. He told me about his first VBA code, which he wrote as a young engineer, to solve some 20,000 CATPart problem in V5. So I was like: "Would you be interested in an interview, Joe?" He gladly agreed. Here it is! […]

## Axis To Axis Transformations With EKL

Transforming geometric features from an AxisSystem to another is a common task in CATIA; especially when the goal is to decouple driving geometry from the construction of a UDF or a PowerCopy. For example, providing 2D-curves as input to a UDF that transforms the curves to build an extruded surface along a line–think window-frame tubes/channels. […]

## Bounding Geometry With EKL: Box and Rectangle

In my previous post, I showed how to create a convex hull around a set of points or a polygon. Today’s post will focus on creating a bounding box and a bounding rectangle, depending on the input. Determining the boundary of an object will be guided by 3 directions: X, Y, and Z. In today’s […]

## Bounding Geometry With EKL: 2D Convex Hull

We often need to build simplified representations of geometry to facilitate solving problems related to packing and stacking; area and volume (weight) estimation; and more generally, space reservation. One such simplified representation is finding a 2D convex hull of a point set. Let’s take a look. Pseudo Code A convex hull is an unambiguous boundary […]

## Functional Parametric Modeling. Idea 1

While I was experimenting with xGenerative Design (xGen) a while ago, I had the idea of revisiting old tutorials that I developed and taught in classes over the past years using RhinoScript, FormZ, Dynamo, Digital Project and CATIA. In my experience, this is one of the best to learn new tools. Since I like to […]

## On CATIA For Fabrication With Neil Meredith

I had the opportunity to interview Neil Meredith, a former colleague from Gehry Technologies, (now Trimble Technologies). Neil currently works at one of the most advanced fabricators in the US, MG McGrath. My goal from the interview was to shed some light on how they use CATIA in practice. Let’s get to it! What do […]

## Understanding The Shape Representation

I explained earlier the Drawing Representation model and touched upon a few notions: Aggregated vs Shared Representations, Collections, and Representation’s Root. Let’s now take a look at the more complex Shape Representation, and some of the differences between the dotnet and the EKL APIs. The Shape Data Mode Shapes are Representations whose V_discipline attribute value […]

## Organizing Automation

It is quite tempting to throw all of your EKL code in a single Knowledgeware object– Action, Rule, KnowledgePattern, or Reaction. While convenient, this practice brings many drawbacks. Instead of describing what these are, I will focus instead on describing some programming principles and the benefits they bring. I learned the value of these principles […]

## Making Use of Catalogs

I posted earlier on creating CATIA trees by passing instructions based on a custom syntax using EKL. I also posted on deploying tools to Catalogs as a mean to distribute automation tools for an organization. Today, I’ll show another example on building a tree, and will cover a few more things on Catalogs that I […]

## Making Use of Resource Tables

We can use EKL code to call reusable features Actions, Powercopies, UDFs, and Engineering Templates. To do this, we need to define them as Resources by adding them to a Resource Table. Resources can be inserted from any Representation in a Resource Table. However the Resource Table itself has to be inside the same Representation […]

## Understanding The Drawing Representation

CATIA’s data model is structured around two main object types: Physical Products (Parts and Products) that hold information pertaining to structure, and Representations that hold information relating to descriptions– whether 3D geometry as in Shapes and Skeletons, or Knowledgeware features as in Knowledge Engineering Specifications, or 2D view drawings as in Drawings. An overview of […]

## Engineering Templates Explained

One of the most robust functionalities supported by CATIA’s Knowledgeware is the ability to create reusable content: User Defined Features or Power Copy features, which can be instantiated within Representations; Engineering Templates, which can be instantiated within Physical Products. This functionality enables the encapsulation of compelx relationship and enterprise best practices; supporting Knowledge Based Engineering […]

## On Practicing Automation In AEC With Guido Maciocci

I made a few interviews over the past few months with folks from Dassault to offer readers an insight into how and why certain CATIA features came about and what they mean for end users. Changing lenses; today I interview one of CATIA’s experts from Australia, Guido Maciocci of AR-MA to talk about CATIA automation […]

In case you missed it, we now have a reading list! It may help you get started with CATIA’s automation. The list will be refined and restructured as the blog grows. So try to revisit it from time to time.

## Deploying Automation

CATIA provides two methods to deploy automation written in EKL to end users; enabling organizations to streamline tools for maximum impact. Let’s take this EKl action as an example: Assign Color Based On Attribute Example I previously posted on how to assign different colors to physical products. Today I’ll show a variant of that post. […]

## Polygonise Curve

Distance can be measured with respect to the shape (Geodesic) using a curve’s length, or direction (Euclidean) using a straight line’s length. Examples provided by Guido, and Mirco use the Geodesic method, that is they are both based measuring distances or locating points along the curve using EKL’s pointoncurve and pointoncurveRatio. In this post, in […]

## 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 […]

## Alternatives In Visual Programming–Updated

Current Graph Implementations Visual programming tools have matured over the years to offer key features that users have come to expect: – Graphs are composed of nodes, that can be connected by data streams Nodes are multi-functions, capable of taking multiple inputs and generating multiple outputs. Nodes have input and output ports. Data is transmitted […]