Opt out a constraint in all relevant viewmodel
(Adding message template to the top of the page) |
(Replacing message template with parser tag) |
||
Line 1: | Line 1: | ||
<message>Write the content here to display this box</message> | |||
If you need to opt out a constraint in every viewmodel that mentions this constraint, you can use this EAL code. | If you need to opt out a constraint in every viewmodel that mentions this constraint, you can use this EAL code. | ||
Revision as of 07:35, 17 June 2024
This page was created by Lars.olofsson on 2024-06-13. Last edited by Edgar on 2025-01-20.
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))
)