Content instances of specific classes specification
TypeScript type: ContentInstancesOfSpecificClassesSpecification.
This specification creates content for all instances of specific ECClasses.
Attributes
| Name | Required? | Type | Default |
|---|---|---|---|
| Filtering | |||
classes |
Yes | MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[] |
|
excludedClasses |
No | MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[] |
[] |
handlePropertiesPolymorphically |
No | boolean |
false |
instanceFilter |
No | ECExpression | "" |
onlyIfNotHandled |
No | boolean |
false |
| Ordering | |||
priority |
No | number |
1000 |
| Content Modifiers | |||
relatedProperties |
No | RelatedPropertiesSpecification[] |
[] |
calculatedProperties |
No | CalculatedPropertiesSpecification[] |
[] |
propertyCategories |
No | PropertyCategorySpecification[] |
[] |
propertyOverrides |
No | PropertySpecification[] |
[] |
| Misc. | |||
relatedInstances |
No | RelatedInstanceSpecification[] |
[] |
Attribute: classes
Defines a set of multi schema classes that specify which ECClasses need to be selected to form the result.
| Type | MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[] |
| Is Required | Yes |

Attribute: excludedClasses
Defines a set of multi schema classes that prevents specified ECClasses and subclasses from being selected by classes attribute.
| Type | MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[] |
| Is Required | No |
| Default Value | [] |
| Result | |
|---|---|
excludedClasses: [] |
![]() |
excludedClasses as defined in the above ruleset |
![]() |
Attribute: handlePropertiesPolymorphically
Specifies whether properties of derived classes should be included in the content.
| Type | boolean |
| Is Required | No |
| Default Value | false |
| Result | |
|---|---|
handlePropertiesPolymorphically: false |
![]() |
handlePropertiesPolymorphically: true |
![]() |
Attribute: instanceFilter
Specifies an ECExpression for filtering instances of ECClasses specified through the classes attribute.
| Type | ECExpression |
| Is Required | No |
| Default Value | "" |
| Result | |
|---|---|
instanceFilter: "" |
![]() |
instanceFilter as defined in the above ruleset |
![]() |
Attribute: onlyIfNotHandled
When true, the specification takes effect only when all other specifications with higher priority are ruled out. This attribute is most useful for defining fallback specifications.
| Type | boolean |
| Is Required | No |
| Default Value | false |
| Result | |
|---|---|
onlyIfNotHandled: true |
![]() |
onlyIfNotHandled: false |
![]() |
Attribute: priority
Controls the order in which specifications are handled — specification with higher priority value is handled first. If priorities are equal, the specifications are handled in the order they appear in the ruleset.
| Type | number |
| Is Required | No |
| Default Value | 1000 |

Attribute: relatedProperties
Specifications of related properties which are included in the generated content.
| Type | RelatedPropertiesSpecification[] |
| Is Required | No |
| Default Value | [] |
relatedProperties: [] |
relatedProperties as defined in the above ruleset |
|---|---|
![]() |
![]() |
Attribute: calculatedProperties
Specifications of calculated properties whose values are generated using provided ECExpressions.
| Type | CalculatedPropertiesSpecification[] |
| Is Required | No |
| Default Value | [] |

Attribute: propertyCategories
Defines a list of custom categories.
Custom categories are not present in the result unless they contain at least one property. To assign a property to the category, reference its id in PropertySpecification.categoryId when defining propertyOverrides.
| Type | PropertyCategorySpecification[] |
| Is Required | No |
| Default Value | [] |

Attribute: propertyOverrides
Specifications of various property overrides that allow customizing individual properties display.
| Type | PropertySpecification[] |
| Is Required | No |
| Default Value | [] |
| Result | |
|---|---|
propertyOverrides: [] |
![]() |
propertyOverrides as defined in the above ruleset |
![]() |
Attribute: relatedInstances
Specifications of related instances that can be used when creating the content. There are several use cases when this is useful:
When there's a need to only load instances that have a related instance. Providing a related instance specification with isRequired set to
truefilters-out the instances that don't have the related instance.When there's a need to filter instances by a related instance value. The alias attribute may then be used in the
instanceFilterattribute to reference related instance property values.When there's a need to customize content based on related instance property values. Related instance classes are included when looking for customization rules, which allows referencing related instances and their properties in customization rule ECExpressions by their alias.
| Type | RelatedInstanceSpecification[] |
| Is Required | No |
| Default Value | [] |
| Result | |
|---|---|
SpatialViewDefinition instances |
![]() |
ModelSelector instances |
![]() |
ModelSelector instances filtered by SpatialViewDefinition.Yaw |
![]() |
Last Updated: 11 June, 2025














