<?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: Placing a View Reference in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/placing-a-view-reference/m-p/11718556#M14146</link>
    <description>&lt;P&gt;Thank you for checking. I would have been surprised. Funny how it spouts such credible unreliable stuff. Very human &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ok, so, as a next step up, I &lt;A href="https://autodesk.slack.com/archives/C0SR6NAP8/p1675171465954799" target="_blank"&gt;asked&lt;/A&gt; the development team for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2023 13:27:28 GMT</pubDate>
    <dc:creator>jeremy_tammik</dc:creator>
    <dc:date>2023-01-31T13:27:28Z</dc:date>
    <item>
      <title>Placing a View Reference</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/placing-a-view-reference/m-p/11717917#M14143</link>
      <description>&lt;P&gt;I'd like to place several View References (View &amp;gt; Sheet Composition &amp;gt; View Reference)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Snooping a view reference gives me the feeling I'm not able to do so.&lt;/P&gt;&lt;P&gt;also reading about the difference between familysymbol and elementtype points me to the same conclusion.&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/difference-between-familysymbol-and-elementtype/td-p/8461805" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/difference-between-familysymbol-and-elementtype/td-p/8461805&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;View Reference is a system family, thus has no FamilySymbol.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefor&amp;nbsp;NewFamilyInstance(XYZ, FamilySymbol, View) won't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But am I wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 08:15:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/placing-a-view-reference/m-p/11717917#M14143</guid>
      <dc:creator>Joris.vd.Meulen</dc:creator>
      <dc:date>2023-01-31T08:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Placing a View Reference</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/placing-a-view-reference/m-p/11718415#M14144</link>
      <description>&lt;P&gt;Dear Joris,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I asked ChatGPT for you, see below. The answer makes sense and looks perfectly valid. Can you please verify and confirm? If this works, I am out of a job soon &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;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;U&gt;jeremy&lt;/U&gt;.tammik@autodesk.com: Is it possible to place a view reference programmatically using the Revit API?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;U&gt;ChatGPT&lt;/U&gt;: Yes, it is possible to place a view reference programmatically using the Revit API.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;U&gt;jeremy&lt;/U&gt;.tammik@autodesk.com: What API calls does that require?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;U&gt;ChatGPT&lt;/U&gt;: Placing a view reference programmatically using the Revit API requires creating a new instance of a Viewport type, setting its location and size, and linking it to the target view. The following API calls can be used:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;Viewport.Create() to create a new instance of Viewport.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;ElementTransformUtils.MoveElement() to set the location of the Viewport.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Viewport.get_Parameter() and Parameter.Set() to set the size of the Viewport.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Viewport.ViewId property to link the Viewport to the target view.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 12:28:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/placing-a-view-reference/m-p/11718415#M14144</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2023-01-31T12:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Placing a View Reference</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/placing-a-view-reference/m-p/11718498#M14145</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good news, you're not out of a job soon!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ChatGPT suggests to create a viewport. A viewport is something we place on a sheet. A View Reference is in instance of a system family which we place on a view (floorplan, section, etc).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(placing a view on a sheet is something I do can create (without the help of chatgpt lol!) )&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="JorisvdMeulen_0-1675170420777.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1169519iAFFE6D24CC44F01E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JorisvdMeulen_0-1675170420777.png" alt="JorisvdMeulen_0-1675170420777.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>Tue, 31 Jan 2023 13:07:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/placing-a-view-reference/m-p/11718498#M14145</guid>
      <dc:creator>Joris.vd.Meulen</dc:creator>
      <dc:date>2023-01-31T13:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Placing a View Reference</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/placing-a-view-reference/m-p/11718556#M14146</link>
      <description>&lt;P&gt;Thank you for checking. I would have been surprised. Funny how it spouts such credible unreliable stuff. Very human &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ok, so, as a next step up, I &lt;A href="https://autodesk.slack.com/archives/C0SR6NAP8/p1675171465954799" target="_blank"&gt;asked&lt;/A&gt; the development team for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 13:27:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/placing-a-view-reference/m-p/11718556#M14146</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2023-01-31T13:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Placing a View Reference</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/placing-a-view-reference/m-p/11722319#M14147</link>
      <description>&lt;P&gt;As far as I know, this is not possible, nor can you modify the Reference after it is placed because the parameter is Read Only. So, it isn't even like you could copy and paste then update.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 18:43:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/placing-a-view-reference/m-p/11722319#M14147</guid>
      <dc:creator>Sean_Page</dc:creator>
      <dc:date>2023-02-01T18:43:12Z</dc:date>
    </item>
  </channel>
</rss>

