Run Rhino without GUI

Hello,

I’d like to run Rhino without displaying any GUI from a batch file.
In particular I’d like to:

  1. run Rhino in background
  2. execute a command from the Rhino command line
  3. close Rhino

I found this documentation page Rhino - Running Rhino from the Command Line from witch I almost reached my goal using command:
"C:\Program Files\Rhino 7\System\Rhino.exe" /runscript="-myCommand -exit" Test-0001.3dm

The problem is that each time I run this command the system spends lot of time opening and closing the Rhino GUI, that is useless from my point of view.

I suspect using schemas could help but I’m not sure about that, and it is not clear to me how to use them.

Thanks in advance,
Alberto

Out of curiosity, what are you going to do with the files or what commands are you going to run?

1 Like

Hi Martin,
I developed a plugin capable to perform several analysis to the geometries contained into the Rhino document.
The command “myCommand”, is the one in charge to perform the required analysis and at the end it dumps the result on a .txt file.
I would like to create a regression test suit, which will run the command on different Rhino documents and will compare the results with the ground truth.
Of course my plugin is also capable to show the results on the Rhino GUI, but I don’t care about them during these type of test I’d like to automatise.

1 Like

Hi @margari,

You might consider running Rhino inside of your own console application.

– Dale

1 Like

We have a testing framework sample at the following location. If you need anything extra added to this sample, please let us know

1 Like