public static void OnUpdateAttributes(Rhino.DocObjects.RhinoModifyObjectAttributesEventArgs ea) { /* * if (ea.NewAttributes.LayerIndex == ea.OldAttributes.LayerIndex) * { * debug.alert("Layer did not change!"); * } * else if (ea.NewAttributes.LayerIndex != ea.OldAttributes.LayerIndex) * { * debug.alert("Layer changed to " + Rhino.RhinoDoc.ActiveDoc.Layers[ea.NewAttributes.LayerIndex].Name); * } */ string A00_Path = utils.file_structure.getPathFor("A00"); System.IO.File.WriteAllText(A00_Path, "1"); outbound.translate.attributes(ea); }
void OnModifyObjectAttributes(object sender, Rhino.DocObjects.RhinoModifyObjectAttributesEventArgs e) { processSignal(e.NewAttributes.Name); }