public void DeselectObjects(Object e, Rhino.DocObjects.RhinoObjectSelectionEventArgs arg) { if (!inputLock && respondToSelection) { bool expire = false; string key = "Leopard(" + this.InstanceGuid + ")"; //selectedObjects.Clear(); Rhino.DocObjects.RhinoObject[] obj = arg.RhinoObjects; GH_Structure <IGH_GeometricGoo> tree = new GH_Structure <IGH_GeometricGoo>(); foreach (Rhino.DocObjects.RhinoObject o in obj) { string val = o.Attributes.GetUserString(key); if (!string.IsNullOrEmpty(val)) { //RhinoApp.WriteLine(string.Format("{0}: {1}", key, val)); storedPath.Remove(val); expire = true; } } if (expire) { ForceExpireSolution(true, false); } } }
public void SelectObjects(Object e, Rhino.DocObjects.RhinoObjectSelectionEventArgs arg) { if (!inputLock && respondToSelection) { bool expire = false; string key = "Leopard(" + this.InstanceGuid + ")"; //selectedObjects.Clear(); Rhino.DocObjects.RhinoObject[] obj = arg.RhinoObjects; GH_Structure <IGH_GeometricGoo> tree = new GH_Structure <IGH_GeometricGoo>(); foreach (Rhino.DocObjects.RhinoObject o in obj) { string val = o.Attributes.GetUserString(key); if (!string.IsNullOrEmpty(val)) { storedPath.Add(val); expire = true; } } if (expire) //if storePath changes, update the output parameters { ForceExpireSolution(true, false); } } }