Thank you for trying to help me:)
I should have made sure the .py script was able to run before uploading it, attached are the updated .py script and the resulting .ifc file. I run the .py script in Blender 3.0, and import the .ifc file using BlenderBim. The result I am getting is what you provided a screenshot of:)
My purpose/application is to create .ifc files with reinforcement directly from Grasshopper (Rhinoceros 3D). I want to use logic in Grasshopper to determine the polylines the rebars should be placed along, then export an .ifc file. Currently the workflow at my company revolves around exporting geometry once from Grasshopper to Tekla and then a lot of manual labor follows in Tekla. I want to add logic in Grasshopper to get the rebar positions, and limit the .ifc export to reinforcement only (at least as a first step, the company I work at usually export "shape.ifc" and "rebars.ifc" as separate files due to the size of "rebars.ifc" anyways). By taking control of the .ifc export, I can make sure the rebars are reused and represented "correctly" right away, instead of bloated .ifc files with mesh coordinates and duplicate rebars. At least this is what I am aiming for:)
I wanted to use "FilletRadius" since it allows cleaner/less input and I thought it is thus easier to use/maintain, but I guess a solution would be to use IfcCompositeCurve (or something similar, consisting of both straight lines and arcs explicitly). I need the rebar corners to follow an arc with radius at least 2.5x the rebar diameter, so using "FilletRadius" would have allowed for the same polyline even though the rebar diameter changed (I would need to adjust for concrete cover, but doesn't need to recalculate the lines and arcs at least).
I asked about "FilletRadius" since I am not sure if I am doing something wrong, or maybe the "FilletRadius" has yet to be supported by eg. the BlenderBIM .ifc import? Also, if you think anything about the workflow I am describing could have been solved differently, I am very interested in any feedback:)
BR Sondre