Dear All
is it possible to inhibate a Dynamic Constraint with a script ? if yes what is the control ?
Thank you in advance
Best regards
Philippe
Hi Philippe,
I am not sure about your request as "inhibate" ... is difficult to translate :-)
if you meant "create a constraint", that currently impossible, but will be possible with 2023 R2 (to be confirmed by myself).
if you mean "evaluate", that *was* actually possible with some extra library but somewhat got broken when we released the new validation view with 2022 R1 /or was it R2?)
Anyway, maybe you can first clarify which one you are looking for.
Happy Scripting
Jan
Hello Jan
Thank you for your answer
On our side we have 2 lists of Feared Events and 2 columns in our HARA. We have a 2 dynamic constraints to be sure we put the good FE in the good column. In our previous version of Medini no issue. With 2022R2 when we execute our script to import HARA, sometime dynamic constraint generate an error even if the test is not ok (it is strange)
I want to deactivate dynamic constraints in by script if it is possible
Got the idea now, thanks.
I think its currently not possible to deactivate a constraint via a script, I need to confirm though.
Anyway, the described behavior is strange. There was an OCL issue fixed in 2022 R2.1, are you on that version or 2022 R2.0?
I have found why we have this issue. It is not link to last version but partially link to Medini. No need to have the deactivation of dynamic constraint.
The owner of the excel HARA has put some time the same Feared event reference for different wording. Manually Medini accept to put a link in the HARA. With a script Medini activate our dynamic constraint even it is not logical and don't accept the link to FE in the HARA.
After modification of our excel HARA, the import works.
Glad you solved it that way.