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
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.
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.
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:
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?
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.
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.
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.
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.
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