<?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 Changing Sheet Order of DWG with iLogic in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/changing-sheet-order-of-dwg-with-ilogic/m-p/10886049#M41339</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been banging my head on a wall repeatedly trying to figure out how to change the order of drawing sheets using iLogic. Our default drawing template currently has a page called "CONSTRUCTION CODE:4" as the last page of the drawing. I have written code that counts how many different design view representations the assembly has and creates part pages with appropriate formatting and views for each one (as well as adding a BOM Page). But, they come in as new pages lower on the list and I would prefer that the CONSTRUCTION CODE sheet stays as the last sheet. Obviously, the user could just drag the page to the correct location after running the code, but since it will have to be moved on every drawing, I would prefer to automate it if possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought initially that I could simply use a reorder-type command for the Sheets, but that doesn't seem to be an option from studying the database. From what I've read, it seems more likely that this Reorder should be used while treating the pages as Browser Nodes, but for the life of me I have not been able to get any version of code I've come up with to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or suggestions to point me in the right direction would be much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="schefb_0-1642456702316.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1012464iC8859318BCF7D544/image-size/medium?v=v2&amp;amp;px=400" role="button" title="schefb_0-1642456702316.png" alt="schefb_0-1642456702316.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jan 2022 21:58:44 GMT</pubDate>
    <dc:creator>schefb</dc:creator>
    <dc:date>2022-01-17T21:58:44Z</dc:date>
    <item>
      <title>Changing Sheet Order of DWG with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/changing-sheet-order-of-dwg-with-ilogic/m-p/10886049#M41339</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been banging my head on a wall repeatedly trying to figure out how to change the order of drawing sheets using iLogic. Our default drawing template currently has a page called "CONSTRUCTION CODE:4" as the last page of the drawing. I have written code that counts how many different design view representations the assembly has and creates part pages with appropriate formatting and views for each one (as well as adding a BOM Page). But, they come in as new pages lower on the list and I would prefer that the CONSTRUCTION CODE sheet stays as the last sheet. Obviously, the user could just drag the page to the correct location after running the code, but since it will have to be moved on every drawing, I would prefer to automate it if possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought initially that I could simply use a reorder-type command for the Sheets, but that doesn't seem to be an option from studying the database. From what I've read, it seems more likely that this Reorder should be used while treating the pages as Browser Nodes, but for the life of me I have not been able to get any version of code I've come up with to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or suggestions to point me in the right direction would be much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="schefb_0-1642456702316.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1012464iC8859318BCF7D544/image-size/medium?v=v2&amp;amp;px=400" role="button" title="schefb_0-1642456702316.png" alt="schefb_0-1642456702316.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 21:58:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/changing-sheet-order-of-dwg-with-ilogic/m-p/10886049#M41339</guid>
      <dc:creator>schefb</dc:creator>
      <dc:date>2022-01-17T21:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Sheet Order of DWG with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/changing-sheet-order-of-dwg-with-ilogic/m-p/10887214#M41340</link>
      <description>&lt;P&gt;You need to reorder BrowserNodes instead of sheets. This code snippet moves the active sheet to the end of sheets&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim drw As DrawingDocument = ThisDoc.Document
Dim pane As BrowserPane = drw.BrowserPanes.ActivePane

Dim lastSheetNode = pane.GetBrowserNodeFromObject(drw.Sheets(drw.Sheets.Count))
Dim activeSheetNode = pane.GetBrowserNodeFromObject(drw.ActiveSheet)
Call pane.Reorder(lastSheetNode, False, activeSheetNode)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 10:28:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/changing-sheet-order-of-dwg-with-ilogic/m-p/10887214#M41340</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2022-01-18T10:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Sheet Order of DWG with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/changing-sheet-order-of-dwg-with-ilogic/m-p/10888261#M41341</link>
      <description>&lt;P&gt;That's perfect, thank you! I added a line to activate the "CONSTRUCTION CODE" sheet before executing the move so that it would not matter which sheet was active, but it does exactly what I needed and I understand now why my code was wrong. Thanks again!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 17:25:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/changing-sheet-order-of-dwg-with-ilogic/m-p/10888261#M41341</guid>
      <dc:creator>schefb</dc:creator>
      <dc:date>2022-01-18T17:25:00Z</dc:date>
    </item>
  </channel>
</rss>

