Hide elements in a linked file in a view

Hide elements in a linked file in a view

shehab_fekry
Enthusiast Enthusiast
932 Views
1 Reply
Message 1 of 2

Hide elements in a linked file in a view

shehab_fekry
Enthusiast
Enthusiast

Is there any way to hide linked elements by their Id in a specific view, I'm creating an add-in to get clash reports from Navisworks and I retrieved element ids and their ids. 
I want to isolate both the clashed elements in Revit by their ids but there's no way to do that.

0 Likes
933 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni

Is there any way to hide linked elements by their Id in a specific view?

  

We discussed this previously here in the forum:

  

https://forums.autodesk.com/t5/revit-api-forum/link-file-element-hide/m-p/11144072

  

There, the development team suggested: As a work-around they could try to select the linked elements in the file and run the postable command 'HideElements', which would effectively be the UI version thereof, and will work on the given view and the given view only. Generally speaking, "hide in view" is a silly command to run via the UI outside of the occasional work-around, and something to be avoid in the API as it introduces BULK changes which can take MONTHS (sadly not a joke - I had a bad experience once) to track down in the UI. The use of a filter would be preferable here, and likely fits well. If they were able to bulk select the elements via the API, then it's likely that a filter would work just as well, and give the benefit of being easily applied to new views without needing an add-in, and quick to disable on any one (or many) views.

  

We also have a wish list item for this functionality in the Revit Idea Station: 

  

https://forums.autodesk.com/t5/revit-ideas/hide-elements-in-linked-model/idc-p/11147776

  

Maybe you can vote for that, if you think it would be of use to you.

  

I want to isolate both the clashed elements in Revit by their ids but there's no way to do that.

  

I beg to disagree. That ought to be possible using the IsolateElementsTemporary method:

  

https://www.revitapidocs.com/2024/ffc40d36-2092-a63c-ce8c-a72ee8430d3d.htm

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes