<?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 Re: Execute Command From External in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/execute-command-from-external/m-p/162883#M4241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes it is possible.&amp;nbsp; I have done this for zooming to an extent.&amp;nbsp; I created an extension, defined a custom interface for my extension.&amp;nbsp; Implemented both IExtension and my custom interfaced on it.&amp;nbsp; Put the extents I wanted to zoom to as public properties on the extension (doubles.)&amp;nbsp; In my other project with the command, I reference the assembly with the extension.&amp;nbsp; Then from the application object, I get a reference to the custom extension running in the other ArcMap, cast it to my custom interface, set the properties (doubles.)&amp;nbsp; For literal values, that is fine, if you want to pass in objects (a layer for example,) you need to use an object factory to create the object in the ArcMap process space.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Mar 2013 11:44:08 GMT</pubDate>
    <dc:creator>AlexanderGray</dc:creator>
    <dc:date>2013-03-18T11:44:08Z</dc:date>
    <item>
      <title>Execute Command From External</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/execute-command-from-external/m-p/162882#M4240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I Created a&amp;nbsp; arc Map Command and Wrote some Code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I Opened Arc Map Programmatically using C# and Executed that Command from an External Application using&amp;nbsp; ICommandItem Concepts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Command is Executing fine.. But My requirement is to pass some parameters to that command from External Application.With that&amp;nbsp; Inputs taken from External Application, Command Will execute. Is it Possible??.. If Possible.. Suggest me the way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in Advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 07:17:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/execute-command-from-external/m-p/162882#M4240</guid>
      <dc:creator>ChaitanyaPeddinty</dc:creator>
      <dc:date>2013-03-18T07:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Command From External</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/execute-command-from-external/m-p/162883#M4241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes it is possible.&amp;nbsp; I have done this for zooming to an extent.&amp;nbsp; I created an extension, defined a custom interface for my extension.&amp;nbsp; Implemented both IExtension and my custom interfaced on it.&amp;nbsp; Put the extents I wanted to zoom to as public properties on the extension (doubles.)&amp;nbsp; In my other project with the command, I reference the assembly with the extension.&amp;nbsp; Then from the application object, I get a reference to the custom extension running in the other ArcMap, cast it to my custom interface, set the properties (doubles.)&amp;nbsp; For literal values, that is fine, if you want to pass in objects (a layer for example,) you need to use an object factory to create the object in the ArcMap process space.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 11:44:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/execute-command-from-external/m-p/162883#M4241</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2013-03-18T11:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Command From External</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/execute-command-from-external/m-p/162884#M4242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes it is possible.&amp;nbsp; I have done this for zooming to an extent.&amp;nbsp; I created an extension, defined a custom interface for my extension.&amp;nbsp; Implemented both IExtension and my custom interfaced on it.&amp;nbsp; Put the extents I wanted to zoom to as public properties on the extension (doubles.)&amp;nbsp; In my other project with the command, I reference the assembly with the extension.&amp;nbsp; Then from the application object, I get a reference to the custom extension running in the other ArcMap, cast it to my custom interface, set the properties (doubles.)&amp;nbsp; For literal values, that is fine, if you want to pass in objects (a layer for example,) you need to use an object factory to create the object in the ArcMap process space.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&amp;nbsp; Very Much for Ur response...... We Understood the concept, additonal to that we need some samples for reference. Can u please provide the samples (to define custom interface on Extension , and calling Extension from Other Project).......We are Missing &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;something even we followed the process what you suggested, that's why I am asking.... Please help me on this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 05:13:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/execute-command-from-external/m-p/162884#M4242</guid>
      <dc:creator>ChaitanyaPeddinty</dc:creator>
      <dc:date>2013-03-19T05:13:36Z</dc:date>
    </item>
  </channel>
</rss>

