🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
Parsed/Opt out a constraint in all relevant viewmodel
This page was created by PageReplicator on 2025-09-01. Last edited by PageReplicator on 2025-09-01.

Template:Notice




If you need to opt out a constraint in every viewmodel that mentions this constraint, you can use this EAL code.

let constraint = Constraint.allInstances->select(c|c.Name = 'NameOfConstraint')->first in
(
  constraint.ConstrainedElement.Nesting.OwningSpan->forEach(span | span.OptOutConstraints.add(constraint))
)