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);
Best Regards,
Leon