Cut and plate for reference object

Hello, could you please assist me or guide me on how to create a Grasshopper (.gh) script that cuts a plate in Tekla Structures using a reference object? I would like the cut to be based on the object’s bounding box, with a specific offset (e.g., 50 mm), and executed using a Tekla Boolean Cut. The reference object could vary in size, so I need the script to adapt automatically to its dimensions. Any help or sample script would be greatly appreciated.

Hi Felipe,

I would be great if you could supply some model examples in order for me and/or others to assist you better.

When you say reference object, what do you mean, what file type is it etc?

In general it sounds pretty straight forward to do what you’re describing above, but please supply test model if you want any further assistance.

Cheers,
Oskar

Hi Oskar,

I will be sending you the files in Tekla and Grasshopper.
What I would like to do is generate a cut on the plate using the reference object (.fbx). For the supports, it should be a 50 mm box cut, and for the floors, only a perimeter cut.
Kind regards.



new.zip (16.7 MB)
tekla cortes placas_soportes.gh (23.0 KB)

Hi Felipe,

I think your best option is to

  1. Import the reference models directly into Rhino (might need scaling)
  2. Get the bounding boxes from the meshes of the imported objects
  3. Create Tekla items from those boxes (or for better performance create Tekla plates, using the box XY-outlines as the boundary)
  4. Then do Tekla part cuts

If trying to read the reference models straight from Tekla, the challenge we have is that we can’t extract solids of reference model objects. This is an API limitation. This also means the Bounding Box component won’t return anything.

We could get the coordinates of the bounding box in global coordinates using the Get Property component, and that actually could be enough for you use case.

I.e. these values in the inquire dialog:

Can be extracted in GH like this:

However I noticed that for these reference models, each individual Reference Model Objects seems to get the bounding box coordinates of the whole reference model. This is not the case for IFC where we get the bounding boxes for individual objects, so this could be a limitation of the .fbx format. Hence why I would import them into Rhino instead and access the meshes directly.

2 Likes

Thank you very much. I will begin with these steps.

Best Regards

1 Like