Rhino Console Passing arguments

Hi! I am trying to use SplitMeshWithCurve command as script from C# plugin. But I can’t pass 2 parameters to it from my programm - mesh and curve - the command wants me to pick them with mouse. Is there any way to do it without mouse directly from command line?

Basically you can “simulate” a mouse click by selecting the corresponding object from code. Of course, you must know the ID of the mesh and the curve you want to use.

  1. RunScript(“SplitMeshWithCurve”, true)
  2. doc.Objects.Find(meshID).Select(true)
  3. doc.Objects.Find(curveID).Select(true)