Using VisualArq Elemets in a Grasshopper C# Script


I´m try to use the VisualArq Elements in a C# in Grasshopper. I want to automatically export the Geometry via Script however right know I first need do use VisualArq Explode in order to get GeometryBase which I can use in the script. I can’t really figure out the API documentation on the VisualArq website. Are there maybe some examples how to deal with VisualArq Elements in a C# Script?

My script right now looks like that (basically from Junichiro Horikawa):

 private void RunScript(DataTree<GeometryBase> geometries, string filename, string directory, bool export, ref object A)
      var guids = new List<Guid>();

      for(int i = 0; i < geometries.BranchCount; i++){
        for(int n = 0; n < geometries.Branches[i].Count; n++){
          var geom = geometries.Branches[i][n];
          var guid = Rhino.RhinoDoc.ActiveDoc.Objects.Add(geom);


      string filepath = Path.Combine(directory, filename);
      string cmd = "_-Export " + "\"" + filepath + "\"" + " _Enter _Enter ";

      Rhino.RhinoApp.RunScript(cmd, false);
      Rhino.RhinoDoc.ActiveDoc.Objects.Delete(guids, true);

Hi @birkenholzstuhl

Unfortunately is not currently possible to access temporary (not baked yet) VisualARQ objects in a C# Script component inside a Grasshopper definition.