Enforcing schematic diagram name


Purpose
This sample, developed as an add-in ArcMap extension, shows how to automatically prefix a diagram name with the user name generating the diagram.

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Build the solution in Visual Studio.
  2. Start ArcMap.
  3. Click Customize and click Extensions. The Extensions dialog box opens.
  4. Check the Enforcing Diagram Name extension in the language you're using (VB .NET or C#), then close the Extensions dialog box.
  5. Generate a new schematic diagram. The generated diagram is prefixed by the user name.

EnforcingDiagramName.cs Extension handling event AfterGenerateDiagram to prefix the diagram name.
Config.esriaddinx Add-in declarations in XML.
Download the C# files
EnforcingDiagramName.vb Extension handling event AfterGenerateDiagram to prefix the diagram name.
Config.esriaddinx Add-in declarations in XML.
Download the VB.NET files

Download the files for all languages




Development licensing Deployment licensing
ArcView: Schematics ArcView: Schematics
ArcEditor: Schematics ArcEditor: Schematics
ArcInfo: Schematics ArcInfo: Schematics