<?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 How to pass parameters as inputs to BaseTool or BaseCommand from my main application in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-pass-parameters-as-inputs-to-basetool-or/m-p/237198#M6139</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hola/ Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on ArcObjects10.1 Engine in C# stand alone application (dont have a desktop license). I have a doubt which had been haunting me from several days. How do I pass inputs from my main application to some add-ins developed using BaseTool or BaseCommand. The issue I face is my main App. is in different class and the add-ins are different class, I can only add the basetool to my application through toolbar properties and adding the registered add-ins. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example if I want to develop a basetool for LineofSight Analysis tool and I want to pass an ISurface object or an IRasterLayer object which I already have in my application, to LineOfSight BaseTool. How do I do it ? Is there a way to pass parameters that can be caught in the constructor of the BaseTool. As far as I know we can get the Handle to mapControl object using Hooker object, apart from that any other parameters we need out of the main application I cant get.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently I am developing all those functionality in a normal button ( exactly the size of baseTool button size) with in my main application class and placing it on the toolbar which I dont think is a good alternative. Suggest me if there is a way to do this please.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pavan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 May 2014 11:15:53 GMT</pubDate>
    <dc:creator>Santosh_Pavan_KumarNukala</dc:creator>
    <dc:date>2014-05-06T11:15:53Z</dc:date>
    <item>
      <title>How to pass parameters as inputs to BaseTool or BaseCommand from my main application</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-pass-parameters-as-inputs-to-basetool-or/m-p/237198#M6139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hola/ Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on ArcObjects10.1 Engine in C# stand alone application (dont have a desktop license). I have a doubt which had been haunting me from several days. How do I pass inputs from my main application to some add-ins developed using BaseTool or BaseCommand. The issue I face is my main App. is in different class and the add-ins are different class, I can only add the basetool to my application through toolbar properties and adding the registered add-ins. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example if I want to develop a basetool for LineofSight Analysis tool and I want to pass an ISurface object or an IRasterLayer object which I already have in my application, to LineOfSight BaseTool. How do I do it ? Is there a way to pass parameters that can be caught in the constructor of the BaseTool. As far as I know we can get the Handle to mapControl object using Hooker object, apart from that any other parameters we need out of the main application I cant get.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently I am developing all those functionality in a normal button ( exactly the size of baseTool button size) with in my main application class and placing it on the toolbar which I dont think is a good alternative. Suggest me if there is a way to do this please.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pavan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 11:15:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-pass-parameters-as-inputs-to-basetool-or/m-p/237198#M6139</guid>
      <dc:creator>Santosh_Pavan_KumarNukala</dc:creator>
      <dc:date>2014-05-06T11:15:53Z</dc:date>
    </item>
  </channel>
</rss>

