[Question] [PythonParts] Options settings

Schlagworte:
  • Allplan
  • 2024-0-4
  • Options

Hello everyone!

I would like to ask you about help if anyone knows the solution.
I want to use PythonPart to:

1. Get value of polygonization in options setting (see attachement)
2. Save "Options" as a favorites .xml

Thank you in advance

Best
Tuan Anh

Anhänge (1)

Typ: image/png
53-mal heruntergeladen
Größe: 87,23 KiB

Hilfreichste Antwort anzeigen Hilfreichste Antwort verbergen

Zitiert von: Tuan_Anh
...

I want to use PythonPart to:
1. Get value of polygonization in options setting (see attachement)
2. Save "Options" as a favorites .xml


Hello Tuan Anh,
the Allplan settings regarding reinforcement can be accessed through the ReinforcementSettings class. Unfortunately, the setting you are trying to access is not exposed in this class. If you could explain your use-case a bit closer, maybe we could find a workaround.

Best,
Bart

Zitiert von: Tuan_Anh
...

I want to use PythonPart to:
1. Get value of polygonization in options setting (see attachement)
2. Save "Options" as a favorites .xml


Hello Tuan Anh,
the Allplan settings regarding reinforcement can be accessed through the ReinforcementSettings class. Unfortunately, the setting you are trying to access is not exposed in this class. If you could explain your use-case a bit closer, maybe we could find a workaround.

Best,
Bart

Hello Bart,

Thank you for your response.
I'm working on creating a PythonPart to control the options settings for all users in a Workgroup.

I think it would be better if I could import a favorites .XML file to ensure i have the desired options settings.
Is it possible to do this automatically with PythonPart?

Best regards,
Tuan Anh

Hi Tuan Anh,

Currently it is not possible using Python API. We also don't plan to implement it in the near future. This of course may change, when we notice a high interest for this kind of API functionality. For now, it is not planned.

Best,
Bart