Versions: 10.0.1 - current
Product Availability: ArcFM Engine
This command may be used in ArcFM Engine applications, including ArcFM Viewer for ArcGIS Engine and Designer Staker. The Rotate command may be used to rotate point features.
This tool enables only when the user has editing capabilities. In ArcFM Viewer for ArcGIS Engine, this means you must have an Inspector extension or an inspection job started. In Designer Staker, you must have a stake job opened to enable this tool.
How to Implement:
- You may modify the code sample. This step is not required.
- Build the solution.
- Copy the DLL to the ArcFM Solution\bin directory.
- Next, you'll add the command to the user interface. Open the ArcFM Engine Administrator.
- Select the Layout and Licenses tab.
- Above the Loaded Components window, select ArcFM Viewer or Designer Staker (available in versions prior to 10.1.1) from the pull down menu, depending on the application to which you want to add the command.
- Click the Add button.
- Select the DLL you added to the ArcFM Solution\bin directory and click Open.
- You will be prompted to choose an option from the Commands list. Select StakerRotateTool and click Add.
The Rotate Features tool is added to the Loaded Components window. Click OK to close the ArcFM Engine Administrator.
How to Use:
- First you'll add the command to a toolbar. In Designer Staker (available in versions prior to 10.1.1) or ArcFM Viewer, select Tools > Customize.
- Select the Commands tab and choose the Developer Samples category.
- Drag the Rotate Features tool and drop it onto a toolbar. Click Close on the Customize window.
- Start an edit session. If you're using Designer Staker you will likely already have a stake job started. If you're using Inspector, you'll need to open an edit session.
- Select a single feature. You cannot rotate multiple features using this tool.
- Click the Rotate tool.
- Click and drag the feature on the map to rotate it.
All of the files shown below are required for the project to compile successfully.
|Rotate.sln||C# solution containing the Rotate command code sample|
|Rotate.csproj||C# project containing the code to generate a custom Rotate command object|
|AssemblyInfo.cs||Class module to support the command|
|StakerEditContextMenu.cs||Class module that adds the Rotate command to the context menu|
|StakerRotateTool.cs||Class module that contains the Rotate command|