Bake to Tekla Shape Properties Bug

Hello,
I noticed, that when I bake my geometry to Tekla, all assigned shapes get replaced by new shapes.@sebastian.lindholm maybe I miss something in properties?

*Recorded on version 1.15, but I updated to 1.17 and the same thing happens.

Hi Aleksander,

This is deliberate. Otherwise the shape of the baked item would continue to get updated when you re-run the definition, as changing the geometry of a shape updates all the objects that has a shape with that given name. So we need to give the shape of the baked item a new name to freeze it.

What’s the desired outcome in case you bake, re-run to generate a new item and then modify the shape of the item? Both the baked and the new item should get updated?

Cheers,

-b

Hi Sebastian,

This is deliberate. Otherwise the shape of the baked item would continue to get updated when you re-run the definition, as changing the geometry of a shape updates all the objects that has a shape with that given name. So we need to give the shape of the baked item a new name to freeze it.

I didn’t think of it in that way, so now I fully understand the purpose of changing the name.

What’s the desired outcome in case you bake, re-run to generate a new item and then modify the shape of the item? Both the baked and the new item should get updated?

In my case - I’m generating parametric culverts marked with numbering OP001, OP002, OP003, and so on. In each case, I assign a specific name to the shapes. For example, for culvert OP001, some element will have the shape name Item_OP001. If I generate another culvert, a similar shape will be created, but with a unique name, such as Item_OP002. If I regenerate the script, the shapes with assigned names are overwritten, rather than new ones being created. If I generate a specific culvert, bake the geometry, and want to generate it again, I delete the geometry in Tekla and regenerate it from Grasshopper. This way, I don’t directly interfere with the baked geometry’s shapes. I’m not sure if I explained my case well, but these are my intentions.

Hi Aleksander,

I’ve added a right-click option “Keep all inserted Shapes” that means that when a new shape input name is provided, the shape with the old name will remain in the Shape Catalog rather than being deleted/updated.

DL update here:

https://drive.google.com/drive/folders/1Iex0k_8xY83sHkaL1QQIyzWV5ABuZZOk?usp=sharing

So this will prevent the old shape from being overwritten when you change the shape input name.

To now bake an item without changing its shape name, you could create a copy of the object either manually in Tekla or then by using a C# scripting component in GH. I’ve created an example here:

BakeShapeAndItem.gh (16.5 KB)

Let me know if this helps or if you maybe have another suggestion on how to solve it!

Cheers,

-b

2 Likes

Thank you @sebastian.lindholm. That’s perfect solution!

1 Like