<?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: Keeping a script active in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/keeping-a-script-active/m-p/7003555#M18352</link>
    <description>&lt;P&gt;Is there ways to stop the termination process for these side scripts, without disconnecting them from the execution event. The execution event is needed to run the code with it's sub-processes.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Apr 2017 18:22:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-04-07T18:22:18Z</dc:date>
    <item>
      <title>Keeping a script active</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/keeping-a-script-active/m-p/6995968#M18350</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question about what adsk.autoTerminate() capabilities are in a script.&lt;/P&gt;&lt;P&gt;I am working on running a script through an add-in. The script creates a new occurrence with a simple cube. However, right after running the script, the design disappears. I was thinking perhaps this command may help my design stay active for further integrations.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 23:02:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/keeping-a-script-active/m-p/6995968#M18350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-04T23:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping a script active</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/keeping-a-script-active/m-p/6996005#M18351</link>
      <description>&lt;P&gt;I'm curious how you're executing a script from an add-in. My only guess is that your somehow starting a script from the execute event of a command and that's terminating your command, which aborts anything that it's done so far.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 23:22:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/keeping-a-script-active/m-p/6996005#M18351</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2017-04-04T23:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping a script active</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/keeping-a-script-active/m-p/7003555#M18352</link>
      <description>&lt;P&gt;Is there ways to stop the termination process for these side scripts, without disconnecting them from the execution event. The execution event is needed to run the code with it's sub-processes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 18:22:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/keeping-a-script-active/m-p/7003555#M18352</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-07T18:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping a script active</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/keeping-a-script-active/m-p/7003585#M18353</link>
      <description>&lt;P&gt;I don't understand what your trying to do.&amp;nbsp; What do you mean by a "side script" and "disconnecting"?&amp;nbsp; How are you executing the scripts?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 18:39:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/keeping-a-script-active/m-p/7003585#M18353</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2017-04-07T18:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping a script active</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/keeping-a-script-active/m-p/7003649#M18354</link>
      <description>&lt;P&gt;I am working with a friend. And we are importing the script into the add-in with the simple 'import script' line. In our add-in we have CommandCreatedEvent, ExecuteCommandEvent, and InputChangedEvent. We connected the&amp;nbsp;CommandCreatedEvent to the other two events, and added some addBoolValueInput commands to create a GUI with buttons. In the InputChangedEvent we have :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 200px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/342537i801760A6599F01AE/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then outside the InputChangedEvent we have :&lt;/P&gt;&lt;P&gt;def place1():&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; try:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;script.run(context)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our script just creates a rectangular sketch. As soon as we run the add-in it does run the script and creates the sketch. However right after it creates it,it disappears but we want it to stay in the design.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 19:04:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/keeping-a-script-active/m-p/7003649#M18354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-07T19:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping a script active</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/keeping-a-script-active/m-p/7003974#M18355</link>
      <description>&lt;P&gt;What you're seeing is a result of how commands work. Whatever you do in events besides the execute event will be aborted. &amp;nbsp;The command framework is designed to collect a set of input and then create the single final result at execution. &amp;nbsp;However, we are enhancing the command functionality in the future in a way that I think you might be able to accomplish your desired affect, but not exactly in the same way as you're currently trying to do it. &amp;nbsp;These new enhancements should be out in the update at the end of May.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 22:52:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/keeping-a-script-active/m-p/7003974#M18355</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2017-04-07T22:52:54Z</dc:date>
    </item>
  </channel>
</rss>

