ContentModifier

Based on ContentModifier interface.

Content modifiers are used to modify how instances of specified ECClasses are displayed in content which is produced using content rules. They do not produce any content by themselves.

Attributes

Name Required? Type Default Meaning
Picking attributes
class No SingleSchemaClassSpecification `` Specification of ECClass whose content displayed should be modified. The modifier is applied to all ECClasses if this attribute is not specified.
requiredSchemas No RequiredSchemaSpecification[] [] Specifications that define schema requirements for the rule to take effect.
Content Modifiers
relatedProperties No RelatedPropertiesSpecification[] [] Specifications of related properties which are included in the generated content. See this page for more details
calculatedProperties No CalculatedPropertiesSpecification[] [] Specifications of calculated properties whose values are generated using provided ECExpressions. See this page for more details
propertyCategories No PropertyCategorySpecification[] [] Specifications for custom categories. Simply defining the categories does nothing - they have to be referenced from PropertySpecification defined in propertyOverrides by id. See this page for more details
propertyOverrides No PropertySpecification[] [] Specifications for various property overrides. See this page for more details

Example

{
  "ruleType": "ContentModifier",
  "class": { "schemaName": "BisCore", "className": "Element" },
  "requiredSchemas": [{ "name": "BisCore", "minVersion": "1.0.1" }],
  "propertyOverrides": [{
    "name": "Model",
    "isDisplayed": false,
  }],
}

Last Updated: 29 November, 2022