<?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: Create views and group them together in tabs in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/create-views-and-group-them-together-in-tabs/m-p/9924651#M29880</link>
    <description>&lt;P&gt;I got somewhat forward.&lt;/P&gt;&lt;P&gt;Activating Views is through uiDoc.&lt;SPAN style="color: #191970; font-weight: bold;"&gt;RequestViewChange&lt;/SPAN&gt;(view) &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But the grouping of the tabs, especially the grouping and resizing of tabs is just a workaround, because I wanted to restore the last active session with all the viewwindow position and sizes. Now it's more a template for activating the views.&lt;/P&gt;&lt;P&gt;However, here is what I have done so far:&lt;/P&gt;&lt;P&gt;# First Macro&lt;/P&gt;&lt;P&gt;1. Create a List with the Names of the views I first want to open&lt;/P&gt;&lt;P&gt;2. Create a Dict with the above viewnames as keys and the viewnames I want to open in the same tab as values&lt;/P&gt;&lt;P&gt;3. Open the views from 1. and tile them through the postableCommand&lt;/P&gt;&lt;P&gt;# Second Macro&lt;/P&gt;&lt;P&gt;4. Iterate over all views, activate those from 1. again and by that I open the views which names stored as values in the Dict.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because the postableCommand is not excecuted until Revit gets the control back from Macro, I need those two macros.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Dec 2020 19:50:44 GMT</pubDate>
    <dc:creator>lutz.kaiser</dc:creator>
    <dc:date>2020-12-08T19:50:44Z</dc:date>
    <item>
      <title>Create views and group them together in tabs</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-views-and-group-them-together-in-tabs/m-p/9918818#M29879</link>
      <description>&lt;DIV class="post-message "&gt;&lt;DIV&gt;&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;I want to use a macro to open specific views. Let's&lt;BR /&gt;say the start view is Level 0 and I want to open Level 1 in a new tab&lt;BR /&gt;and add Level 2 to this newly created tab. At the end I should have two tabs: Tab 1&lt;BR /&gt;with Level 0 View and tab 2 with the views of Level 1 + 2.&lt;/P&gt;&lt;P&gt;But there is nothing like:&lt;/P&gt;&lt;P&gt;&lt;A title="View.open" href="http://disq.us/url?url=http%3A%2F%2FView.open%3AaQxdTVesry3p_f7KrGhPf7OE7hg&amp;amp;cuid=4460338" target="_blank" rel="nofollow noopener"&gt;View.open&lt;/A&gt;( new_tab = false, add_to_tabgroup = tab_nbr, *args)&lt;/P&gt;&lt;P&gt;in the UIDocument, in the Document or in the UIApp - so how can I do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the next step the size of the view-window should be changed (not of the zoom).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 06 Dec 2020 10:47:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-views-and-group-them-together-in-tabs/m-p/9918818#M29879</guid>
      <dc:creator>lutz.kaiser</dc:creator>
      <dc:date>2020-12-06T10:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create views and group them together in tabs</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-views-and-group-them-together-in-tabs/m-p/9924651#M29880</link>
      <description>&lt;P&gt;I got somewhat forward.&lt;/P&gt;&lt;P&gt;Activating Views is through uiDoc.&lt;SPAN style="color: #191970; font-weight: bold;"&gt;RequestViewChange&lt;/SPAN&gt;(view) &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But the grouping of the tabs, especially the grouping and resizing of tabs is just a workaround, because I wanted to restore the last active session with all the viewwindow position and sizes. Now it's more a template for activating the views.&lt;/P&gt;&lt;P&gt;However, here is what I have done so far:&lt;/P&gt;&lt;P&gt;# First Macro&lt;/P&gt;&lt;P&gt;1. Create a List with the Names of the views I first want to open&lt;/P&gt;&lt;P&gt;2. Create a Dict with the above viewnames as keys and the viewnames I want to open in the same tab as values&lt;/P&gt;&lt;P&gt;3. Open the views from 1. and tile them through the postableCommand&lt;/P&gt;&lt;P&gt;# Second Macro&lt;/P&gt;&lt;P&gt;4. Iterate over all views, activate those from 1. again and by that I open the views which names stored as values in the Dict.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because the postableCommand is not excecuted until Revit gets the control back from Macro, I need those two macros.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 19:50:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-views-and-group-them-together-in-tabs/m-p/9924651#M29880</guid>
      <dc:creator>lutz.kaiser</dc:creator>
      <dc:date>2020-12-08T19:50:44Z</dc:date>
    </item>
  </channel>
</rss>

