[Question] [PythonParts] Options settings


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

Attachments (1)

Type: image/png
Downloaded 49 times
Size: 87,23 KiB

Show most helpful answer Hide most helpful answer

Quote by 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

Quote by 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


https://campus.allplan.com/ uses cookies  -  More information

Accept