Running a custom tool from a DockPanel

242
0
02-05-2022 08:34 PM
BerndtNording
New Contributor III

I want to put some custom maptools into a dockpanel addin. I have found how to do this and run it from an RelayCommand and it works using the little bit of code below, but I was wondering about the parameter that you can pass to the tool. Can this be anything? If so, how do I get at it from within my maptool?

 

      IPlugInWrapper pWrapper = FrameworkApplication.GetPlugInWrapper("PukaWai_GetFeatTool");
      if (pWrapper is ICommand toolCmd)
      {
       // toolCmd.Execute(null);
        toolCmd.Execute("parameter");
      }

 

0 Kudos
0 Replies