Hi all,
referring to this: Rhino Command Export in C#
With something as short as this:
export.gh (2.7 KB)
I want to export an already selected geometry to a .dxf file.
If no geometry is selected, it doesn’t do anything… correctly.
If a geometry is selected, it is being exported as intended to the correct path, but after that grasshopper UI no longer detects mouse clicks (but you can still zoom in/out with the wheel).
(I was trying to make a fast simple bake-and-export to export from gh to file … this is the pin-pointed problem)
Any idea for a fast solution that doesn’t involve plug-ins?
A way to “restart” or refresh Grasshopper UI to fix the problem?
Code:
private void RunScript(bool x, ref object A)
{
if(x){
string command = "-_Export \"C:\\test\\test.dxf\" _Enter";
RhinoApp.RunScript(command, false);
}
}