Hi,
I would like to ask, Is there any method or API to get the placement points of any rebar in AllplanReinf.BarPlacement?
Thank you!
Support Forum
- Forum
- CAD Parametric Modelling
- PythonParts
Retrieve the position of the bar in AllplanReinf.BarPlacement [Gelöst]
Lösung anzeigen Lösung verbergen
Hi,
if you are talking about getting the position from an existing rebar placement, this is possible since Allplan 2025. We are about to publish an article about it in the online documentation. It should happen within days. Applying the Placement matrix read with GetPlacementMatrix() on the BendingShape polyline will give you the polyline of the first rebar in the placement. Subsequent rebars can be reproduced by translating the first shape polyline by the DistanceVector
Best,
Bart
Hi,
if you are talking about getting the position from an existing rebar placement, this is possible since Allplan 2025. We are about to publish an article about it in the online documentation. It should happen within days. Applying the Placement matrix read with GetPlacementMatrix() on the BendingShape polyline will give you the polyline of the first rebar in the placement. Subsequent rebars can be reproduced by translating the first shape polyline by the DistanceVector
Best,
Bart
Thanks, I really appreciate this
Hello!
The article on how to read data from existing reinforcement elements can be accessed here. The article is in the 2ß26 version, but the described implementation works in 2025 as well (however not in 2024 or earlier). We will publish the article also in the documentation for 2025 with the release of 2025-0-2.
Best,
Bart