<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Setting a checkbox in add-in from a different add-in. in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/setting-a-checkbox-in-add-in-from-a-different-add/m-p/568080#M15305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I currently have a main application which in an add-in.&amp;nbsp; In this main application is a dockable window with multiple checkboxes which turn on various layers.&amp;nbsp; I have other add-ins that the user can load that are basically toolbars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on what is launched on the tool bar(s) the checkboxes can be turned on or off on the dockable window on the main application (add-in).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to do this I have a reference set in the tool bar add-ins to the .dll of the main add-in.&amp;nbsp; All this works fine, using the functions on the toolbars I can turn on and off the layers on the map by setting the checkboxes on the dockable window of the main application from the different add-ins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is:&amp;nbsp; Is there a different way to do the same thing (link-reference-communicate) between add-ins without needing to set a reference as it is currently done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time.&amp;nbsp; Dale,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2016 21:05:39 GMT</pubDate>
    <dc:creator>DaleShearer</dc:creator>
    <dc:date>2016-07-27T21:05:39Z</dc:date>
    <item>
      <title>Setting a checkbox in add-in from a different add-in.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/setting-a-checkbox-in-add-in-from-a-different-add/m-p/568080#M15305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I currently have a main application which in an add-in.&amp;nbsp; In this main application is a dockable window with multiple checkboxes which turn on various layers.&amp;nbsp; I have other add-ins that the user can load that are basically toolbars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on what is launched on the tool bar(s) the checkboxes can be turned on or off on the dockable window on the main application (add-in).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to do this I have a reference set in the tool bar add-ins to the .dll of the main add-in.&amp;nbsp; All this works fine, using the functions on the toolbars I can turn on and off the layers on the map by setting the checkboxes on the dockable window of the main application from the different add-ins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is:&amp;nbsp; Is there a different way to do the same thing (link-reference-communicate) between add-ins without needing to set a reference as it is currently done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time.&amp;nbsp; Dale,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 21:05:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/setting-a-checkbox-in-add-in-from-a-different-add/m-p/568080#M15305</guid>
      <dc:creator>DaleShearer</dc:creator>
      <dc:date>2016-07-27T21:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a checkbox in add-in from a different add-in.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/setting-a-checkbox-in-add-in-from-a-different-add/m-p/568081#M15306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am one step closer.&amp;nbsp; I am able to access the Dockable Window in my ArcMap application which contains the checkbox that I am wanting to turn on or off from my Add-in, without having to have a reference to the ArcMap application (Add-in)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While I can now show, reset the caption, move the Dockable Window, I cannot get ahold of the controls within the Dockable Window (textboxes, checkboxes, etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So any ideas as to how I can do this?&amp;nbsp; Or how can I access a public variable within the ArcMap application from the Add-in?&amp;nbsp; I am trying to approach this a different way as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code that is in my Add-in to hook/connect/link to the main application which contains the Dockable Window (FeaturesDockWin is the name of the Dockable Window).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim docWinMgr As IDockableWindowManager = CType(My.ArcMap.Application, IDockableWindowManager)&lt;/P&gt;&lt;P&gt;Dim attributeWindow As IDockableWindow&lt;/P&gt;&lt;P&gt;Dim attributeWindowID As UID = New UIDClass()&lt;/P&gt;&lt;P&gt;attributeWindowID.Value = ("MC_GIS10_FeaturesDockWin")&lt;/P&gt;&lt;P&gt;attributeWindow = docWinMgr.GetDockableWindow(attributeWindowID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trick to all this is the attributeWindowID.Value which took me a while to figure out.&amp;nbsp; It is the DockableWindow id from the main ArcMap Application I am trying to hook/connect/link to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to the application you are trying to hook/connect/link to (must have a Dockable Window), go to Config.esriaddinx.&lt;/P&gt;&lt;P&gt;There you will find the Dockable Window id, once I plugged it in, onto the next problem!!!!&lt;/P&gt;&lt;P&gt;&amp;lt;DockableWindows&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DockableWindow id="MC_GIS10_FeaturesDockWin" class="FeaturesDockWin+AddinImpl" caption="Features" image="Images\FeaturesDockWin.png"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;InitialPlacement height="498" width="194" state="pinned" position="left" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/DockableWindow&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/DockableWindows&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 21:19:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/setting-a-checkbox-in-add-in-from-a-different-add/m-p/568081#M15306</guid>
      <dc:creator>DaleShearer</dc:creator>
      <dc:date>2016-07-29T21:19:36Z</dc:date>
    </item>
  </channel>
</rss>

