Tekla component in a Live link possibility

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

is it possible any guidance would help me a lot

regards
rajeev

Hi Rajeev,

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.

Or use a saved attribute preset/file.

The Glulam Arch Array definition itself can of course also be used as a GH Component straight from Tekla.

Cheers,

Sebastian

1 Like

thank you let me look into it and give a try with my connections

it work wonderfully @sebastian.lindholm

now i have another case


Component A is one one script and Component B is one script

normally i explode the component A and then run component B connection

am looking to automate it so there is no manual work required

regards
rajeev

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

#pragma warning disable 1633 // Unrecognized #pragma directive
#pragma reference "Tekla.Macros.Akit"
#pragma reference "Tekla.Macros.Runtime"
#pragma warning restore 1633 // Unrecognized #pragma directive

namespace UserMacros {
    public sealed class Macro {
        [Tekla.Macros.Runtime.MacroEntryPointAttribute()]
        public static void Run(Tekla.Macros.Runtime.IMacroRuntime runtime) {
            Tekla.Macros.Akit.IAkitScriptHost akit = runtime.Get<Tekla.Macros.Akit.IAkitScriptHost>();
            akit.Callback("acmd_explode_selected_joints", "", "View_01 window_1");
        }
    }
}

Here’s the glulam arch array example that now explodes the individual arch components:

Glulam Arch Array Explode.gh (19.6 KB)

pic:

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.

Cheers,

Sebastian

thank you so much sure i will look into it

regards
rajeev

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 …

regards
rajeev

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.

1 Like


@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


Orient Project North Hole_R00.gh (27.0 KB)

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.

i managed to create the tekla profiles through hops but am not able to cut part cut and weld and those are not working in hops

regards
rajeev

@Brad_Shipton i will look into it need to understand this work flow too