Beispiel #1
0
        public override void SetData(IGH_DataAccess DA)
        {
            if (outputDict == null)
            {
                return;
            }
            foreach (var key in outputDict.Keys)
            {
                var indexOfOutputParam = Params.IndexOfOutputParam(key);
                if (indexOfOutputParam != -1)
                {
                    var ghStructure = outputDict[key];
                    DA.SetDataTree(indexOfOutputParam, ghStructure);
                }
            }

            // Report all conversion errors as warnings
            if (Converter != null)
            {
                foreach (var error in Converter.ConversionErrors)
                {
                    Parent.AddRuntimeMessage(GH_RuntimeMessageLevel.Warning,
                                             error.Message + ": " + error.InnerException?.Message);
                }
                Converter.ConversionErrors.Clear();
            }
            outputDict = null;
            (Parent as ExpandSpeckleObjectAsync).State = 0;
        }
        public override void SetData(IGH_DataAccess DA)
        {
            if (outputDict == null)
            {
                return;
            }

            foreach (var key in outputDict.Keys)
            {
                DA.SetDataTree(Params.IndexOfOutputParam(key), outputDict[key]);
            }
        }
Beispiel #3
0
 public override void SetData(IGH_DataAccess DA)
 {
     if (outputDict == null)
     {
         return;
     }
     foreach (var key in outputDict.Keys)
     {
         DA.SetDataTree(Params.IndexOfOutputParam(key), outputDict[key]);
     }
     outputDict = null;
     (Parent as ExpandSpeckleObjectAsync).State = 0;
 }