From 59bfb99f8adea34dcbfe44524f730be6287cc994 Mon Sep 17 00:00:00 2001 From: mahach666 <79989386+mahach666@users.noreply.github.com> Date: Sat, 14 Nov 2026 14:59:28 +0300 Subject: [PATCH 1/2] Register the nwc key namespace for NwcIO.Scene --- CHANGELOG.md | 3 +++ docs/keys.md | 16 ++++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 75b285f..c613092 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and the project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## [Unreleased] +### Changed +- `docs/keys.md`: the namespace `nwc:` is registered for `NwcIO.Scene`; its formats are fixed from the first release of the package, 0.12.0. The `nwc` source format names `NwcIO.Scene` as its producer. + ## [0.1.1] - 2026-11-13 ### Fixed diff --git a/docs/keys.md b/docs/keys.md index 1732986..246cd8a 100644 --- a/docs/keys.md +++ b/docs/keys.md @@ -31,8 +31,9 @@ This file is the registry of the namespaces, of their key formats and of the `Sc |---|---|---| | `revit:` | `RvtIO.Scene` | registered; the formats below are fixed from the first release of the package, 0.4.0 | | `ifc:` | `IfcIO.Scene` | registered; the formats below are fixed from the first release of the package, 0.11.1 | +| `nwc:` | `NwcIO.Scene` | registered; the formats below are fixed from the first release of the package, 0.12.0 | -No other namespace is registered. Producers for NWC, DWG and other formats register theirs when they are written. +No other namespace is registered. Producers for DWG and other formats register theirs when they are written. ### `revit:` @@ -55,6 +56,17 @@ registered when `RvtIO.Scene` first writes them; that is an addition. The property sets of an IFC type object, when they are read, use the same `ifc:` key form and come after the occurrence sets. +### `nwc:` + +| Key | Used on | Meaning | +|---|---|---| +| `nwc:` | property set | A Navisworks property tab by its internal name, for tabs whose internal name the Revit exporter fixes: `nwc:LcRevitData_Element`, `nwc:LcRevitData_Type`, `nwc:LcRevitMaterialProperties`, and `nwc:LcRevitId` (the element id). | +| `nwc:.` | property | A property of such a tab by its internal name, for names that do not change with language or a renamed parameter: built-in Revit parameters `lcldrevit_parameter_-` (`nwc:LcRevitData_Element.lcldrevit_parameter_-1001107`), the exporter's `LcRevitPropertyElement{Category,CategoryId,Family,Id,Name,Type}`, Revit material asset names `revit_`, and `LcRevitId`. | + +Other tabs and properties (references to other elements, rooms, and parameters whose internal name the exporter derives +from their display name) have no key. Keys for them are registered when `NwcIO.Scene` first writes them; that is an +addition. + ## `SourceFormat` values `SceneModel.SourceFormat` is the registered id of the format of the content, not of the container: `ifc` covers @@ -64,7 +76,7 @@ occurrence sets. |---|---|---| | `rvt` | Revit project | `RvtIO.Scene` | | `ifc` | IFC STEP file, also zipped (`.ifczip`) | `IfcIO.Scene` | -| `nwc` | Navisworks cache | `NwcIO.Scene` (later) | +| `nwc` | Navisworks cache | `NwcIO.Scene` | | `dwg` | DWG drawing | `DwgIO.Scene` (later) | | `glb` | binary glTF | `IOScene.Formats` (later) | | `obj` | Wavefront OBJ | `IOScene.Formats` (later) | From 4d9716ab86216e8ad76a0e38b568d591bb64494c Mon Sep 17 00:00:00 2001 From: mahach666 <79989386+mahach666@users.noreply.github.com> Date: Sat, 14 Nov 2026 15:00:23 +0300 Subject: [PATCH 2/2] Note which Revit material keys NwcIO.Scene writes --- docs/keys.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/keys.md b/docs/keys.md index 246cd8a..7055978 100644 --- a/docs/keys.md +++ b/docs/keys.md @@ -61,10 +61,10 @@ occurrence sets. | Key | Used on | Meaning | |---|---|---| | `nwc:` | property set | A Navisworks property tab by its internal name, for tabs whose internal name the Revit exporter fixes: `nwc:LcRevitData_Element`, `nwc:LcRevitData_Type`, `nwc:LcRevitMaterialProperties`, and `nwc:LcRevitId` (the element id). | -| `nwc:.` | property | A property of such a tab by its internal name, for names that do not change with language or a renamed parameter: built-in Revit parameters `lcldrevit_parameter_-` (`nwc:LcRevitData_Element.lcldrevit_parameter_-1001107`), the exporter's `LcRevitPropertyElement{Category,CategoryId,Family,Id,Name,Type}`, Revit material asset names `revit_`, and `LcRevitId`. | +| `nwc:.` | property | A property of such a tab by its internal name, for names that do not change with language or a renamed parameter: built-in Revit parameters `lcldrevit_parameter_-` (`nwc:LcRevitData_Element.lcldrevit_parameter_-1001107`), the exporter's `LcRevitPropertyElement{Category,CategoryId,Family,Id,Name,Type}`, Revit material asset names `revit_` (letters, digits and underscore) except `revit_mat_cust_prop_*`, and `LcRevitId`. | Other tabs and properties (references to other elements, rooms, and parameters whose internal name the exporter derives -from their display name) have no key. Keys for them are registered when `NwcIO.Scene` first writes them; that is an +from their display name, and custom material properties `revit_mat_cust_prop_*`) have no key. Keys for them are registered when `NwcIO.Scene` first writes them; that is an addition. ## `SourceFormat` values