<?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: Persistent (across sessions) object ids in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/persistent-across-sessions-object-ids/m-p/8848691#M14021</link>
    <description>&lt;P&gt;Yes, they certainly persist.&amp;nbsp; They would be fairly useless otherwise.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2019 03:32:26 GMT</pubDate>
    <dc:creator>BrianEkins</dc:creator>
    <dc:date>2019-06-13T03:32:26Z</dc:date>
    <item>
      <title>Persistent (across sessions) object ids</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/persistent-across-sessions-object-ids/m-p/8846300#M14018</link>
      <description>&lt;P&gt;In my addin I would like the user to be able to select curves, points etc and then the addin creates a little program. &amp;nbsp;I would then like to save the program into a file (or preferably into the fusion document itself as an attribute perhaps).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The main problem is that I need some sort of identifier associated with the selected entities that persists across sessions. &amp;nbsp;When the file is opened again in the future and the addin starts up, I would like to recreate the program and to do so I need to find the entities the user selected previously.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There does not seem to be a way to name SketchCurves so I can find them again and there does not seem to be a persistent uniqueID I could use instead?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One great method might be to change Fusion so that *all* attributes (even those associated with entities) get saved to the fusion document and recreated when the document is opened again. &amp;nbsp;It would be easy then to search through the design and entity attributes and recreate my program! &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Addins could save their configurations to design level attributes too ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Persistent unique IDs would do the job too albeit with less kewl factor? &amp;nbsp;Maybe the Base class has a uniqueID property that is persistent across sessions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 06:28:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/persistent-across-sessions-object-ids/m-p/8846300#M14018</guid>
      <dc:creator>quality5B59E</dc:creator>
      <dc:date>2019-06-12T06:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Persistent (across sessions) object ids</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/persistent-across-sessions-object-ids/m-p/8848675#M14019</link>
      <description>&lt;P&gt;What you can do today is to add an attribute to the entity you want to find later.&amp;nbsp; You're essentially using attributes as a way to name an entity.&amp;nbsp; Attributes also have the advantage that you can query for them instead of having to search every entity to see if it has an attribute you're looking for.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 03:16:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/persistent-across-sessions-object-ids/m-p/8848675#M14019</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2019-06-13T03:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Persistent (across sessions) object ids</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/persistent-across-sessions-object-ids/m-p/8848683#M14020</link>
      <description>&lt;P&gt;Do attributes get saved into the fusion document across sessions? &amp;nbsp;In otherwords, if I save my design and exit from fusion and another day start fusion again and open the document, the attributes are still there?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so, that’s great! &amp;nbsp;The doc doesn’t mention that they persist!&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 03:22:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/persistent-across-sessions-object-ids/m-p/8848683#M14020</guid>
      <dc:creator>quality5B59E</dc:creator>
      <dc:date>2019-06-13T03:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Persistent (across sessions) object ids</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/persistent-across-sessions-object-ids/m-p/8848691#M14021</link>
      <description>&lt;P&gt;Yes, they certainly persist.&amp;nbsp; They would be fairly useless otherwise.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 03:32:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/persistent-across-sessions-object-ids/m-p/8848691#M14021</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2019-06-13T03:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Persistent (across sessions) object ids</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/persistent-across-sessions-object-ids/m-p/8848729#M14022</link>
      <description>&lt;P&gt;Great! Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 04:49:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/persistent-across-sessions-object-ids/m-p/8848729#M14022</guid>
      <dc:creator>quality5B59E</dc:creator>
      <dc:date>2019-06-13T04:49:16Z</dc:date>
    </item>
  </channel>
</rss>

