<?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 Built-In Command in ArcMap using Python Add-Ins Extension Event? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/execute-built-in-command-in-arcmap-using-python/m-p/217749#M16752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks James -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately at the moment I have no exposure/skill in the .NET ecosystem, or any of its languages. I agree this type of requirement begs for a .NET approach, and someday soon I may need to just learn something solid about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may be a bit esoteric or out-on-a-limb, but would you think something like &lt;A href="http://www.pierssen.com/arcgis10/python.htm"&gt;Mark Cederholm's&lt;/A&gt; usage of &lt;A href="https://pypi.python.org/pypi/comtypes"&gt;comtypes&lt;/A&gt; could help solve this problem in a python-addins-only way? &lt;A href="https://community.esri.com/migrated-users/3016"&gt;Jason Scheirer&lt;/A&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Feb 2016 16:37:21 GMT</pubDate>
    <dc:creator>JamesAnderson5</dc:creator>
    <dc:date>2016-02-12T16:37:21Z</dc:date>
    <item>
      <title>Execute Built-In Command in ArcMap using Python Add-Ins Extension Event?</title>
      <link>https://community.esri.com/t5/python-questions/execute-built-in-command-in-arcmap-using-python/m-p/217747#M16750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ESRI Geonet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is a re-post of my &lt;A href="http://gis.stackexchange.com/questions/180460/execute-built-in-command-in-arcmap-using-python-add-ins-extension-event"&gt;gis stack exchange question&lt;/A&gt;​ bearing the same title. Any help or suggestion here is greatly appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to execute an ArcMap built-in command programmatically, using the Python Add-ins framework?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can ArcMap built-in commands be exposed to and executed using the event methods found in the Python Add-ins &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/guide-books/python-addins/extension-class.htm"&gt;Extension&lt;/A&gt; class? For example, I would like to open the &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/editing-attributes/about-editing-attributes.htm"&gt;attribute editing window&lt;/A&gt; upon triggering the &lt;EM&gt;onCreateFeature(self)&lt;/EM&gt; method of my &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/guide-books/python-addins/extension-class.htm"&gt;Extension&lt;/A&gt; class. Is it possible to automate window/menu opening using this approach?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Backstory:&lt;/STRONG&gt; I am constructing a &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/guide-books/python-addins/what-is-a-python-add-in.htm"&gt;Python Add-in&lt;/A&gt; for ArcMap 10.3. According to &lt;A href="https://blogs.esri.com/esri/arcgis/2012/08/27/python-add-ins-how-to-add-built-in-commands-to-your-custom-toolbar-or-menu/"&gt;this ESRI blog post&lt;/A&gt;, ArcMap’s built-in commands and tools (not referring to the geoprocessing tools, but to interactive tools like &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/creating-new-features/creating-segments-by-tracing-features.htm"&gt;trace&lt;/A&gt;) can be added to Python Add-in &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/guide-books/python-addins/creating-an-add-in-toolbar.htm"&gt;toolbars&lt;/A&gt;, by referencing their respective &lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//00010000029s000000"&gt;GUIDs&lt;/A&gt; in the config.xml file associated with the Python Add-in project. Unfortunately from what I have found so far, tools/commands added this way do not appear to be exposed to the rest of the Python Add-ins framework at this time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I approaching this problem the wrong way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 16:21:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/execute-built-in-command-in-arcmap-using-python/m-p/217747#M16750</guid>
      <dc:creator>JamesAnderson5</dc:creator>
      <dc:date>2016-02-12T16:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Built-In Command in ArcMap using Python Add-Ins Extension Event?</title>
      <link>https://community.esri.com/t5/python-questions/execute-built-in-command-in-arcmap-using-python/m-p/217748#M16751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds more like a need to develop a .NET add-in rather than python.&amp;nbsp; In my experience, python is more useful/in-line with Geoprocessing than it is manipulating ArcObjects and other UI components to ArcGIS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 16:26:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/execute-built-in-command-in-arcmap-using-python/m-p/217748#M16751</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2016-02-12T16:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Built-In Command in ArcMap using Python Add-Ins Extension Event?</title>
      <link>https://community.esri.com/t5/python-questions/execute-built-in-command-in-arcmap-using-python/m-p/217749#M16752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks James -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately at the moment I have no exposure/skill in the .NET ecosystem, or any of its languages. I agree this type of requirement begs for a .NET approach, and someday soon I may need to just learn something solid about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may be a bit esoteric or out-on-a-limb, but would you think something like &lt;A href="http://www.pierssen.com/arcgis10/python.htm"&gt;Mark Cederholm's&lt;/A&gt; usage of &lt;A href="https://pypi.python.org/pypi/comtypes"&gt;comtypes&lt;/A&gt; could help solve this problem in a python-addins-only way? &lt;A href="https://community.esri.com/migrated-users/3016"&gt;Jason Scheirer&lt;/A&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 16:37:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/execute-built-in-command-in-arcmap-using-python/m-p/217749#M16752</guid>
      <dc:creator>JamesAnderson5</dc:creator>
      <dc:date>2016-02-12T16:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Built-In Command in ArcMap using Python Add-Ins Extension Event?</title>
      <link>https://community.esri.com/t5/python-questions/execute-built-in-command-in-arcmap-using-python/m-p/217750#M16753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Unfortunately at the moment I have no exposure/skill in the .NET ecosystem, or any of its languages. I agree this type of requirement begs for a .NET approach, and someday soon I may need to just learn something solid about it.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All of the information required to learn it is out there.&amp;nbsp; For free.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 16:53:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/execute-built-in-command-in-arcmap-using-python/m-p/217750#M16753</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2016-02-12T16:53:33Z</dc:date>
    </item>
  </channel>
</rss>

