[Frage] Python_GetBarShapeCode

Schlagworte:
  • Allplan
  • 2022
  • 2021

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.

Anhänge (1)

Typ: image/png
72-mal heruntergeladen
Größe: 147,83 KiB

Hilfreichste Antwort anzeigen Hilfreichste Antwort verbergen

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

Zitiert von: 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

Hello Andrii, cookie clicker

Thank you for your message!
The feature is available for testing in Allplan version [insert version here]. Please let me know if you need any additional details or support.

Best regards,