revit-ifc icon indicating copy to clipboard operation
revit-ifc copied to clipboard

INQ: Documentation about "Use active view when creating geometry"

Open thumDer opened this issue 1 year ago • 3 comments

Inquiry description

There is no documentation about the effect of "Use active view when creating geometry" option, the tooltip has no extra value. If the active view is a 3D view the only experience I have is that Cable Tray's and Cable Ladder's gerometry gets exported as a box, just like they show up in Medium Detail Level (but it does not affect their Fittings!). What other elements are affected? What is the purpose? It is not clear at all.

Revit Version

2024.0.x

IFC for Revit Addon Version

24.x.x

Windows Version

11 22H2

thumDer avatar Feb 15 '24 16:02 thumDer

The intent is to allow you to export different geometry based on the current view (because you can different geometry based on level of detail, as specified in the family editor.) I will try and get more examples.

parrela avatar Feb 26 '24 14:02 parrela

But the same will happen if you have "Export only elements visible in view" ticked (and you need this option if you want rooms in your ifc) The view's detail level will be used for querrying the geometry. If you have none of them ticked it will default to Fine.

So my observations are the following:

Option Result
None is ticked Export geometry using Fine Detail Level
Only "Export only elements visible in view" is ticked Geometry will be exported using the detail level set in the views VG options for their category except for Cable Trays (and Ladders), which will be extracted as box-es just like they are shown on Medium Detail Level
Only "Use active view when creating geometry" Geometry will be exported using the detail level set in the views VG options for their category
Both is ticked Same as "Use active view when creating geometry"

For reference see: https://github.com/Autodesk/revit-ifc/blob/6498fbdae7f3889708ebded66d90ca829d165f82/Source/Revit.IFC.Export/Exporter/Exporter.cs#L781-L791

Considering the above I would merge the two functionalities together into "Export only elements visible in view" to avoid confusion and unforseen consequences.

thumDer avatar Feb 26 '24 15:02 thumDer

We'll get some better clarification: REVIT-219302

parrela avatar Feb 27 '24 01:02 parrela