Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"libraries/DocumentQueries.sysml": {
"algorithm": "SHA256",
"value": "370b6f880bb2dc375b534f388e3c802c5820cc45e13977c38b3d36a9d1710233"
"value": "7cad8b83772182db5aa917ed36c19feb2e0796ecd6cfbc3b6b1a4c33729b11a7"
},
"libraries/IdentityMetadata.sysml": {
"algorithm": "SHA256",
Expand Down Expand Up @@ -69,7 +69,7 @@
"value": "9e00f049209584092dc8bcb398b736c08e6a39b1db667a8a744de3df72a543bf"
}
},
"created": "2026-10-27T13:19:03Z",
"created": "2026-10-29T15:08:48Z",
"index": {
"AnalysisRecords": "libraries/AnalysisRecords.sysml",
"DiagramLayout": "libraries/DiagramLayout.sysml",
Expand Down
6 changes: 5 additions & 1 deletion libraries/DocumentQueries.sysml
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,14 @@ library package DocumentQueries {
return result : Element[0..*] ordered;
}

/* WhereType keeps the elements that are of any of the named types. */
/* WhereType keeps the elements that are of any of the named types: a metaclass
* (PartUsage) or a definition/usage of the model, subtypes included. */
calc def WhereType {
in source : Element[0..*] ordered;
in type : String[1..*] ordered;
/* exact = true keeps only the elements whose own metaclass is one of the named
* ones, neither its subclasses nor the model's types: the reflective walk. */
in exact : Boolean[1] default false;
Comment thread
devin-ai-integration[bot] marked this conversation as resolved.
Resolved
return result : Element[0..*] ordered;
}

Expand Down
Loading