Version: 10.2.1c and 10.2.1c SP3 |
ArcFM Engine Overview > Application Framework Overview > Commands in ArcFM Engine Applications > Using ArcMap Tools in ArcFM Viewer |
Product Availability: ArcFM Viewer for ArcGIS Engine
If you have existing ITool or ICommand tools written in .NET, you may use them in ArcFM Viewer. All .dlls must be registerd using RegX.exe in the ArcFM Solution\Bin folder.
![]() |
The default transparent color for bitmap icons in ArcFM Viewer for ArcGIS Engine is magenta (RGB - 255, 0, 255). |
Add a <Command> tag to the <Commands> collection tag (see example below). Each custom command requires its own <Command> tag. If the <CommandManager> and/or <Commands> tags do not exist, they must be created (see sample below). Information about the available attributes appears on the Custom Commands and Controls page.
The key attribute in the <Command> tag must match the Value attribute in the second <Param> tag. These values must also match the key value set in the command's code.
.NET: Enter the fully qualified .NET type name. If the assembly is strongly named or placed in the GAC, the first <Param> tag requires Version, Culture, and PublicKeyToken attribute values.
XML Snippet for C# Command |
Copy Code
|
---|---|
<CommandManager mdiWindowMenuKey="" dockWindowMenuKey="" showFullMenusDelay="0" showToolTips="true"> <Commands> <Command key="DotNetCommand" type="Miner.Windows.ArcGIS.MapCommand, Miner.Windows.ArcGIS, Version=9.0.2.0, Culture=neutral, PublicKeyToken=0bbf99e30d318f01"> <CreateData> <Param type="System.String" value="DotNetCommandTest.TestCommand, DotNetCommandTest" /> <Param type="System.String" value=" DotNetCommand " /> </CreateData> </Command> </Commands> </CommandManager> |