Single rebar rotation

Hi

I have a wired problem with rebar inserted to tekla through grasshopper. I am inserting 2 single rebars through grasshopper and I do not know why one of it moves in an unexpected way changing ANY of Rebar Attributes. Secound bar behave allright. What could be a reasone of this behaviour?

Hi Arek, that’s curious. Any chance you can share the relevant part of your definition for investigation?

Cheers,

Sebastian

Here is a GH file. I am using live link with Tekla. I bit modified script but problem still exists.
Beam at the begining is linked to wall created in tekla with openings. What is important- Work plane X must be set along wall.

GH reinforcement.gh (43.4 KB)

Thanks, that’s interesting. The definition works well on my geometry, no matter how I add or modify the rebar attributes.

So not sure what’s going on.

Does the same thing happen if you select the bar manually in Tekla and modify some of its properties?

I’m testing with 2023 SP2 by the way.

Cheers,

-b

I have made some tests and discover that sricpt works when wall is created along global X axis. When it is along Y (or it is at angle between global X and Y) problem appears. Of course every time I am adjusting work plane X axis along wall. I am workings on Tekla 2023 SP4.

@sebastian.lindholm one more thing- I tried to continue with the script for the wall along global X direction and when I am changing Atributes everything is ok, however when I am changing covers from and on plane bar follow some wired path instead of horziontal and vertical line. I have no idea why it behave like this.

Hi, still can’t replicate unfortunately, everything works well even when I try aligning the wall with the Y-axis.

I’m not sure exactly how the cover direction for a single bar is determined. Tekla probably tries to do something clever with the faces of the panel. Again I assume it follows the same path if you change the values manually? One option is to offset the points in Grasshopper instead and keep the cover thickness at 0.

Cheers,

-b

I checked what is going on when I am adjusting cover manualy and it seems it works wrong same as via GH for vertical bar but for horizontal ones everything is ok. It doesn’t even matter how I place work plane.

Alright maybe try your script with Tekla 2022 if possible, to see if this is version-specific. Then support could take a look at the model if it’s indeed replicable without GH.

Cheers,

-b

I think I have found a reason. Rebar is inserted rotated along it axis but I have no idea why.


I don’t even see any atribute in singe bar that describe rotation. I checke that in Tekla 2022 and 2023 and the result is the same.

From a very quick test directly in TS, it seems that when I use more than two points to create a bar the cover thickness axes will be either oriented according to the current work plane, or, if the bar is placed at the corner points of a part, the axes will be aligned with the part face. But for two point bars the cover thickness axes seem to always be global XYZ - not sure why that’s not what we see in your case. Then again this was a small test.

You can rotate a bar using Tekla’s ‘Move Special - Rotate’ command but that’s not available in GH.

Bar groups are normally more deterministic as you have the range points to help determine the bar plane - maybe a group with only a single bar could be an option? Or then you offset the points in Grasshopper instead and keep the cover thickness at 0 like I suggested previously.

Cheers,

-b

1 Like

Thank you for sugestions. I will try to use a group probably or offset the point and in the mean time I wrote to Trimble support, so maybe they can say what is going on.