How to extract geometry??

How to extract geometry??

Anonymous
Not applicable
1,109 Views
2 Replies
Message 1 of 3

How to extract geometry??

Anonymous
Not applicable

I had extracted geometries from Revit as below. I used some codes form Online documents.

cap.PNG

 

I collected geometries with the filter like...

 

            FilteredElementCollector collector = new FilteredElementCollector(commandData.Application.ActiveUIDocument.Document);
            ICollection<Element> collection = collector.OfClass(typeof(HostObject)).ToElements();

 

Then, how can I collect all visible geometries???

I guess the solution is configuring filter well. But, it is not easy for me.

 

If any of you have some tips for me, please help me.

 

Thank you.

0 Likes
Accepted solutions (1)
1,110 Views
2 Replies
Replies (2)
Message 2 of 3

arnostlobel
Alumni
Alumni
Accepted solution
In my opinion, based on what you describe your best option is to use Custom Exporter. It is part of a new API in Revit 2014. It allows exporting all currently visible geometry in a given 3D view. (It only works with 3D views!)

Arnošt Löbel
Autodesk Revit R&D
Arnošt Löbel
0 Likes
Message 3 of 3

Anonymous
Not applicable
Oh is it??? It's very great information.
Thank you so much!!!
0 Likes