Volvox integration

Feel free to ask any question here
Leon
Posts: 1
Joined: Wed Aug 12, 2020 11:08 am

Re: Volvox integration

Post by Leon »

Dear Gilly,
i found a few minutes ago, an easy workaround for this problem.

Just create a custom c# component in Grasshopper and start the command prompt from there.

bool button is of course a input variable

Code: Select all

    if (!button)
    {
      return;
    }

    var startInfo = new System.Diagnostics.ProcessStartInfo
      {
        WorkingDirectory = @"C:\Program Files\CloudCompare",
        WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal,
        FileName = "cmd.exe",
        RedirectStandardInput = true,
        UseShellExecute = false,
        Arguments = @"/c CloudCompare -SILENT -O C:\HEREFILENAME.ply"
        };

    System.Diagnostics.Process.Start(startInfo);
It should work now.

Best Regards,
Leon
Post Reply