[Вопрос] Python_GetBarShapeCode

Теги:

We've encountered an issue with Python API in Allplan 2022 while working with method NemAll_Python_Reinforcement.ReinforcementService.GetBarShapeCode() that need to be fixed.
We were testing this method in GetBarShapeCodes PythonPart from reinforcement example.
Our goal is to get bar shape codes from different reinforcements in file model and perform some actions in PythonPart based on list of those codes. These bar shape codes are from ACI standart. Problem comes up when we redefine ACI shape codes with our new rebar shapes. After this manipulation method ReinforcementService.GetBarShapeCode() returns code "0" for our new shapes no matter what shape we use(If it is our new defined shape) - screenshot BarShapeCodeScreenshot.png
What i've noticed that in Allplan version 2021 when we have not yet redefined rebar shapes, ACI shape codes work allright. But in 2022 with our new shape codes it will always return code "0".
Our new bar shapes codes work perfectly with explications but inside Python API we are not quite sure how to get them right.
Please gives us guidance on how to get bar shape codes of our new shape in PythonParts.

Вложения (1)

Type: image/png
Загружено 46 раз
Size: 147,83 KiB

Show most helpful answer Hide most helpful answer

Hello Andrii,

please use 2023 for testing.

Best regards
Horst

Hello Andrii,

the new ShapeCodeManager for Allplan 2022 is currently not available for PythonParts. We are working on this issue.

Best regards
Horst

Has this issue been resolved?

coreball

Hello Andrii,

the issue is solved.

Best regards
Horst

Цитируется из: Horst_Hohmann
Hello Andrii,
the issue is solved.
Best regards

Horst

Hello Horst,

Thanks!
In what version of Allplan it's available for testing?

Best regards
Andrii

Hello Andrii,

please use 2023 for testing.

Best regards
Horst


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

Accept