ContentRule

Based on ContentRule interface.

Content rules are used to define content that is displayed for specific type of selection.

Selection consists of either instances or nodes and to make things simpler everything is considered a node - instances get converted to ECInstance nodes (thus the SelectedNode symbol in condition ECExpression).

Attributes

Name Required? Type Default Meaning
Picking attributes
priority No number 1000 Defines the order in which presentation rules are evaluated.
condition No ECExpression "" Defines a condition for the rule, which needs to be met in order to execute it.
requiredSchemas No RequiredSchemaSpecification[] [] Specifications that define schema requirements for the rule to take effect.
onlyIfNotHandled No boolean false Should this rule be ignored if there is already an existing rule with a higher priority.
Content attributes
specifications No ContentSpecification[] [] Specifications that define what content the rule returns.

Example

{
  "ruleType": "Content",
  "priority": 999,
  "condition": "SelectedNode.IsOfClass(\"Model\", \"BisCore\")",
  "requiredSchemas": [{ "name": "BisCore", "minVersion": "1.0.1" }],
  "specifications": [],
}

Last Updated: 12 June, 2024