Hello everyone! Could you help me with this issue in the C# Script in Rhino8? It works in the old version of C# Script, but there are problems in the new version of C# Script. Thank you very much.
unnamed.gh (12.2 KB)
Hello everyone! Could you help me with this issue in the C# Script in Rhino8? It works in the old version of C# Script, but there are problems in the new version of C# Script. Thank you very much.
Hi,
Edit: Forgot to upload GH file:
unnamed_script_RE.gh (13.8 KB)
There was a “this.” before the “Component
” which caused a compile error. I removed that.
I don’t know what data type you expect to have in the “events” input, but since it seemed to be of type double
in the old component, I made a new list ( “var events = new List< double >()
” ) for use inside the old code to make the list work with the events.Count
property (plus some error checking)
I also assigned a dummy value to the output “Value
” so as to make the component compile.
I couldn’t open your Script Component so I made a completly new C# component and copied the code from your old Script Component and applied the above fixes to that code.
If you hade made significant changes to the code, you may have to merge the new fixed code with the code in your Script Component (which I couldn’t open).
Hopefully you can open the new C# component which I added…
//Rolf
Alright, thank you for your response. I have already resolved this issue. The reason you couldn’t open this CSharp Script is because your Rhino8 version is too low, it’s not Rhino8.3 version.