[Question] Correct definition of SectionType in documentation [Solved]


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

1 - 3 (3)
  • 1

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

1 - 3 (3)
  • 1

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

Accept