<?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: Renaming views after creation in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/renaming-views-after-creation/m-p/8097168#M49111</link>
    <description>&lt;P&gt;I think you can use this amazing add in:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://apps.autodesk.com/RVT/en/Detail/Index?id=4557104121018862953&amp;amp;appLang=en&amp;amp;os=Win64" target="_blank"&gt;https://apps.autodesk.com/RVT/en/Detail/Index?id=4557104121018862953&amp;amp;appLang=en&amp;amp;os=Win64&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jun 2018 10:01:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-06-28T10:01:02Z</dc:date>
    <item>
      <title>Renaming views after creation</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/renaming-views-after-creation/m-p/8092646#M49108</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm creating a routine that creates new plan views (structural plans) from the structural plans that are in my project, but these new structural plans will have a different&amp;nbsp;view template.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The portion of the routine I made is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;using (Transaction tx = new Transaction(doc, "View Creation"))
                {
                    tx.Start();

                    // Create new views with desired template applied
                    foreach (View v in plantas)
                    {
                        ElementId levelId = v.GenLevel.Id;
                        ViewPlan vista = ViewPlan.Create(doc, vft.Id, levelId);

                        vista.Name = vista.Name + " - Thick";
                        vista.Name.Replace("(1)", "");

                        // Apply the template
                        vista.ViewTemplateId = vTemplate.Id;
                    }                   

                    tx.Commit();
                }    &lt;/PRE&gt;&lt;P&gt;The problem is, that when I do this, Revit prompts a message telling that a unique name is needed, but in my code, after the view creation, I set a different name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I missing here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 17:03:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/renaming-views-after-creation/m-p/8092646#M49108</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-26T17:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming views after creation</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/renaming-views-after-creation/m-p/8092724#M49109</link>
      <description>&lt;P&gt;I found the solution to my problem. I had a repeated plan view that was making troubles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My bad.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 17:34:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/renaming-views-after-creation/m-p/8092724#M49109</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-26T17:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming views after creation</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/renaming-views-after-creation/m-p/8093978#M49110</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Jorge,&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;Congratulations on solving your task.&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;Thank you for your update and letting us know.&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;Cheers,&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;Jeremy&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 06:33:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/renaming-views-after-creation/m-p/8093978#M49110</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-06-27T06:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming views after creation</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/renaming-views-after-creation/m-p/8097168#M49111</link>
      <description>&lt;P&gt;I think you can use this amazing add in:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://apps.autodesk.com/RVT/en/Detail/Index?id=4557104121018862953&amp;amp;appLang=en&amp;amp;os=Win64" target="_blank"&gt;https://apps.autodesk.com/RVT/en/Detail/Index?id=4557104121018862953&amp;amp;appLang=en&amp;amp;os=Win64&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 10:01:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/renaming-views-after-creation/m-p/8097168#M49111</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-28T10:01:02Z</dc:date>
    </item>
  </channel>
</rss>

