Elements from linked document

Elements from linked document

AnatolyCEL
Enthusiast Enthusiast
4,013 Views
8 Replies
Message 1 of 9

Elements from linked document

AnatolyCEL
Enthusiast
Enthusiast

Hello,

 

When I use collector constructor "public FilteredElementCollector(Document document, ElementId viewId)", I get elements visible in this view and it works fine for elements from host document. How about linked document? How can I get know if element from linked document visible in a view in host document? If I put linked document to the collector constructor, then viewId used for view from linked document as well, but I need linked document and view from host document. Elements from linked document can be hidden manually in a view in host document different ways and I need to know if these elements are visible in this view.

 

Thanks,

Anatoly.

0 Likes
Accepted solutions (2)
4,014 Views
8 Replies
Replies (8)
Message 2 of 9

Aaron.Lu
Autodesk
Autodesk
Accepted solution

Dear, unfortunately, there is no way to accomplish what you want,
and a wish was logged in our system about it before in this April: CF-2671 API ability to get visibilty or pass filter test for linked elements



Aaron Lu
Developer Technical Services
Autodesk Developer Network
0 Likes
Message 3 of 9

Aaron.Lu
Autodesk
Autodesk
A workaround may be using CustomExpoter, see examples here:
http://thebuildingcoder.typepad.com/blog/2013/07/graphics-pipeline-custom-exporter.html

when you call CustomExporter.Export, it will go through all the visible elements in the view you specified.


Aaron Lu
Developer Technical Services
Autodesk Developer Network
0 Likes
Message 4 of 9

AnatolyCEL
Enthusiast
Enthusiast

Hello,

 

Has the issue (CF-2671 API ability to get visibilty or pass filter test for linked elements) resolved?

 

Thanks,

Anatoly.

0 Likes
Message 5 of 9

Aaron.Lu
Autodesk
Autodesk
Accepted solution
Hi AnatolyCEL,

sorry, it has not yet been fixed. I'm afraid it might not be included in Revit 2017


Aaron Lu
Developer Technical Services
Autodesk Developer Network
0 Likes
Message 6 of 9

Anonymous
Not applicable

Hi, any news on this topic for Revit 2018?

0 Likes
Message 7 of 9

m.vallee
Advocate
Advocate

Hi,

Any news on this topic for Revit 2019-2020? cc @Aaron.Lu

 

0 Likes
Message 8 of 9

Anonymous
Not applicable

Any news on this... being implemented at all? Ever?

0 Likes
Message 9 of 9

TripleM-Dev.net
Advisor
Advisor
0 Likes