Das Wissen aller Anwender nutzen

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.

Es erwarten Sie:

  • Foren-Vielfalt aus CAD Architektur, CAD Ingenieurbau uvm.
  • Tipps von User für User
  • international: Deutsch, Englisch, Italienisch, Französisch und Tschechisch

Melden Sie sich jetzt an und diskutieren Sie mit!

Zur Registrierung

[Frage] Options code smartpart


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.

Anhänge (1)

Typ: image/jpeg
25-mal heruntergeladen
Größe: 478,22 KiB

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!

Zitiert von: Nemo
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!

Hi Nemo, your code it's very good...as always . Thank you for help! Goodbye.


https://campus.allplan.com/ verwendet Cookies  -  Mehr Informationen

Akzeptieren