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] [VisualScripting] IntegerComboBox and Default Value [Gelöst]


Hi,

In my VisualScript, I have an IntegerComboBox with few values.

It's working great but how can I define the default value (in my case 145) ?

Best

Anhänge (2)

Typ: image/jpeg
61-mal heruntergeladen
Größe: 38,54 KiB
Typ: image/jpeg
35-mal heruntergeladen
Größe: 10,57 KiB

Lösung anzeigen Lösung verbergen

The parameter Value should allow you to set the default value for the IntegerComboBox. But it doesn't seem to work properly on that node. You can try StringComboBox as a workaround. Please check attached screenshot.

This default value will be used, if the PythonPart is never changed while placing. Once this PythonPart with that value changed gets placed in Allplan, next time you start the script, it will use last used value. To revert it back to use default value, you can click the "Restore basic settings" button. But it will reset all parameters back to default.

Product Owner API, Allplan GmbH

Anhänge (2)

Typ: image/png
59-mal heruntergeladen
Größe: 56,48 KiB
Typ: image/png
35-mal heruntergeladen
Größe: 6,32 KiB

The parameter Value should allow you to set the default value for the IntegerComboBox. But it doesn't seem to work properly on that node. You can try StringComboBox as a workaround. Please check attached screenshot.

This default value will be used, if the PythonPart is never changed while placing. Once this PythonPart with that value changed gets placed in Allplan, next time you start the script, it will use last used value. To revert it back to use default value, you can click the "Restore basic settings" button. But it will reset all parameters back to default.

Product Owner API, Allplan GmbH

Anhänge (2)

Typ: image/png
59-mal heruntergeladen
Größe: 56,48 KiB
Typ: image/png
35-mal heruntergeladen
Größe: 6,32 KiB

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

Akzeptieren