<?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: Loop Thru Sheets Via Display Order in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/loop-thru-sheets-via-display-order/m-p/2705805#M64948</link>
    <description>&lt;P&gt;The enumerator should iterate through the sheets in their natural order, which&lt;/P&gt;&lt;P&gt;is what the SSM displays them in.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the SSM to drag a sheet to a different position within its subset&lt;/P&gt;&lt;P&gt;(A110 - Fire Rating Plans in the screenshot), and that's the order it&lt;/P&gt;&lt;P&gt;appears in when my code iterates the sheets in the subset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG border="0" src="http://www.caddzone.com/SSMExplorer3.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jun 2010 19:52:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-06-30T19:52:20Z</dc:date>
    <item>
      <title>Loop Thru Sheets Via Display Order</title>
      <link>https://forums.autodesk.com/t5/net-forum/loop-thru-sheets-via-display-order/m-p/2705537#M64947</link>
      <description>&lt;PRE&gt;With the following code I can randomly loop through sheets in a dst file data base.  Is thare a way to loop through the sheets via their diplay order in the sheet set manager?  Ultimately I am looking to increment a custom property that is based on display order.&lt;/PRE&gt;&lt;PRE&gt;Thanks.&lt;/PRE&gt;&lt;PRE&gt;Chris&lt;/PRE&gt;&lt;PRE&gt;Private Sub LoopThruSheets(ByVal sheetSetDatabase As IAcSmDatabase)
        ' Get the objects in the sheet set
        Dim enumerator As IAcSmEnumPersist
        enumerator = sheetSetDatabase.GetEnumerator()

        ' Get the first object in the Enumerator
        Dim item As IAcSmPersist
        item = enumerator.Next()

        ' Step through all the objects in the sheet set
        Do While Not item Is Nothing
            Dim sheet As IAcSmSheet = Nothing

            ' Check to see if the object is a sheet
            If item.GetTypeName() = "AcSmSheet" Then
                sheet = item
                MsgBox(sheet.GetName.ToString)
            End If

            ' Get the next Sheet
            item = enumerator.Next()
        Loop
    End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2010 16:04:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/loop-thru-sheets-via-display-order/m-p/2705537#M64947</guid>
      <dc:creator>ChrisPicklesimer</dc:creator>
      <dc:date>2010-06-30T16:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Thru Sheets Via Display Order</title>
      <link>https://forums.autodesk.com/t5/net-forum/loop-thru-sheets-via-display-order/m-p/2705805#M64948</link>
      <description>&lt;P&gt;The enumerator should iterate through the sheets in their natural order, which&lt;/P&gt;&lt;P&gt;is what the SSM displays them in.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the SSM to drag a sheet to a different position within its subset&lt;/P&gt;&lt;P&gt;(A110 - Fire Rating Plans in the screenshot), and that's the order it&lt;/P&gt;&lt;P&gt;appears in when my code iterates the sheets in the subset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG border="0" src="http://www.caddzone.com/SSMExplorer3.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2010 19:52:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/loop-thru-sheets-via-display-order/m-p/2705805#M64948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-30T19:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Thru Sheets Via Display Order</title>
      <link>https://forums.autodesk.com/t5/net-forum/loop-thru-sheets-via-display-order/m-p/2705859#M64949</link>
      <description>&lt;P&gt;I have tried it multiple times but the iteration order does not seem to change for me even after I adjusted the odrer via the SSM.&amp;nbsp; Just out of curiousity, did you use the code I posted when you ran your test?&amp;nbsp; I tested using ACA 2008.&amp;nbsp; Would that make a difference?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2010 20:38:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/loop-thru-sheets-via-display-order/m-p/2705859#M64949</guid>
      <dc:creator>ChrisPicklesimer</dc:creator>
      <dc:date>2010-06-30T20:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Thru Sheets Via Display Order</title>
      <link>https://forums.autodesk.com/t5/net-forum/loop-thru-sheets-via-display-order/m-p/2705941#M64950</link>
      <description>&lt;P&gt;Are you closing and reopening the SheetSet before trying? If not,&lt;/P&gt;&lt;P&gt;that may be it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not using your code. The code that I use to populate the treeview&lt;/P&gt;&lt;P&gt;shown in the screenshot uses GetDirectlyOwnedObjects() rather the&lt;/P&gt;&lt;P&gt;iterators, which might also explain the difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using vanilla AutoCAD so I can't say for sure if ACA's variant of the&lt;/P&gt;&lt;P&gt;SSM is doing something differently.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2010 22:09:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/loop-thru-sheets-via-display-order/m-p/2705941#M64950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-30T22:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Thru Sheets Via Display Order</title>
      <link>https://forums.autodesk.com/t5/net-forum/loop-thru-sheets-via-display-order/m-p/2918434#M64951</link>
      <description>&lt;P&gt;How did you adjust the sheet order using the SSM?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2011 15:24:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/loop-thru-sheets-via-display-order/m-p/2918434#M64951</guid>
      <dc:creator>jshimkus</dc:creator>
      <dc:date>2011-02-16T15:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Thru Sheets Via Display Order</title>
      <link>https://forums.autodesk.com/t5/net-forum/loop-thru-sheets-via-display-order/m-p/2918802#M64952</link>
      <description>&lt;P&gt;I click on the sheet and drag into position.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2011 17:56:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/loop-thru-sheets-via-display-order/m-p/2918802#M64952</guid>
      <dc:creator>ChrisPicklesimer</dc:creator>
      <dc:date>2011-02-16T17:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Thru Sheets Via Display Order</title>
      <link>https://forums.autodesk.com/t5/net-forum/loop-thru-sheets-via-display-order/m-p/2918872#M64953</link>
      <description>&lt;P&gt;OK, I thought you had found a way to do it via code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2011 18:42:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/loop-thru-sheets-via-display-order/m-p/2918872#M64953</guid>
      <dc:creator>jshimkus</dc:creator>
      <dc:date>2011-02-16T18:42:24Z</dc:date>
    </item>
  </channel>
</rss>

