<?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: Adding RoomTag to Selected Viewports in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/adding-roomtag-to-selected-viewports/m-p/5915611#M69222</link>
    <description>&lt;P&gt;Haha yeah, we'll consider it earning some bonus points. &amp;nbsp;Thanks so much for your reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I understand the concept of what you are saying, and see how that can be a problem. &amp;nbsp;Do you think there is a solution to be had by activating each selected view programmatically, tagging the rooms while activated, and then deactivate? &amp;nbsp;Or do I run into the same theorical problems? &amp;nbsp;It would take a little longer presumably but at least could be done in a bulk action instead of multiple click-and-wait's that she has to perform currently.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, I appreciate the help coming up to speed on this.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Nov 2015 13:54:53 GMT</pubDate>
    <dc:creator>invisibleotis</dc:creator>
    <dc:date>2015-11-19T13:54:53Z</dc:date>
    <item>
      <title>Adding RoomTag to Selected Viewports</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/adding-roomtag-to-selected-viewports/m-p/5914933#M69220</link>
      <description>&lt;P&gt;My girlfriend (architect) asked me (software developer) to write a small add-in for her. &amp;nbsp;This is her goal:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have a sheet with multiple interior elevations. &amp;nbsp;Presently, I have to activate each elevation in order to place a room tag. &amp;nbsp;I would like to be able to highlight/select multiple elevations and tag them without activating each view.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to find some easily understable code segments to do the following:&lt;/P&gt;&lt;P&gt;- Get all of the rooms in a document, and tag them&lt;/P&gt;&lt;P&gt;- Get a list of selected elements&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I did get a list of selected elements using the UIDocument's Selection property, it returned all Viewport objects. &amp;nbsp;For instance, if I selected 3 of the interior elevations, I would get a list of 3 Viewports. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I couldn't seem to find a way to list the rooms specific to those viewports selected, in order to be able to tag them. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2015 02:15:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/adding-roomtag-to-selected-viewports/m-p/5914933#M69220</guid>
      <dc:creator>invisibleotis</dc:creator>
      <dc:date>2015-11-19T02:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Adding RoomTag to Selected Viewports</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/adding-roomtag-to-selected-viewports/m-p/5915058#M69221</link>
      <description>&lt;P&gt;You must realy love your girlfriend in order to program an add-in for her in Revit &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take a look at this post :&amp;nbsp;&lt;A href="http://forums.autodesk.com/t5/revit-api/retrieving-views-associated-with-an-element-id/m-p/5846070#M12125" target="_blank"&gt;http://forums.autodesk.com/t5/revit-api/retrieving-views-associated-with-an-element-id/m-p/5846070#M12125&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can read you can never be sure the selected rooms are actually visible in certain elevations. Further more, you have to do something with the room visiblitiy settings aswell, because by default room tags aren't shown in elevations and sections.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2015 06:37:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/adding-roomtag-to-selected-viewports/m-p/5915058#M69221</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-19T06:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Adding RoomTag to Selected Viewports</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/adding-roomtag-to-selected-viewports/m-p/5915611#M69222</link>
      <description>&lt;P&gt;Haha yeah, we'll consider it earning some bonus points. &amp;nbsp;Thanks so much for your reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I understand the concept of what you are saying, and see how that can be a problem. &amp;nbsp;Do you think there is a solution to be had by activating each selected view programmatically, tagging the rooms while activated, and then deactivate? &amp;nbsp;Or do I run into the same theorical problems? &amp;nbsp;It would take a little longer presumably but at least could be done in a bulk action instead of multiple click-and-wait's that she has to perform currently.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, I appreciate the help coming up to speed on this.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2015 13:54:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/adding-roomtag-to-selected-viewports/m-p/5915611#M69222</guid>
      <dc:creator>invisibleotis</dc:creator>
      <dc:date>2015-11-19T13:54:53Z</dc:date>
    </item>
  </channel>
</rss>

