ImageIdOverride Customization Rule

ImageId override rules allow setting an image ID to specific types of ECInstances.

Attributes

Name Required? Type Default Meaning
Filtering
priority No number 1000 Defines the order in which presentation rules are evaluated.
onlyIfNotHandled No boolean false Should this rule be ignored if there is already an existing rule with a higher priority.
condition No ECExpression "" Defines a condition for the rule, which needs to be met in order to execute it.
Overrides
imageIdExpression Yes ECExpression An expression whose result becomes the image ID.

Example

{
  "ruleType": "ImageIdOverride",
  "priority": 999,
  "stopFurtherProcessing": true,
  "condition": "ThisNode.IsOfClass(\"MyItem\", \"MySchema\")",
  "imageIdExpression": "\"ImageId_\" & this.MyProperty"
}

Last Updated: 13 June, 2024