<?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 Is it safe to have only a CommandCreated handler? in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/is-it-safe-to-have-only-a-commandcreated-handler/m-p/8874639#M13962</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it safe to do things in the CommandCreated handler instead of installing&lt;/P&gt;&lt;P&gt;an Execute handler and doing it there?&amp;nbsp; &amp;nbsp;I imagine the transaction stuff gets&lt;/P&gt;&lt;P&gt;bypassed but for simple things is it safe?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;class HomePoseCommandCreatedHandler(adsk.core.CommandCreatedEventHandler):
    def __init__(self):
        super().__init__()              
    def notify(self, args):&lt;BR /&gt;        # do simple command here instead of installing Execute handler
        move_to_home_pose()&lt;/PRE&gt;</description>
    <pubDate>Wed, 26 Jun 2019 19:23:21 GMT</pubDate>
    <dc:creator>quality5B59E</dc:creator>
    <dc:date>2019-06-26T19:23:21Z</dc:date>
    <item>
      <title>Is it safe to have only a CommandCreated handler?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/is-it-safe-to-have-only-a-commandcreated-handler/m-p/8874639#M13962</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it safe to do things in the CommandCreated handler instead of installing&lt;/P&gt;&lt;P&gt;an Execute handler and doing it there?&amp;nbsp; &amp;nbsp;I imagine the transaction stuff gets&lt;/P&gt;&lt;P&gt;bypassed but for simple things is it safe?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;class HomePoseCommandCreatedHandler(adsk.core.CommandCreatedEventHandler):
    def __init__(self):
        super().__init__()              
    def notify(self, args):&lt;BR /&gt;        # do simple command here instead of installing Execute handler
        move_to_home_pose()&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Jun 2019 19:23:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/is-it-safe-to-have-only-a-commandcreated-handler/m-p/8874639#M13962</guid>
      <dc:creator>quality5B59E</dc:creator>
      <dc:date>2019-06-26T19:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is it safe to have only a CommandCreated handler?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/is-it-safe-to-have-only-a-commandcreated-handler/m-p/8880690#M13963</link>
      <description>&lt;P&gt;I do not think it is mandatory to have a commandExecuteHandler. Please take a look at this example&amp;nbsp;&lt;A href="http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-e5c4dbe8-ee48-11e4-9823-f8b156d7cd97" target="_blank"&gt;http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-e5c4dbe8-ee48-11e4-9823-f8b156d7cd97&lt;/A&gt; but as you already mentioned the things done as part of command would not be persisted.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jun 2019 09:26:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/is-it-safe-to-have-only-a-commandcreated-handler/m-p/8880690#M13963</guid>
      <dc:creator>goyals</dc:creator>
      <dc:date>2019-06-29T09:26:26Z</dc:date>
    </item>
  </channel>
</rss>

