Syntax
- string getTreeKey()
Returns
The unique TreeKey of the shape being derived, formatted as a string list. The TreeKey is a list of integer numbers denoting the path from the root shape to the shape being derived in the shape tree. Each number denotes the 0-based child index, see example 1 below.
Note:
The TreeKey stays the same during derivation of the whole rule, see TreeKey example below.
Examples
Simple Example
CGA code
| Model Hierarchy |
CGA console output
|
The TreeKey stays the same during Derivation of the whole Rule
CGA code
| |
CGA console output
|