When generating 96 reinforcement objects across angular segments, some of which contain shortened bars that differ from the standard length, the PythonParts API generates the bar placement pattern in the diametrically opposite direction. This is clearly visible in the attached video.
The preview is displayed correctly, but the actual model is incorrect: it is mirrored by 180°, even though the same input data is used.
To demonstrate the issue, we used a PythonPart provided with the standard Allplan installation and made minor modifications. The video clearly illustrates the problem, and the code is also attached:
PythonPartsExampleScripts\ReinforcementExamples\BarPlacement\CircularArea.py
The issue occurs only when multiple different segments of the radial placement are generated. A single segment is created correctly.