Hello everyone,
I have some old GH definitons that used VB component. They seem to be not working on the new R9 BETA version. Is the old VB component deprecated or does my system have a problem?
Thank you in advance.
Hello everyone,
I have some old GH definitons that used VB component. They seem to be not working on the new R9 BETA version. Is the old VB component deprecated or does my system have a problem?
Thank you in advance.
Hi Erdem,
The VB component isn’t gone — Rhino 9 still ships the Grasshopper VB Script component. i checked in the latest BETA here and a fresh VB Script component loads and solves fine. What did change is the runtime: Rhino 9 runs .NET Core only, and VB components saved from older files can be the old version that can’t compile there anymore.
Lets try this first: open your definition, then in Grasshopper go to Solution > Upgrade Components… — that swaps the old VB components for the current ones.
If they still error after that, can you post a small example file and the exact error on the component? And what build are you running (Help > About)? Thanks!
Worth knowing for the longer term — the new scripting tools (the Rhino 8/9 Script Editor and Grasshopper 2) are C# and Python only, VB isn’t coming to those (https://mcneel.myjetbrains.com/youtrack/issue/RH-93034). So migrating your VB scripts to C#, or compiling them to a .gha as VB.NET against RhinoCommon, is a good plan at some point.
Hi Japhy,
Thank you for the reply! It seems like I already wrote them for the new Script Editor in Python. If I ever come across to one of my old definitions, I will try your suggestion and will let you know of the outcome. But now I understand why they didn’t work.
I also think it is a good practice to slowly migrate to the new components. Thank you for your response!