<?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: Isolate elements on a newly created view in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6601219#M67085</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks Jeremy for posting my workaround about activating the view before doing &lt;SPAN style="color: #191970;"&gt;IsolateElementTemporary.&amp;nbsp; In fact this appears to be needed for all uses of &lt;SPAN style="color: #191970;"&gt;IsolateElementTemporary, regardless of if the view is newly created or not!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #191970;"&gt;&lt;SPAN style="color: #191970;"&gt;Also, I thought this behavior was fixed in our internal development release...but it is not.&amp;nbsp; Sorry for any false hope there.&amp;nbsp; We'll keep digging for the root cause.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Oct 2016 19:24:32 GMT</pubDate>
    <dc:creator>michaelmorris</dc:creator>
    <dc:date>2016-10-04T19:24:32Z</dc:date>
    <item>
      <title>Isolate elements on a newly created view</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6206355#M67073</link>
      <description>&lt;P&gt;Hello, friends, why my isolation in the newly created view doesn't work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I do the following:&lt;/P&gt;&lt;P&gt;1. I have a set of elements to isolate (els = System.Collections.Generic.List'1[Autodesk.Revit.DB.ElementId]).&lt;/P&gt;&lt;P&gt;2. Then a view is created:&lt;/P&gt;&lt;PRE&gt;view = ViewSection.CreateSection(doc, &lt;SPAN&gt;viewFamilyTypeId&lt;/SPAN&gt;, BoundingBox)&lt;/PRE&gt;&lt;P&gt;3. After that i'm trying to isolate els:&lt;/P&gt;&lt;PRE&gt;view.IsolateElementsTemporary(els)&lt;/PRE&gt;&lt;P&gt;If I open this view, the isolation mode is on (light blue frame is on), but nothing from els is isolated. The other view parameters (via get_Parameter) are&amp;nbsp;accessible and writeable.&lt;/P&gt;&lt;P&gt;Any suggestions, please? &lt;img id="cattongue" class="emoticon emoticon-cattongue" src="https://forums.autodesk.com/i/smilies/16x16_cat-tongue.png" alt="Cat Tongue" title="Cat Tongue" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 13:08:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6206355#M67073</guid>
      <dc:creator>tuuletin</dc:creator>
      <dc:date>2016-03-09T13:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Isolate elements on a newly created view</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6208454#M67074</link>
      <description>&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;but&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;view.IsolateCategoriesTemporary()&lt;/PRE&gt;&lt;P&gt;works fine!&lt;/P&gt;&lt;P&gt;What's the problem? &lt;img id="catmad" class="emoticon emoticon-catmad" src="https://forums.autodesk.com/i/smilies/16x16_cat-mad.png" alt="Cat Mad" title="Cat Mad" /&gt; &lt;img id="catmad" class="emoticon emoticon-catmad" src="https://forums.autodesk.com/i/smilies/16x16_cat-mad.png" alt="Cat Mad" title="Cat Mad" /&gt;&amp;nbsp;&lt;img id="catmad" class="emoticon emoticon-catmad" src="https://forums.autodesk.com/i/smilies/16x16_cat-mad.png" alt="Cat Mad" title="Cat Mad" /&gt;&amp;nbsp;&lt;img id="catmad" class="emoticon emoticon-catmad" src="https://forums.autodesk.com/i/smilies/16x16_cat-mad.png" alt="Cat Mad" title="Cat Mad" /&gt;&amp;nbsp;&lt;img id="catmad" class="emoticon emoticon-catmad" src="https://forums.autodesk.com/i/smilies/16x16_cat-mad.png" alt="Cat Mad" title="Cat Mad" /&gt;&amp;nbsp;&lt;img id="catmad" class="emoticon emoticon-catmad" src="https://forums.autodesk.com/i/smilies/16x16_cat-mad.png" alt="Cat Mad" title="Cat Mad" /&gt;&amp;nbsp;&lt;img id="catmad" class="emoticon emoticon-catmad" src="https://forums.autodesk.com/i/smilies/16x16_cat-mad.png" alt="Cat Mad" title="Cat Mad" /&gt;&amp;nbsp;&lt;img id="catmad" class="emoticon emoticon-catmad" src="https://forums.autodesk.com/i/smilies/16x16_cat-mad.png" alt="Cat Mad" title="Cat Mad" /&gt;&amp;nbsp;&lt;img id="catmad" class="emoticon emoticon-catmad" src="https://forums.autodesk.com/i/smilies/16x16_cat-mad.png" alt="Cat Mad" title="Cat Mad" /&gt;&amp;nbsp;&lt;img id="catmad" class="emoticon emoticon-catmad" src="https://forums.autodesk.com/i/smilies/16x16_cat-mad.png" alt="Cat Mad" title="Cat Mad" /&gt;&amp;nbsp;&lt;img id="catmad" class="emoticon emoticon-catmad" src="https://forums.autodesk.com/i/smilies/16x16_cat-mad.png" alt="Cat Mad" title="Cat Mad" /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 12:25:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6208454#M67074</guid>
      <dc:creator>tuuletin</dc:creator>
      <dc:date>2016-03-10T12:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Isolate elements on a newly created view</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6208511#M67075</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;perhaps you need a document.Regenerate() or uiDocument.RefreshActiveView() ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 12:56:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6208511#M67075</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2016-03-10T12:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Isolate elements on a newly created view</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6210350#M67076</link>
      <description>&lt;P&gt;No, this doesn't help :c&lt;/P&gt;&lt;P&gt;More peculiarity: "reverse" method&lt;/P&gt;&lt;PRE&gt;View.HideElements()&lt;/PRE&gt;&lt;P&gt;works perfectly!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I see no other way to solve my task.&lt;/P&gt;&lt;P&gt;The first collector will include any element in model (including links).&lt;/P&gt;&lt;P&gt;The second collector will include elements to be isolated.&lt;/P&gt;&lt;P&gt;The third collector consists of the first collector with the excluded second collector.&lt;/P&gt;&lt;P&gt;Then, I just hide any element I don't want to be isolated by means of the third collector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems, very bad way to evade this bug...&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 05:28:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6210350#M67076</guid>
      <dc:creator>tuuletin</dc:creator>
      <dc:date>2016-03-11T05:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Isolate elements on a newly created view</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6210351#M67077</link>
      <description>Are the elements actually visible in the view if you don't enable the isolate?</description>
      <pubDate>Fri, 11 Mar 2016 05:29:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6210351#M67077</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-11T05:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Isolate elements on a newly created view</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6210353#M67078</link>
      <description>&lt;P&gt;Yes, they are visible.&lt;/P&gt;&lt;P&gt;I create a new view (so, any graphic settings are set to default — all elements are visible), then I want to isolate some elements in this created view...&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 05:31:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6210353#M67078</guid>
      <dc:creator>tuuletin</dc:creator>
      <dc:date>2016-03-11T05:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Isolate elements on a newly created view</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6482337#M67079</link>
      <description>&lt;P&gt;I have encountered the same problem, could you please let me know if you find a solution. I will respond in this forum if I find the solution. - cheers&lt;/P&gt;</description>
      <pubDate>Sat, 06 Aug 2016 23:11:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6482337#M67079</guid>
      <dc:creator>ChristopherSchwalbe</dc:creator>
      <dc:date>2016-08-06T23:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Isolate elements on a newly created view</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6483230#M67080</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have stopped seeking the solution. Maybe it is just a lack of revit 2015 api. Hope, this will be fixed in revit 2016/2017/2018/.../2032 api (don't have revit 2016-2017 right now, so, I can't check this).&lt;/P&gt;&lt;P&gt;By the way, what version of revit do you use?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 06:00:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6483230#M67080</guid>
      <dc:creator>tuuletin</dc:creator>
      <dc:date>2016-08-08T06:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Isolate elements on a newly created view</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6563723#M67081</link>
      <description>&lt;P&gt;I would like to re-open this issue. It is still happening in Revit 2017. I have created a simple test case with macros embedded to show it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;testOne macro:&lt;/P&gt;&lt;P&gt;Shows that we can isolate a element in the view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;testTwo macro:&lt;/P&gt;&lt;P&gt;duplicates the Level 1 floorplan view and tries to isolate a Element. But the element is not isolated, unexpected behavior.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 10:28:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6563723#M67081</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-15T10:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Isolate elements on a newly created view</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6563729#M67082</link>
      <description>&lt;P&gt;That's sad :c Maybe we should make an official bug report for autodesk and wait for the fix?..&lt;/P&gt;&lt;P&gt;I don't know, where we can report this bug.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 10:32:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6563729#M67082</guid>
      <dc:creator>tuuletin</dc:creator>
      <dc:date>2016-09-15T10:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Isolate elements on a newly created view</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6563826#M67083</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Tuuletin and Michal,&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 very much for your report and especially to Michal for the reproducible case.&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;I escalated this thread to an ADN case &lt;STRONG&gt;&lt;U&gt;12169975&lt;/U&gt;&lt;/STRONG&gt; [Isolate elements on a newly created view] and created an internal development issue &lt;U&gt;&lt;STRONG&gt;REVIT-99069&lt;/STRONG&gt;&lt;/U&gt; [Isolate elements on a newly created view -- 12169975] for the development team to take a closer look.&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;The issue was logged with our development team for this on your behalf as it requires further exploration and possibly a modification to our software. Please make a note of this number for future reference.&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;You are welcome to request an update on the status of this issue or to provide additional information on it at any time quoting this change request number.&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;This issue is important to me. What can I do to help?&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;This issue needs to be assessed by our engineering team, and prioritised against all of the other outstanding change requests. Any information that you can provide to influence this assessment will help. Please provide the following where possible:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;Impact on your application and/or your development.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;The number of users affected.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;The potential revenue impact to you.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;The potential revenue impact to Autodesk.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Realistic timescale over which a fix would help you.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;In the case of a request for a new feature or a feature enhancement, please also provide detailed Use cases for the workflows that this change would address.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This information is extremely important. Our engineering team have limited resources, and so must focus their efforts on the highest impact items. We do understand that this will cause you delays and affect your development planning, and we appreciate your cooperation and patience.&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;Best regards,&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;</description>
      <pubDate>Thu, 15 Sep 2016 11:32:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6563826#M67083</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-09-15T11:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Isolate elements on a newly created view</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6600975#M67084</link>
      <description>&lt;P&gt;Dear Tuuletin and Michal,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your patience.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The development team responded to the issue &lt;STRONG&gt;&lt;U&gt;REVIT-99069&lt;/U&gt;&lt;/STRONG&gt; [Isolate elements on a newly created view -- 12169975] and say:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can reproduce this issue. When just 1 transaction is used to create the new view and also to isolate the element, then the isolate element fails.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I can get the desired behaviour using two separate transactions as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Use a transaction to create the new view. Close transaction.&lt;/LI&gt;
