Goodmorning,
does anyone know the code to do the two options ....
1) if I make "a" true then "b" change in false
2) if I make "b" true then "a" change in false
Thank you for help. Goodbye.
Im Allplan Connect Forum tauschen sich Anwender aus, geben wertvolle Tipps oder beraten sich bei ganz konkreten Aufgabenstellungen − auch international.
Und damit wirklich keine Frage unbeantwortet bleibt, unterstützen die Mitarbeiter des Technischen Supports ebenfalls aktiv das Forum.
Melden Sie sich jetzt an und diskutieren Sie mit!
Goodmorning,
does anyone know the code to do the two options ....
1) if I make "a" true then "b" change in false
2) if I make "b" true then "a" change in false
Thank you for help. Goodbye.
You have to recognize the changings of the parameters "a" and "b":
In Parameter script:
IF GLOB_MODPARAM_NAME = "a" THEN
If a#0 THEN
b=0
PARAMETERS b=b
ENDIF
ENDIF
IF GLOB_MODPARAM_NAME = "b" THEN
If b#0 THEN
a=0
PARAMETERS a=a
ENDIF
ENDIF
With Variables "a" and "b" you can only set the association with:
b = NOT a
or
a = NOT b
Therefore you need a "leading" variable, and a "dependend" variable!
ENDIF
IF GLOB_MODPARAM_NAME = "b" THEN
If b#0 THEN a=0
PARAMETERS a=a
ENDIF
ENDIF
With Variables "a" and "b" you can only set the association with:
b = NOT a
or
a = NOT b
Therefore you need a "leading" variable, and a "dependend" variable!
Hi Nemo, your code it's very good...as always . Thank you for help! Goodbye.