I have a Grasshopper script that creates an structural frame in Rhino 8. It works fine with the live link but I get below error when I run it through the Component.
I check that the beam component has no null elements.The script has a couple of C# scripts but I read on this forum that C# scripts do not work with Rhino 8? would this be the case? However, In a post from @sebastian.lindholm it mentioned the He fixed it in a latest version of the component and the link a couple of days ago.
I am using Live link V1.16 and Tekla Grasshopper component V1.4
If you’re using old scripting components from Rhino 7 then indeed those might not work with Rhino 8. The latest component WIP update tries to fix that, but still it apparently requires you to disable a certain dll manually from the Rhino install folder. See this thread for the latest updates:
If you’re only using the new Script component in Rhino 8 that should work fine, and then the problem is probably somewhere else.
To debug you can place some panels anywhere in the definition and give them the heading “Output”. That’ll make their content appear in the popup when you place a plugin in Tekla structures and you can compare it to what you would expect when run directly from Grasshopper. And/or generate some dummy beams or plates along lines in different places and check that they show up where you expect them to.
Quite often when you get invalid input notification while running the definition through the GH component it has to do with the coordinate system. If you have any absolute coordinates or levels in the definition (e.g. an XY plane component or Unit vector or Construct Point with absolute values), those will all be shifted according to the internal coordinate system of the plugin when placed with the GH component. And that might break the geometry if not intended.
You can convert between local and global coordinates using the “Get Coordinate System” component on the first input object/point. This will spit out the global and the local coordinate systems, which will be identical when run from GH directly but differ when run as a GH component. Then use the “Orient” component with these two coordinate systems as source and target to align any other geometry/points.
Thanks Sebastian!
BTW, I Enjoyed you presentation with Kriss, it actually made me start working with Rhino and Tekla.
Thank you so much for this.
Anyway, last night after closing Rhino, it installed an update so now I have Rhino 8.5.24072. And now the component works!. I do have this error when loading the component for the first time in Tekla.
after that, a window pops up from Tekla to report the incident. Once I closed it, Tekla stops responding for a few seconds and then everything works as intended. So I am not going to worry for this.
The first time you launch the component after a Rhino 8 install/update that popup is expected, after that it shouldn’t ask again as long as the GHPython.gha was renamed successfully.
Not sure why it causes a Tekla error report though, does that happen other times as well? If so, could you grab the TeklaStructures.crash.log from AppData\Local\Trimblel\Tekla Structures[version]l\Feedback and post it/pm (if that file has been generated)