&lt;LI&gt;Activate the new view. This is important; isolation fails if the view is not active.&lt;/LI&gt;
&lt;LI&gt;Use 2nd transaction to isolate the wall. Close transaction.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this an acceptable workaround?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: I also tried the attached file and macros in our internal development release cannot reproduce the behaviour there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested macro "test 2" which uses just 1 transaction to create the new view and isolate the wall, and when the screen updates the single wall is really and truly isolated in the new view.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the workaround described above will not be needed forever.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 17:46:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6600975#M67084</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-10-04T17:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Isolate elements on a newly created view</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6601219#M67085</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks Jeremy for posting my workaround about activating the view before doing &lt;SPAN style="color: #191970;"&gt;IsolateElementTemporary.&amp;nbsp; In fact this appears to be needed for all uses of &lt;SPAN style="color: #191970;"&gt;IsolateElementTemporary, regardless of if the view is newly created or not!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #191970;"&gt;&lt;SPAN style="color: #191970;"&gt;Also, I thought this behavior was fixed in our internal development release...but it is not.&amp;nbsp; Sorry for any false hope there.&amp;nbsp; We'll keep digging for the root cause.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 19:24:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6601219#M67085</guid>
      <dc:creator>michaelmorris</dc:creator>
      <dc:date>2016-10-04T19:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Isolate elements on a newly created view</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6604625#M67086</link>
      <description>&lt;P&gt;Ok, so the internal version of Revit still has this "issue", lets hope you guys can track it down.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the work around, i tried two transactions as well before, but it didn't work. The trick is as you guys described to set the active view to the new created view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the snippet for those interested:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;		public void testTwo()
		{
			View newView;
					
			using (Transaction t = new Transaction(this.Document))
			{
		       	        t.Start("Trans");
		       	
				// Get Floorplan for Level1 and copy its properties for ouw newly to create ViewPlan.
				View existingView = this.Document.GetElement(new ElementId(312)) as View;
				
				// Create new Floorplan.
				newView = this.Document.GetElement(existingView.Duplicate(ViewDuplicateOption.Duplicate)) as View;
			
				t.Commit();&lt;BR /&gt;
                                // important to set new view as active view.
				this.ActiveView = newView;
				
		       	        t.Start("Trans 2");
		       	
				// Try to isolate a Wall. Fails.
				newView.IsolateElementTemporary(new ElementId(317443));
			
				t.Commit();
			}
			
			// Change the View to the new View.
			this.ActiveView = newView;
		}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It somewhat sucks having to commit twice&amp;nbsp;and therefore having to regenerate twice. But the workaround is solid and does the job, thanks guys!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 05:27:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6604625#M67086</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-06T05:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Isolate elements on a newly created view</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6605598#M67087</link>
      <description>&lt;P&gt;Dear Michal,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your test, confirmation and sample code!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I summarised, cleaned up and published our conversation here of others to enjoy better still:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2016/10/need-to-commit-twice-roomedit3dv3-and-forge.html#2" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2016/10/need-to-commit-twice-roomedit3dv3-and-forge.html#2&lt;/A&gt;&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;</description>
      <pubDate>Thu, 06 Oct 2016 14:00:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/m-p/6605598#M67087</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-10-06T14:00:51Z</dc:date>
    </item>
  </channel>
</rss>

