<?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 Do Collections preserve ordering? in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/do-collections-preserve-ordering/m-p/9667723#M11096</link>
    <description>&lt;P&gt;Will a collection always keep the same order that items were added to it?&amp;nbsp; For example, if I have a sketch with three lines in it, will the SketchLines collection that holds them ALWAYS have the first line added as element 0, the second as 1, and the last as 2?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 01 Aug 2020 17:37:04 GMT</pubDate>
    <dc:creator>jeff_shattock</dc:creator>
    <dc:date>2020-08-01T17:37:04Z</dc:date>
    <item>
      <title>Do Collections preserve ordering?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/do-collections-preserve-ordering/m-p/9667723#M11096</link>
      <description>&lt;P&gt;Will a collection always keep the same order that items were added to it?&amp;nbsp; For example, if I have a sketch with three lines in it, will the SketchLines collection that holds them ALWAYS have the first line added as element 0, the second as 1, and the last as 2?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2020 17:37:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/do-collections-preserve-ordering/m-p/9667723#M11096</guid>
      <dc:creator>jeff_shattock</dc:creator>
      <dc:date>2020-08-01T17:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Do Collections preserve ordering?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/do-collections-preserve-ordering/m-p/9676189#M11097</link>
      <description>&lt;P&gt;Though Collection is like an array of objects but I do not think it is right to make assumption that you will get the elements from an API passed through a collection object always in same order.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 08:12:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/do-collections-preserve-ordering/m-p/9676189#M11097</guid>
      <dc:creator>goyals</dc:creator>
      <dc:date>2020-08-06T08:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Do Collections preserve ordering?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/do-collections-preserve-ordering/m-p/9678185#M11098</link>
      <description>&lt;P&gt;Shyam is correct, you should expect the contents of a collection to be in a particular order or even be returned consistently in the same order.&amp;nbsp; However, there are a few exceptions to this.&amp;nbsp; Getting the collection of TimelineObjects from the Timeline object will return the objects in the same order as they exist in the timeline.&amp;nbsp; Getting the Occurrence objects from a component will return them in the same order as they exist in the browser.&amp;nbsp; There are probably a handful of other examples like that but they're the exception to the rule.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 05:14:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/do-collections-preserve-ordering/m-p/9678185#M11098</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2020-08-07T05:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Do Collections preserve ordering?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/do-collections-preserve-ordering/m-p/9680609#M11099</link>
      <description>&lt;P&gt;It's not letting me edit my previous post, but I meant to say "y&lt;SPAN&gt;ou should &lt;U&gt;NOT&lt;/U&gt; expect the contents of a collection to be in a particular order".&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2020 17:36:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/do-collections-preserve-ordering/m-p/9680609#M11099</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2020-08-08T17:36:42Z</dc:date>
    </item>
  </channel>
</rss>

