sysml.Collection
R2026bDescription
A sysml.Collection object is a container for sysml.Element elements. systemcomposer.sysml.Workspace methods such as getElements, getRootElements, and getElementsByTypeAndName return a collection object. Multi-valued
SysML®
v2 element properties, such as ownedMember and
ownedFeature, also return collections. You can index into a
collection with parentheses, filter by SysML
v2 type by using dot notation, access properties across all elements, and
iterate over elements in a for loop. Collections are row-oriented by
default.
Creation
Create a
sysml.Collection
object using one of these functions:
Properties
Object Functions
Examples
More About
Version History
Introduced in R2026b
See Also
Objects
systemcomposer.sysml.Repository|systemcomposer.sysml.Project|systemcomposer.sysml.Workspace|sysml.Element
Functions
connect|getProjects|getProjectById|createWorkspace|getElements|getRootElements|getElementRelationships|getElement|getElementsByTypeAndName|executeQuery|getMembershipHierarchy|getOwnershipHierarchy|getAncestors|getDescendants|getUsages|filterByType|findByType|getObjectTypes|getTypeCounts|toCell|get|meta|systemcomposer.sysml.exportFromMLProject