Can I have several versions of tekla live link at once?

I’m using lots of Tekla Structures versions (ex: 2018, 2019, 2020, 2022)
so I want it be installed these versions together.

So, I tried to install live link 2020 after installation of 2022,

And it says version conflict, so I thought this means both version cannot be exists at once.



But I think this message show me there can be several version installed together.

How can I have several live link versions at the same time?

Hi Hoeun,

The link will only work with one Tekla version at a time. You can check the setup on how to switch (although you know this part already): https://support.tekla.com/sv/node/107964#setup

The reason you can’t have multiple versions is that you wouldn’t be able to reuse scripts in for different Tekla versions. You would also have multiple components named Beam, Plate etc showing up whenever you search for a component, which might get confusing. Finally it would introduce a maintenance overhead.

If you find that you often need to switch versions, you could consider these batch files for switching that I created for another case. Maybe useful, or then they just make things more complicated :slight_smile:

image

So with this setup, all the .gha links targeting different TS versions are in the respectively named subfolders. They still need to be unblocked of course. Now, when one of the batch files is triggered it will install/copy the corresponding .gha from this folder and launch Rhino/GH. Close any currently open Rhino/GH instances prior to this.

The content of each batch file is identical (as the version name is read from the filename itself) so it’s easily extendable to new TS versions (copy+rename the batch file, and create a new subfolder with the latest link version).

You can of course create shortcuts to these batch files, or otherwise they should show up in the Windows start menu as any other executable when you start typing.

Cheers,

-b

3 Likes

OMG !
Very helpful solution, Very kind of you.
You are awesome, Thanks a million !! :smiley: :smiley:

1 Like

Can we have the it for the 2023 version of tekla

Hi Rajeev,

For that you can add a 2023 folder with the corresponding TeklaGrasshopperLink.gha inside. Then just make a copy of one (any) of the bat files and rename it to RhinoTargetingTS[2023].bat and it should work.

Cheers,

-b

2 Likes

Hi Sebastian,

Do we have to put the “RhinoLauncher” folder at a specific location?

Thanks

Hi Ric,

With the latest link version (1.18) from Warehouse it’s possible to have several versions installed in parallel.

Just run the Setup.exe for all of them, that’ll place the link .dll and the new Loader.gha into the Libraries folder. With several versions installed it would look like this:

If several versions are found, Grasshopper will prompt you to pick which one to use each time it’s launched.

Hope this is a better solution! Cheers,

-b

1 Like

Hi Sebastian
I have a problem with Tekla Structure 2024.
I get a message:
…\Grasshopper\Libraries\GrasshopperTeklaLink.2024.dll
Exception System.TypeLoadException:
Message: Nie można załadować typu ‘CrankedLengthTypeEnum’ z zestawu ‘Tekla.Structures.Model, Version=21.1.0.0, Culture=neutral, PublicKeyToken=2f04dbe497b71114’.

What could be a problem? I also see that you use GrasshopperTeklaLink_1.19. On Warehouse I have only 1.18 version. Where I can find 1.19?

Hi BIM,

It seems something that Grasshopper has loaded prior to the 2024 link has references to Tekla Structures version 21.1. The 2024 link tries to use this and fails.

Do you have any old GrasshopperTeklaLink.dll in the Libraries folder (or a subfolder or anywhere else GH loads plugins from) that didn’t get removed in the install? If so, remove it. Or are there any other plugin that uses Tekla structures?

1.19 is the current WIP version, not much new yet and currently unstable so it doesn’t have any installers.

Cheers

-b


Here is my library folder. But with other (2021,2022,2023 GrasshopperTeklaLink) it`s working without faults.

Remove the “Tekla.Structures.Model.dll” from that folder, that’s probably the 21.1 version. Same with “Tekla.Structures.Drawing.dll”. They shouldn’t be needed for anything I think.

2021-2023 finds the Tekla references from the GAC. 2024 doesn’t, so it’ll load the Tekla.Structures.Model.dll that it conveniently finds in the Libraries folder instead. When it’s gone the Loader should find the correct references from the Tekla 2024 bin folder.

Cheers,

-b

Thank you for your help. The problem was with the “ggRhinoTekla” plugin, and now GrasshopperTeklaLink with the 2024 version is working, but I have the same issue with GrasshopperTeklaDrawingLink_2024.
I get the following message:
An error occurred during GHA assembly loading:
Path: …AppData\Roaming\Grasshopper\Libraries\GrasshopperTeklaDrawingLink.gha
Exception System.IO.FileNotFoundException:
Message: The file or assembly ‘Tekla.Structures.Drawing, Version=2024.0.0.0, Culture=neutral, PublicKeyToken=2f04dbe497b71114’ or one of its dependencies could not be loaded. The specified file could not be found.

Ah alright, so apparently the Tekla.Structures.Drawing.dll was required for the drawing link to load.

You can put a copy of it back into the Libraries folder and see if everything works then (you can find the dll from the bin folder of the Tekla Structures 2024 install if you completely removed the file).

OR

Try to rename

GrasshopperTeklaDrawingLink.gha

to

GrasshopperTeklaLink.Drawing.dll (note the file extension change)

Then I think that the Loader should pick it up and point to the Tekla bin folder (the loader will try to load anything named GrasshopperTeklaLink*.dll as a Grasshopper plugin). Haven’t tested this myself yet but if it works I’ll have a chat with Greg about the best way to deploy both plugins.

Cheers,

-b

It`s not working.

Thanks for testing, I’ll try to make that work for the next version!

For now were you able to get the drawing link to load by putting Tekla.Structures.Drawing.dll back into the Libraries folder? In that case the file name should remain GrasshopperTeklaDrawingLink.gha.

Hi Sebastian,

I tried many different combinations, but none of them worked. The only thing that worked was defining the link with the path to the directory c:\Program Files\Tekla Structures\2024.0\bin. However, when launching, there is a conflict related to loading the same libraries, and they need to be manually replaced. It’s a bit of a cumbersome process :slight_smile:

Hi again,

Try this new installer/loader for 1.19 WIP:

https://drive.google.com/drive/folders/13YGUPndAQqHMRPwjyDoSNfd6L04vAS0J?usp=sharing

The Loader should now pick up both the model and drawing link, as long as they have the extension .dll. So

  • Change the drawing link extension from .gha to .dll
  • The only file related to the Grassshopper-Tekla links that should have the extension .gha is the Loader.gha.
  • Make sure there aren’t any .ghlink files pointing to the Tekla bin folder
  • Make sure there aren’t any Tekla API dll:s e.g. Tekla.Structures.Model.dll or Tekla.Structures.Drawing.dll in the Libraries folder.

The files in the Libraries folder might look something like this:

1 Like

Hi Sebastian
I tested and now everything working perfect. Thank You for your help.

1 Like