Dynamic Truss Editing: Deleting Beams in Tekla from Grasshopper

Hi everyone,
I’m using rhino7 and Tekla2022

I’m starting from an existing Tekla model of a truss beam, and I want to modify its geometric parameters — for example the spacing between vertical members — using Tekla Live Link in Grasshopper.
By doing this, I’m not only modifying existing objects, but also dynamically creating new ones or deleting elements, depending on how the geometry changes.

I’m able to import the beam elements from Tekla to Grasshopper, extract their axes, parametrize the geometry, and modify it.

At this point, I’m facing two different scenarios:

  • If the number of elements increases, I can update the model using the “Modify Beam” component for the existing beams (by updating the curve input) and the “Create Beam” component to generate the additional ones.
  • However, if the number of elements decreases, I’m unsure how to proceed. I can use the “Modify Beam” component for the beams that still exist, but I don’t know how to delete the extra beams from within the Grasshopper script.

How can I remove these unnecessary elements directly in Grasshopper?

Thanks in advance for any help!

1 Like

@sebastian.lindholm not only beams i want to delete some thing like cut part plane cut for a part similar items too could you make a delete button so we can select the part which we dont need and use it with a toggle function

1 Like

here is what i did with chatgpt to fix my issue
deleteObject.gh (6.4 KB)