generative modeling for Rhino
Hello all,
I was testing some command line functionality and disabling view port redrawing in a c# component. After I run the script, I am not able to activate anything on the Grasshopper Canvas. I can zoom, save the file, etc, but I cannot actually pan or do anything with the mouse clicks on the canvas. I can also add component and hover over inputs, outputs, etc and get tooltips, but no ability to connect components, get into script components, etc.
If I unload GH, and run it again, everything returns to normal.
Here is the script:
private void RunScript(bool go, List<Point3d> pts, ref object A)
{
if(go)
{
Rhino.Display.RhinoView.EnableDrawing = false;
foreach(Point3d pt in pts){
Rhino.RhinoApp.RunScript("_-Point " + pt.X + "," + pt.Y + "," + pt.Z + " ", false);
}
Rhino.Display.RhinoView.EnableDrawing = true;
}
}
Can anyone replicate this? File is attached below.
Permalink Reply by Vicente Soler on August 9, 2012 at 6:47am I can't reproduce it. Canvas works as expected after disabling viewport redraw in my computer.
Permalink Reply by Luis Fraguada on August 9, 2012 at 7:21am Ok, thanks for checking...

I can't repeat it either. Is this Rhino4, Rhino5 or both?
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Permalink Reply by Luis Fraguada on August 10, 2012 at 6:56am hi luis,
did you solve the problem? I reproduced the same behavior of the canvas. Even with this simple line command its the same. Somehow it disables all click events on the canvas.
private void RunScript(bool run)
{
if(run)
if(RhinoApp.RunScript("!_Line", true))
RhinoApp.WriteLine("line command done");
}
Tested on two machines with different Environment R4/R5 x64 GH 9.0014 / 9.0006
No chance to get it properly working. Strange thing is, that on every second run of the script above its working fine...every other its doing the same as you described.
© 2013 Created by Scott Davidson.
Powered by