Foro de Soporte Allplan

[Pregunta] Correct definition of SectionType in documentation [Guardado]


I've a problem with implement enum from SectionType. In documentation we can find f.e.:
"eHorizontalFromBelow = NemAll_Python_BasisElements.SectionType_Enum.eHorizontalFromBelow"

if I add it in my code:
section_prop_data.SectionType = AllplanBasisElements.SectionType_Enum.eHorizontalFromBelow

I get error:
AttributeError: module 'NemAll_Python_BasisElements' has no attribute 'SectionType_Enum'

How is correctly definition of enum?

best regards,
Krzysztof

Show solution Hide solution

Hi Krzysztof,

sorry, there is a problem in the automatic generation of the documentation.

Because SectionType_Enum is included in the class SectionDefinitionProperties, the correct usage is

AllplanBasisElements.SectionDefinitionProperties.SectionType_Enum.eHorizontalFromBelow

Best regards
Horst

Hi Krzysztof,

sorry, there is a problem in the automatic generation of the documentation.

Because SectionType_Enum is included in the class SectionDefinitionProperties, the correct usage is

AllplanBasisElements.SectionDefinitionProperties.SectionType_Enum.eHorizontalFromBelow

Best regards
Horst

Hi Horst,
Thanks for quick response, That helps and this error is gone.

best regards,
Krzysztof


https://connect.allplan.com/ utiliza cookies  -  Aqui

Acéptalo