One question I have made a script for Tekla component for a connection
now i like to know can i use the script (connection) in another live link
so i can use it like a connection in that this will make my work easier so i dont have to apply the connection manually
Check out the “Glulam Arch” and “Glulam Arch Array” examples in this folder:
The Glulam Arch Array inserts the Glulam Arch definition as a GH Component in Tekla. It sets the definition to use through the definitionPath attribute like this:
To set other attributes you’d need to find out their names like with any other Tekla component/plugin, e.g. by using the Deconstruct Component component on a Glulam Arch inserted with the GH component:
As you can see the attributes will have generic names like double_12 or string_37. These are the names you need to use when setting them using the attributes input e.g.
If you want this all done from a definition, would it make sense to insert Component A from the definition and then access the created objects with the “Deconstruct Component” and use them as input for component B?
Otherwise, to explode a component/plugin that’s inserted inside a Grasshopper definition you need a macro. This can be executed e.g. with the “Run Macro” ´component from the Drawing link. The macro code in 2025 is
You could also look into Hops which can run a Grasshopper definition from within another one, that wouldn’t leave the Tekla objects of the child definition packaged in a Tekla component.
hello @sebastian.lindholm
explode component works very nice if i have to make any changes in it after explode that is end up in rework (anyways i have this option also now)
am working on the hops its pretty amazing need to test them in large scale model
could you get some sample of hops of it it would be great …
You can drive all your CC attributes parametrically if you want. You can find all the variable names deconstructing any CC. I paste that list of variables into a panel so I have a complete list. You can assemble any attributes you want and create parametric values. The list you create must follow the exact format from the variable panel. I thought I would show this, but I might not be following your exact problem.
@sebastian.lindholm
i tried to use the hops where geting the geometry from tekla is error get geometry is error
and expression in the code is also showing error
it even have small python code
Hi, about first picture - Hops component doesn’t understand Tekla object. The same, for example, if you will send Tekla object throw input/output nodes, it will not work also.