```JSONata ( $getFamilyTypeName := function($ParentId){ $$[type="FamilySymbol" and id = $ParentId].name }; $getAssemblyCode := function($ParentId){ $$[type="FamilySymbol" and id = $ParentId].values.assemblyCode }; $getFamilyTypeParent := function($ParentId){ $$[type="FamilySymbol" and id = $ParentId].parent.id };
$getFamilyName := function($ParentId){
$$[type="Family" and id = $ParentId].name
};
$[type = "FamilyInstance"].{
"id": id,
"type": type,
"name": name,
"familyTypeName": $getFamilyTypeName(parent.id),
"assemblyCode": $getAssemblyCode(parent.id),
"familyTypeid":parent.id,
"familyTypeParent": $getFamilyTypeParent(parent.id),
}
)```
```mermaid
flowchart TD
A[Initiator
BIM Coordinator / Engineer] --> B[Influencer
BIM Manager / Project Manager]
A ==> C[User
Modelers / Engineers]
B ==> D[Decision-Maker
Head of Engineering / Director Digitalization]
D ==> E[Buyer
Procurement / Finance]
D ==> F[Gatekeeper
IT Manager / Admin]
style A fill:#f2f2f2,stroke:#245f78,stroke-width:2px
style B fill:#f2f2f2,stroke:#245f78,stroke-width:2px
style C fill:#f2f2f2,stroke:#245f78,stroke-width:2px
style D fill:#3faedd,stroke:#245f78,stroke-width:3px
style E fill:#f2f2f2,stroke:#245f78,stroke-width:2px
style F fill:#f2f2f2,stroke:#245f78,stroke-width:2px