<?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: Is element hidden? - in linked file in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/is-element-hidden-in-linked-file/m-p/5487532#M79978</link>
    <description>&lt;P&gt;Has anyone been able to make this work? Of course the intent is to be able to turn off elements in a linked model. Dale&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jan 2015 11:25:27 GMT</pubDate>
    <dc:creator>Dale.Bartlett</dc:creator>
    <dc:date>2015-01-29T11:25:27Z</dc:date>
    <item>
      <title>Is element hidden? - in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-element-hidden-in-linked-file/m-p/3754418#M79974</link>
      <description>&lt;P&gt;I have document A and document B linked into A.&lt;/P&gt;&lt;P&gt;In active view I make some elements in linked document (B) hidden.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to get Information if given element is hidden?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Function element.isHidden(View) seems to work perfect for non-linked elements, but if I use in on elements from another document it always return false.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried use:&lt;/P&gt;&lt;P&gt;coll = new FilteredElementCollector(linked_doc, main_doc.ActiveView.Id);&lt;/P&gt;&lt;P&gt;But still return hidden elements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any tip.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2013 14:33:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-element-hidden-in-linked-file/m-p/3754418#M79974</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-16T14:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is element hidden? - in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-element-hidden-in-linked-file/m-p/3755052#M79975</link>
      <description>&lt;P&gt;Hi Arthur&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the&amp;nbsp;active documents loaded in the current Revit session can be accessed using Application.Documents() collection and this&amp;nbsp;includes the&amp;nbsp;linked Revit documents as well. Once you have access to the document object of&amp;nbsp;the linked model (B),&amp;nbsp;it might be possible to&amp;nbsp;extract the same view as in doc A in doc B and then find out which element is hidden in that specific view in B.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2013 23:16:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-element-hidden-in-linked-file/m-p/3755052#M79975</guid>
      <dc:creator>saikat</dc:creator>
      <dc:date>2013-01-16T23:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is element hidden? - in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-element-hidden-in-linked-file/m-p/3755248#M79976</link>
      <description>&lt;P&gt;Thank you for quick answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this but still elements in linked file which are hidden in host view - are visible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how I search view in linked file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;FilteredElementCollector viewCollector = new FilteredElementCollector(curr_doc);
viewCollector.OfClass(typeof(View));
foreach (Element viewElement in viewCollector)
{
    if (((View)viewElement).Id == main_doc.ActiveView.Id)
    {
          curr_view = (View)viewElement;
          break;
    }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then filer elements:&lt;/P&gt;&lt;PRE&gt;coll = new FilteredElementCollector(curr_doc, curr_view.Id);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And later in elements loop:&lt;/P&gt;&lt;PRE&gt;if(element.IsHidden(curr_view))
{
/*...*/
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;1. View in document B are reference to view from document A or it is copy?&lt;/P&gt;&lt;P&gt;2. If I hide element in linked file in host view, then view in linked file is automaticly updated?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2013 09:59:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-element-hidden-in-linked-file/m-p/3755248#M79976</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-17T09:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is element hidden? - in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-element-hidden-in-linked-file/m-p/4323191#M79977</link>
      <description>&lt;P&gt;You could use the Revit 2014 custom exporter framework.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In fact, that is probably the only way to find out. Please have a look at&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/07/graphics-pipeline-custom-exporter.html#6" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2013/07/graphics-pipeline-custom-exporter.html#6&lt;/A&gt;&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>Mon, 08 Jul 2013 21:34:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-element-hidden-in-linked-file/m-p/4323191#M79977</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2013-07-08T21:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is element hidden? - in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-element-hidden-in-linked-file/m-p/5487532#M79978</link>
      <description>&lt;P&gt;Has anyone been able to make this work? Of course the intent is to be able to turn off elements in a linked model. Dale&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 11:25:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-element-hidden-in-linked-file/m-p/5487532#M79978</guid>
      <dc:creator>Dale.Bartlett</dc:creator>
      <dc:date>2015-01-29T11:25:27Z</dc:date>
    </item>
  </channel>
</rss>

