Hi Bart,
Sure, The stirrup cage PythonPart works as follows: first, a reference precast slab is selected in order to obtain the position with respect to the Z-axis. Then, by selecting two points (start and end), the stirrup cage is generated inside the precast slab. It is an Interactor-type PythonPart, so once created it is possible to modify various parameters such as width, length, bar diameter, steel type, concrete covers, and especially the different stirrup spacings.
The issue I am running into appears in the fabrication drawings. When Allplan's native stirrup cage is used, it is identified as a single assembly, showing the cage name (for example, JE1, shown in the first image shared in this thread) along with its corresponding reinforcement, made up of the longitudinal bars and the stirrups. However, in the case of the PythonPart, although the reinforcement is generated correctly, in the fabrication drawings it is not recognized as a single assembly. Instead, an individual breakdown of each bar is shown with its respective position number.
Our intention is for the PythonPart to behave in the same way as the native stirrup cage — that is, to be identified and labeled as a single reinforcement group, while internally keeping all the bars that make it up. I have tried grouping all the bars using an assembly group, but the result in the fabrication drawings is still the same, showing each bar individually instead of the complete assembly.
This is particularly important because a single precast slab can contain several stirrup cages. If each one is broken down into all its individual bars within the fabrication drawings, the identification of the assemblies and the rebar assembly process on the precast production plant would become chaotic.
For this reason, I would like to know whether there is any way for a PythonPart containing reinforcement to be treated and identified as a single reinforcement assembly, similar to Allplan's standard stirrup cage. Likewise, I would like to know whether there is any workflow, Precast functionality, or possibility within the API that allows this same behavior to be achieved in the fabrication drawings.
I look forward to your comments.
Best regards,
Elvis