GetEditorRootOccurrences
This function is used to get the list of the root occurrences of the current editor.
Arguments
| Name | Input / Output | Required? | Type | Comment |
|---|---|---|---|---|
EntityType
|
In | | String |
ReturnType
List
Example
let roots(List)
let rootOfEditor(Feature)
roots = GetEditorRootOccurrences("Feature")
if roots->Size() == 1
{
rootOfEditor = roots[1]
Notify ("Object name #", rootOfEditor.Name)
}
Or:
if roots->Size() == 2
{
rootOfEditor = roots[2] // choose here which root name should be displayed.
Notify ("Object name #", rootOfEditor.Name)
}
Or:
if roots->Size() == 3
{
rootOfEditor = roots[3] // choose here which root name should be displayed.
Notify ("Object name #", rootOfEditor.Name)
}
In the above example, the rootOfEditor variable may contain
different kinds of root occurrences (Functional, Logical, and Product).