Unable to connect using c# script component

Hi all,

I’m trying to connect to Tekla Structures 2024 from a Grasshopper C# script component, but I’m unable to get a working connection.

My setup :

  • Rhino: 8 (using new C# script component)
  • Tekla Structures: 2024
  • Tekla model is open and running
  • Rhino runtime switched to .NET Framework (SetDotNetRuntime)

The Tekla live link works, but if i try to use script component i get the following error :
“TypeInitializationException: The type initializer for ‘Tekla.Structures.ModelInternal.DelegateProxy’ threw an exception.”
It seems the script instance finds the dll’s, but cannot connect. Maybe its something to do with Gacless mode.