<?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: Hide elements in linked file in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/13688261#M84135</link>
    <description>&lt;P&gt;This is awesome. Just checking, if I have 30 views with linked elements that need hiding. I have to open each view and do the post command, end and start process again ay? No quicker ways?&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jun 2025 22:26:43 GMT</pubDate>
    <dc:creator>JeremyvU2GS6</dc:creator>
    <dc:date>2025-06-18T22:26:43Z</dc:date>
    <item>
      <title>Hide elements in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/5777305#M70885</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Manually this is possible in revit.&amp;nbsp;&lt;SPAN&gt;I have main doc and a linked doc. Now I select one element from main doc and one element from linked doc; I do a right click and Hide In View - Elements. Both the selected element gets hidden.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to do the same via code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;FilteredElementCollector links = new FilteredElementCollector(Command.doc).OfCategory(BuiltInCategory.OST_RvtLinks);
            foreach (Document d in Command.app.Documents)
            {

                coll = new FilteredElementCollector(d);
                coll.WherePasses(new LogicalOrFilter(new ElementIsElementTypeFilter(false), new ElementIsElementTypeFilter(true)));
                elemSet = new ElementSet();
                
                foreach (Element el in coll)
                {

                    try
                    {
                        if (el.Id == new ElementId(elementid1) || el.Id == new ElementId(elementid2)
                        {
                           

                            IList&amp;lt;ElementId&amp;gt; ilds = new List&amp;lt;ElementId&amp;gt;();
                            ilds.Add(el.Id);

                            ICollection&amp;lt;ElementId&amp;gt; elemIdsColl = (ICollection&amp;lt;ElementId&amp;gt;)ilds.Cast&amp;lt;ElementId&amp;gt;().ToList();

                          

                            Command.doc.ActiveView.HideElements(ilds);

                        }
                    }
                    catch (Exception sd)
                    {

                        string fg = sd.ToString();
                    }

                }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code hides only the element of the main doc but does not hide the element of the linked doc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Sanjay Pandey&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2015 10:12:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/5777305#M70885</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-19T10:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Hide elements in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/5777325#M70886</link>
      <description>&lt;P&gt;Hi sanjaymann,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;elements of the linked file are not listed the UI selection since the top level element is still the relating RevitLinkInstance.&lt;BR /&gt;There is no relating ElementId you could use with View.Hide method.&lt;/P&gt;&lt;P&gt;So no way to solve your problem.&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>Wed, 19 Aug 2015 10:35:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/5777325#M70886</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2015-08-19T10:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Hide elements in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/5779032#M70887</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;SPAN&gt;Revitalizer,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I got your point but I think if revit is able to do the same thing manually. It should be able to it via code too. When you select an element in the linked doc and hide it manually revit might be keeping in mind some sort of name , id, geometry that it has to hide in the linked doc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sanjay Pandey&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2015 04:06:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/5779032#M70887</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-20T04:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hide elements in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/5779271#M70888</link>
      <description>&lt;P&gt;Hi sanjaymann,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;no, there are many things that can be done manually but not via code.&lt;/P&gt;&lt;P&gt;For example, the Material creation API: you can define colors and transparency values, but you cannot define textures.&lt;/P&gt;&lt;P&gt;The amount of the available API functions increases every year, but at the moment, there are still many missing ones.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this forum, I see many postings of people who say "but there &lt;STRONG&gt;&lt;EM&gt;must&lt;/EM&gt; &lt;/STRONG&gt;be a solution for my problem".&lt;/P&gt;&lt;P&gt;They must accept that some things are not possible to perform, &lt;EM&gt;yet&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;Of course, sometimes there are workarounds, less or more ugly attempts to bypass problems.&lt;/P&gt;&lt;P&gt;Often they use unsupported functions, so it ist strongly recommended not to use them in productive code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For your problem, I've spent some thoughts about several ways to solve it, but at least, none of the approaches will work properly.&lt;/P&gt;&lt;P&gt;So, there is neither a real solution nor a workaround, from my side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2015 07:13:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/5779271#M70888</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2015-08-20T07:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Hide elements in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/7323842#M70889</link>
      <description>&lt;P&gt;This thread is a few years old. Does anybody know if this functionality has been added to Revit API yet?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;James&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 21:39:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/7323842#M70889</guid>
      <dc:creator>CADdaddy.com</dc:creator>
      <dc:date>2017-08-23T21:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hide elements in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/7339712#M70890</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anywhone can confirm that il the Revit API 2018, it's still not possible to hide walls (or an other category) in linked files?&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 16:39:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/7339712#M70890</guid>
      <dc:creator>SONA-ARCHITECTURE</dc:creator>
      <dc:date>2017-08-30T16:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hide elements in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/10338834#M70891</link>
      <description>&lt;P&gt;Bump - any updates on being able to hide elements in links via api?&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 18:01:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/10338834#M70891</guid>
      <dc:creator>sgermanoZ2Y2F</dc:creator>
      <dc:date>2021-05-25T18:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Hide elements in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/10780405#M70892</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Checking in again on this issue with release 2022.&amp;nbsp; No joy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a very important functionality that we need for our interior design firm.&amp;nbsp; We work on large hotel projects within the architect's linked model.&amp;nbsp; If we are working on a design option within the architects model, we need to be able to remove certain bits of the architectural work so we can draw our revised layout proposals.&amp;nbsp; This is extremely painful to do under the current circumstances.&amp;nbsp; It is crucial to our work to be able to hide and unhide element within linked models.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;//get a view in document
FilteredElementCollector collector = new FilteredElementCollector(doc);
collector.OfCategory(BuiltInCategory.OST_Views);
views = collector.ToElements();
View view = (View)views[0];

//get the linked_doc
Element elem = new FilteredElementCollector(doc).OfClass(typeof(RevitLinkInstance)).ToElements()[0];
RevitLinkInstance linked_instance = elem as RevitLinkInstance;
Document linked_doc = linked_instance.GetLinkDocument();

//container to hold element ids
IList&amp;lt;ElementId&amp;gt; IDs = new List&amp;lt;ElementId&amp;gt;();

//Select objects in linked model
IList&amp;lt;Reference&amp;gt; reflist = m_uidoc.Selection.PickObjects(ObjectType.LinkedElement, "Pick elements in linked model");

//get id for each linked element
foreach (Reference rfr in reflist)
{
    Element currentE = linked_doc.GetElement(rfr.LinkedElementId);
    if (currentE.CanBeHidden(view))
    {
        //This line is skipped because the current linked element does not contain a CanBeHidden parameter
        IDs.Add(rfr.LinkedElementId);
    }
    //added this line to collect the IDs even though they haven't been checked for CanBeHidden
    IDs.Add(rfr.LinkedElementId);
}
//Hide doesn't work.  Error msg: "One of the elements cannot be hidden"
view.HideElements(IDs);
return Result.Succeeded;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 23:56:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/10780405#M70892</guid>
      <dc:creator>james.levieux</dc:creator>
      <dc:date>2021-11-24T23:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hide elements in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/11143504#M70893</link>
      <description>&lt;P&gt;i am also searching for that,&amp;nbsp;&lt;SPAN&gt;Does anybody know if this functionality has been added to Revit API yet?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 04:00:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/11143504#M70893</guid>
      <dc:creator>dhanait_ajay13</dc:creator>
      <dc:date>2022-05-03T04:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hide elements in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/11144904#M70894</link>
      <description>&lt;P&gt;Yes, it was added in this latest 2023 version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 16:04:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/11144904#M70894</guid>
      <dc:creator>james.levieux</dc:creator>
      <dc:date>2022-05-03T16:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Hide elements in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/11148912#M70895</link>
      <description>&lt;P&gt;&lt;SPAN&gt;i trying in revit 2023 but still i am not getting any method or solution for this issue&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 05:44:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/11148912#M70895</guid>
      <dc:creator>dhanait_ajay13</dc:creator>
      <dc:date>2022-05-05T05:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hide elements in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/11150201#M70896</link>
      <description>&lt;P&gt;I may have misled you.&amp;nbsp;&amp;nbsp;What was added was: Autodesk.Revit.UI.Selection.SetReferences() which allows you to easily add linked elements to a selection set.&amp;nbsp; It certainly solves the selection difficulties.&amp;nbsp; I actually haven't yet tried to use this to programmatically hide elements.&amp;nbsp; Please give that a try and let me know if it works!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;UIDocument uidoc = commandData.Application.ActiveUIDocument;

IList&amp;lt;Reference&amp;gt; elist =uidoc.Selection.PickObjects(ObjectType.LinkedElement, "Pick elements");

//newly exposed API in Revit 2023:Autodesk.Revit.UI.Selection.SetReferences()
if (elist.Count &amp;gt;0 )uidoc.Selection.SetReferences(refElemLinked);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 15:50:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/11150201#M70896</guid>
      <dc:creator>james.levieux</dc:creator>
      <dc:date>2022-05-05T15:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hide elements in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/12231607#M70897</link>
      <description>&lt;P&gt;Hi, I'm currently using API in 2024,&amp;nbsp;&lt;/P&gt;&lt;P&gt;tried HideCategory, HideElements, IsolateElements and IsolateCategory,&lt;/P&gt;&lt;P&gt;all the functions hide the entire model instead of the element I've given,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a way to hide linked model by elements / category like how we do in Revit App?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance :]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 10:17:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/12231607#M70897</guid>
      <dc:creator>zefreestijl</dc:creator>
      <dc:date>2023-09-11T10:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Hide elements in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/12786936#M70898</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've found a solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;//Select elements using UIDocument and then use PostCommand "HideElements"

//elemsFromRevitLinkInstance is "List&amp;lt;Element&amp;gt;", there are the elements you want to hide in the link
var refs = elemsFromRevitLinkInstance.Select(x =&amp;gt; new Reference(x).CreateLinkReference(revitLinkInstance)).ToList();

uidoc.Selection.SetReferences(refs);

uidoc.Application.PostCommand(RevitCommandId.LookupPostableCommandId(PostableCommand.HideElements));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 10:30:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/12786936#M70898</guid>
      <dc:creator>lvirone</dc:creator>
      <dc:date>2024-05-21T10:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Hide elements in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/12787337#M70899</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14298829"&gt;@lvirone&lt;/a&gt;&amp;nbsp;Can you provide a description of the process for using your code to hide elements only in a linked model? I am not familiar with the API and deploying a script like this.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 13:41:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/12787337#M70899</guid>
      <dc:creator>rmc9WR3X</dc:creator>
      <dc:date>2024-05-21T13:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hide elements in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/12787380#M70900</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an sample: Select the first RevitLinkInstance, retrieve the floors, hide the floors&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;                //Get a link
                var filter = new ElementClassFilter(typeof(RevitLinkInstance));
                var firstInstanceLink = (RevitLinkInstance)new FilteredElementCollector(doc).WherePasses(filter).ToElements().First();

                //Get its floors
                filter = new ElementClassFilter(typeof(Floor));
                var elemsFromRevitLinkInstance = new FilteredElementCollector(firstInstanceLink.GetLinkDocument()).WherePasses(filter).ToElements();

                //Isolate them
                var refs = elemsFromRevitLinkInstance.Select(x =&amp;gt; new Reference(x).CreateLinkReference(firstInstanceLink)).ToList();

                uidoc.Selection.SetReferences(refs);
                uidoc.Application.PostCommand(RevitCommandId.LookupPostableCommandId(PostableCommand.HideElements));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 13:55:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/12787380#M70900</guid>
      <dc:creator>lvirone</dc:creator>
      <dc:date>2024-05-21T13:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hide elements in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/12819776#M70901</link>
      <description>&lt;P&gt;Thank you Lorenzo, for the good idea and sharing your solution here and in the Revit Idea Station!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added a note in The Building Coder to make your posts more discoverable:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2024/06/revit-2025-api-video-and-hiding-linked-elements.html#3" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2024/06/revit-2025-api-video-and-hiding-linked-elements.html#3&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 09:53:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/12819776#M70901</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2024-06-05T09:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Hide elements in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/13688261#M84135</link>
      <description>&lt;P&gt;This is awesome. Just checking, if I have 30 views with linked elements that need hiding. I have to open each view and do the post command, end and start process again ay? No quicker ways?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 22:26:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/13688261#M84135</guid>
      <dc:creator>JeremyvU2GS6</dc:creator>
      <dc:date>2025-06-18T22:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Hide elements in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/13688653#M84136</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/16242239"&gt;@JeremyvU2GS6&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes unfortunately its a change in one view, and take care that hiding elements using this method made them difficult to unhide later. If you have such needs i suggest you to create filters as much as possible, though its not always possible. Its better to duplicate the view where you need to hide the elements in link, then when the user want a refresh you delete that view and regenerate a new one.&amp;nbsp;Beware it will not be real time, if the link change then the user needs to update all the views again by using your command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trick to test: In a normal code without postCommand you have 30 views to change, its best to ask the user the views he want the change and you'll just apply the same code for each view !! BUT !! the postCommand will only apply to the activeView, I didn't try it but this post suggest we can change it: &lt;A href="https://forums.autodesk.com/t5/revit-api-forum/change-activeview/td-p/5330067&amp;quot;" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/revit-api-forum/change-activeview/td-p/5330067&lt;/A&gt;. If you succeed to change the activeView, it will still be complex: You need to create a custom command with your select process and apply change in the activeView with the postCommand, then in a second command change the activeView and call your custom command which you need to search if its possible, I suggest you this ressource: &lt;A href="https://thebuildingcoder.typepad.com/blog/2013/10/programmatic-custom-add-in-external-command-launch.html" target="_blank" rel="noopener"&gt;https://thebuildingcoder.typepad.com/blog/2013/10/programmatic-custom-add-in-external-command-launch.html&lt;/A&gt;. So you'll have a succession of PostCommand with your custom command each following by a PostCommand with the Revit HideElements. Still I'm not sure it will works, I'm not sure when the PostCommand will be launched. Its very a complex task when you use a PostCommand, you need to mimick what the user do manually, but what I propose is worth a try.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this help you until we have a better way to hide elements in links, good luck !&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 06:42:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/13688653#M84136</guid>
      <dc:creator>lvirone</dc:creator>
      <dc:date>2025-06-19T06:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hide elements in linked file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/13688734#M84138</link>
      <description>&lt;P&gt;Got it working! It's slow but works. Means I can schedule linked elements now. Was using some idle process. Still just working on restarting the rest of the process after it's done. Appreciate the response! Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 07:39:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-elements-in-linked-file/m-p/13688734#M84138</guid>
      <dc:creator>JeremyvU2GS6</dc:creator>
      <dc:date>2025-06-19T07:39:01Z</dc:date>
    </item>
  </channel>
</rss>

