/// <summary> /// Occurs when a new diagram is generated /// </summary> /// <param name="schematicDiagram">Schematic diagram just generated</param> void OnAfterGenerateDiagram(ISchematicDiagram schematicDiagram) { // Add user name before generate diagram name string userName = System.Environment.UserName; if (State == ESRI.ArcGIS.Desktop.AddIns.ExtensionState.Enabled) schematicDiagram.Name = userName + "_" + schematicDiagram.Name; }
/// <summary> /// Occurs when a new diagram is generated /// </summary> /// <param name="schematicDiagram">Schematic diagram just generated</param> void OnAfterGenerateDiagram(ISchematicDiagram schematicDiagram) { // Add user name before generate diagram name string userName = System.Environment.UserName; if (State == ESRI.ArcGIS.Desktop.AddIns.ExtensionState.Enabled) { schematicDiagram.Name = userName + "_" + schematicDiagram.Name; } }