# Tag: Knowledge Pattern

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 […]
Working with mathematical vectors in code is valuable. It requires only math calculation, and a code executing time is faster than a code dependent on a geometrical object attributes. Maher showed, in a previous post how to extract direction components from an AxisSystem matrix using EKL. In this post, I’ll dig deeper into how Vectors […]
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, […]
Here is what we went over during the April 27th 2019 session on PowerCopies and UDFs( User Defined Features). Organizing The Tree: I learn back in 2008 from BIlly Wong, a former colleague from Gehry Technologies (now Trimple Technologies), the good practice of organizing the content of PowerCopy and UDF templates into two owners: Input, […]
I previously showed two examples on implementing recursion using iteration: Walking CATIA trees, and generating Fibonacci-number series. In this post, I’ll demonstrate generating geometric designs recursively using a combination of UDFs, Power Copies, and Knowledge Patterns. The strategy for implementing recursion through iteration is quite simple: operate on one set of elements; where every iterations […]
In this post we look at a simple Knowledge Pattern to generate division points on an input curve by specifying the maximum allowable spacing between points. We then embed this Knowledge Pattern inside a Powercopy for fast and efficient re-use.