[Вопрос] [VisualScripting] IntegerComboBox and Default Value [Решен]


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

Вложения (2)

Type: image/jpeg
Загружено 61 раз
Size: 38,54 KiB
Type: image/jpeg
Загружено 35 раз
Size: 10,57 KiB

Show solution Hide solution

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

Вложения (2)

Type: image/png
Загружено 63 раз
Size: 56,48 KiB
Type: image/png
Загружено 35 раз
Size: 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

Вложения (2)

Type: image/png
Загружено 63 раз
Size: 56,48 KiB
Type: image/png
Загружено 35 раз
Size: 6,32 KiB