Opt out a constraint in all relevant viewmodel
(Created page with "If you need to opt out a constraint in every viewmodel that mentions this constraint, you can use this EAL code. <syntaxhighlight> let constraint = Constraint.allInstances->select(c|c.Name = 'NameOfConstraint')->first in ( constraint.ConstrainedElement.Nesting.OwningSpan->forEach(span | span.OptOutConstraints.add(constraint)) ) </syntaxhighlight>") |
(Replacing message template with parser tag) |
||
(One intermediate revision by the same user not shown) | |||
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. | ||
Latest revision as of 07:35, 17 June 2024
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))
)
This page was edited 95 days ago on 06/17/2024. What links here