Many thanks for your suggestions and support so far. I already helped my a lot!
Two additional questions however that I still didn’t figure out:
1. After loading the script, the subroutine I would like to access again is not in the list of subroutines in memory. Only one subroutine of my rvb file seems to be available, while there were 5 subroutines… The other 4 are not visible as explained on http://4.rhino3d.com/5/rhinoscript/introduction/running_scripts.htm but should still be available. However, I was not yet able to access these:
there is a subroutine froMain that takes one argument. However, when trying to call it from C# like:
Rhino.RhinoApp.RunScript("-RunScript froMain 1 “, true)
Rhino.RhinoApp.RunScript(”-RunScript froMain “1” ", true)
Ik keep getting the error message "Wrong number of arguments or invalid property assignment: 'froMain’
While I am sure that froMain is defined and takes 1 argument… So I guess I still missed something. Could you point out what?
2. Objects defined in rhinoscript are still in memory after a run of my script (I can see this when clicking the debug button of the monkey editor when running my script for a second time, before the initialization subroutine is called.
Is there a way to access these variables and objects in memory still in memory in Rhinoscript from C#?
Many thanks in advance,