ArcFM Engine Developer Guide
Button Command: Map Refresh

Resource Center Home

Product Availability: ArcFM Engine

The button command created in this code sample refreshes the data view when clicked. The button used in this code sample looks like this:

Developer Sample: Developer Samples\Custom Commands\C# - Custom Commands\Map Refresh

How to Implement:

  1. You may modify the code sample. This step is not required.
  2. Build the solution.
  3. Copy the DLL to the ArcFM Solution\bin directory.
  4. Open the ArcFM  Engine Administrator and select the Layout and Licenses tab.
  5. Click the Commands node in the tree at the left, then click the Add button next to the Loaded Components column.
  6. Browse to the DLL you just compiled (e.g., ArcFMViewerEngineMapRefresh.dll) and click Open.
  7. Select DevMapRefreshCommand from the list of commands. Click Add.
  8. Click OK in the ArcFM Engine Administrator.

 

How to Use:

  1. First you'll add the command to a toolbar. In ArcFM Viewer for ArcGIS Engine, select Tools > Customize.
  2. Select the Commands tab and choose the ArcFM Developer Samples category.
  3. Drag the Dev: Refresh Map tool and drop it onto a toolbar. Click Close on the Customize window.
  4. Click the Dev: Refresh Map tool to refresh the data view. You must have a stored display open in order for the tool to be enabled.

 

Additional Information:

Requires:

All of the files shown below are required for the project to compile successfully. Download these files from the ArcFM Solution Resource Center here.

File

Description

ArcFMViewerEngineMapRefresh.sln

C# solution containing the button command code sample for ArcFM Viewer for ArcGIS Engine

ArcFMViewerEngineMapRefresh.csproj

C# project containing the code to generate a custom button command object

AssemblyInfo.cs

Class module to support the command

DevMapRefreshCommand.cs
  (view code)

Class module that contains the button command code

The following reference files are required for the project to compile successfully.

Esri.ArcGIS.Carto

Esri.ArcGIS.System

Miner.Windows

Miner.Windows.ArcGIS

System.Drawing

System.Windows.Forms

 

 

 

 


Send Comment to ArcFMdocumentation@schneider-electric.com