Repository navigation
Description
Asked by zenglanmu on #1812: a Revit view can override the transparency of certain elements, or of the elements a view filter picks, in that view alone. Does rvt-rs read it?
Status. Not read. The view-graphics-overrides row of docs/support-matrix.json is unsupported. Not scheduled.
What the file declares (measured: rvt-schema from the 0.22.0 release on 2024_Core_Interior.rvt, the MIT sample of magnetar-io/revit-test-datasets):
OverrideGraphicSettings: 22 fields, among themm_oSurfacesTransparency,m_bHalftone, the projection and cut pen, line pattern, fill pattern and colour overriders, andm_visibility.GSurfacesTransparencyOverrider: one field,m_transparency. By its name it is whatm_oSurfacesTransparencypoints to; that link is not measured.- Filters:
FilterElement(a name),ParameterFilterElement(a category rule and a rule combination),SelectionFilterElement(element ids) andAllViewFiltersAppInfo(the filter ids).
That is the schema only. Not measured: which records hold an instance of any of these, what an instance binds to (a view, a category, an element or a filter) or how its fields are encoded.
Why it is not a small change.
- Revit's own IFC export does not apply view overrides (
revit-ifc,BodyExporter.GetBestColourAndOpacity, see glTF/IFC export loses Revit transparency when the element→material binding fails, and never reads view/graphics (V/G) overrides #1812), so the measurement the repository rests on, rvt-rs against Revit's export, has nothing to compare with. An oracle would be Revit API output (theOverrideGraphicSettingsof a view, per category, element and filter) or a screenshot of a view with known values, from a model that may be shared. - IFC and glTF have no view. The result would be a per-view table beside the model (the JSON API and the viewer), never a change to a material.
First step if it is taken up. Count OverrideGraphicSettings and GSurfacesTransparencyOverrider instances over the corpora with native_document::extract_graphs (a class selection), find what refers to them, and keep the result as a probe and an RE-NN report whichever way it comes out.
Asked of anyone who needs this.
- What it is for: the viewer, a per-view export, or filtering by view.
- A small model that is not confidential, with a view that sets a transparency override, plus the values or a screenshot of that view. It is the oracle this issue lacks.
Activity