Support Forum

[Frage] [PythonParts] ValueList in PYP file [Gelöst]

Schlagworte:
  • PythonParts
  • ComboBox

Hi,

Can we change the <ValueList> of a ComboBox via the PythonPart ?

For example,

"Color" as StringComboBox, "RAL" as IntegerComboBox

if "Color" = "GREY" then the "RAL" can be from 7000 to 7048

if "Color" = "ORANGE", "RAL" can be from 2000 to 2013.

...

Now I'm working with some IntegerBox and I apply <Visible> but it's not very practical.

Best

Lösung anzeigen Lösung verbergen

Hi,

please have a look at ControlPropertiesUtil in the documentation

https://connect.allplan.com/forum/topics/topic/topics/pythonparts/pythonparts-update-pre-release-of-the-new-pythonparts-documentation.html

Here you can see how to create a dynamic ValueList.

Best regards
Horst

Hi,

please have a look at ControlPropertiesUtil in the documentation

https://connect.allplan.com/forum/topics/topic/topics/pythonparts/pythonparts-update-pre-release-of-the-new-pythonparts-documentation.html

Here you can see how to create a dynamic ValueList.

Best regards
Horst

Hi,

Thanks for reply

Best Regards