Hie,
I am a Noob with c# component in grashopper. I try to copy a code. Exist a way to change the public class that c# component offer?
Regards.
Hi John,
It looks like you’re trying to take code from a compiled component (where you write it in an external editor like Visual Studio and turn it into a .gha plugin).
Making scripts inside the Grasshopper script editor works a little differently - you don’t need to do things like inherit from GH_Component, or register the input parameters, as that is already handled for you by the script instance.
You may be able to just take the part inside the SolveInstance of the original code (skip the GetData parts, and set the Script Editor component input parameters to the same names as the variables used in the code).
Thanks so much. I am going check the code line to line. I have a problem because i need accord.net package but GH doesn´t found in spite of i paste the dll file in grasshopper component folder.
Regards.