From c7eb096b7f39de4cdf0d6b4ad50dfbed0933b997 Mon Sep 17 00:00:00 2001
From: mahach666 <79989386+mahach666@users.noreply.github.com>
Date: Sun, 29 Nov 2026 06:48:44 +0300
Subject: [PATCH 1/2] Prepare the 0.2.0 release
Bump the version to 0.2.0 (Directory.Build.props) and stamp the CHANGELOG
section; the Unreleased list is fully released. The package validation
baseline stays at the published 0.1.0 with the suppression file of issue #11;
it moves to 0.2.0 when this version ships.
Update the version mentions in the README, docs/index.md, docs/cli.md and
docs/dependencies.md.
---
CHANGELOG.md | 2 +-
Directory.Build.props | 2 +-
README.md | 2 +-
docs/cli.md | 2 +-
docs/dependencies.md | 4 ++--
docs/index.md | 5 ++---
src/TdbIO.Scene/TdbSceneReader.cs | 2 +-
7 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d7dee38..4270b2f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,7 +4,7 @@ All notable changes are documented here. The format follows [Keep a Changelog](h
and the project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html); versions before 1.0 may change the
API between minor releases.
-## [Unreleased]
+## [0.2.0] - 2026-11-29
### Added
diff --git a/Directory.Build.props b/Directory.Build.props
index 9b8ccf5..864dec8 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -6,7 +6,7 @@
enable
true
true
- 0.1.0
+ 0.2.0
true
true
snupkg
diff --git a/README.md b/README.md
index b289b68..73d4262 100644
--- a/README.md
+++ b/README.md
@@ -203,7 +203,7 @@ Values that differ from the ones always seen are kept and reported in `Warnings`
## Limitations
-- Version 0.1.0 is a preview. The API can change before 1.0.
+- Version 0.2.0 is a preview. The API can change before 1.0.
- Reading only. There is no support for writing or changing files.
- Rows are decoded into typed values only for the most used tables of a model database. `.db2` rows and the rows of the
other tables are given as raw bytes with their offsets. The meaning of section keys, of descriptor words and of the
diff --git a/docs/cli.md b/docs/cli.md
index 753cf3c..f7ab263 100644
--- a/docs/cli.md
+++ b/docs/cli.md
@@ -24,7 +24,7 @@ Usage: tdbio info [--json] [--encoding ascii|utf-8|cp1251|cp1252]
| `tdbio text ` | model databases (`.db1`) | A tab-separated header line, then one line per text chain, then one line per orphan row. |
| `tdbio export [output]` | model databases (`.db1`) | The object model as JSON (default), or with an option: `--ifc` (IFC), `--scene-json` (an IOScene scene), or no format option and an `.html` output (a standalone viewer). |
| `tdbio --help`, `tdbio -h` | | The usage text, on standard output. |
-| `tdbio --version` | | `tdbio `, for example `tdbio 0.1.0`. |
+| `tdbio --version` | | `tdbio `, for example `tdbio 0.2.0`. |
The command comes first; options may come before or after the file. The kind of the file is found from its content, not
from its extension (reports, which have no signature, are recognised by the `.xsr` file name).
diff --git a/docs/dependencies.md b/docs/dependencies.md
index a30a171..2d17768 100644
--- a/docs/dependencies.md
+++ b/docs/dependencies.md
@@ -55,12 +55,12 @@ advisory is reported as an NU1901-NU1904 warning at restore. Check manually:
dotnet list TdbIO.slnx package --vulnerable --include-transitive
dotnet list TdbIO.slnx package --outdated
-At version 0.1.0 the audit reports no vulnerable packages in any project. Re-run it when changing dependencies.
+At version 0.2.0 the audit reports no vulnerable packages in any project. Re-run it when changing dependencies.
## Build settings
`Directory.Build.props` sets `LangVersion` 14.0, `Nullable` enable, `ImplicitUsings` enable, `Deterministic` true,
-`EmbedUntrackedSources` true, `PublishRepositoryUrl` true, `VersionPrefix` 0.1.0, symbol packages (`snupkg`), a
+`EmbedUntrackedSources` true, `PublishRepositoryUrl` true, `VersionPrefix` 0.2.0, symbol packages (`snupkg`), a
`PathMap` that keeps the build folder out of binaries, and `ContinuousIntegrationBuild` true when `CI`,
`GITHUB_ACTIONS` or `TF_BUILD` is set. `src/Directory.Build.props` turns warnings into errors for the library and the
tool; the library generates XML documentation for every public member. `tests/Directory.Build.props` turns warnings into
diff --git a/docs/index.md b/docs/index.md
index 57bb3a1..85266af 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -16,9 +16,8 @@ Structures: model databases (`.db1`, `.db2` and their `.bak` copies), DBV@ files
- Reads DSTV NC parts, the block tree of templates and the pages of reports.
- Gives every value whose meaning is not known as stored, and reports unexpected values as warnings.
-The library targets .NET 8 and .NET 10, has no package dependencies and never writes to the console. Version 0.1.0 is a
-preview: the object model, its exports and the `TdbIO.Scene` adapter are on the main branch and await their first
-release. Part geometry is approximated by boxes; see the limitations of the [README](https://github.com/IOExtend/TdbIO#limitations).
+The library targets .NET 8 and .NET 10, has no package dependencies and never writes to the console. Version 0.2.0
+adds the object model, its exports and the `TdbIO.Scene` adapter. Part geometry is approximated by boxes; see the limitations of the [README](https://github.com/IOExtend/TdbIO#limitations).
## Where to go next
diff --git a/src/TdbIO.Scene/TdbSceneReader.cs b/src/TdbIO.Scene/TdbSceneReader.cs
index 46a2908..e000133 100644
--- a/src/TdbIO.Scene/TdbSceneReader.cs
+++ b/src/TdbIO.Scene/TdbSceneReader.cs
@@ -18,7 +18,7 @@ public static class TdbSceneReader
private const int ModelId = 1;
private static readonly string Producer = "TdbIO.Scene "
- + (typeof(TdbSceneReader).Assembly.GetCustomAttribute()?.InformationalVersion.Split('+')[0] ?? "0.1.0");
+ + (typeof(TdbSceneReader).Assembly.GetCustomAttribute()?.InformationalVersion.Split('+')[0] ?? "0.2.0");
/// Reads a Tekla model database file (.db1) and converts it into a scene.
/// Path to the model database file (.db1).
From 458ad302b3ba63ae6ccce18aa9992010bbb9e257 Mon Sep 17 00:00:00 2001
From: mahach666 <79989386+mahach666@users.noreply.github.com>
Date: Wed, 2 Dec 2026 15:20:34 +0300
Subject: [PATCH 2/2] Report the released engine version in IFC exports
---
CHANGELOG.md | 1 +
README.md | 4 ++--
src/TdbIO/Ifc/IfcExporter.cs | 6 +++++-
tests/TdbIO.Tests/IfcExportTests.cs | 14 ++++++++++++++
4 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4270b2f..9e19307 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -63,6 +63,7 @@ API between minor releases.
### Fixed
+- IFC exports record the version of the TdbIO library in `IfcApplication.Version`.
- The text values of table rows are no longer required to be UTF-8. They are single-byte in the code page of the system
that saved the model, so `ReadModel()` and `tdbio export` failed with `invalid UTF-8 string` on every model saved on a
non-English system. Each value is now read as ASCII or UTF-8 when its bytes are, else in code page 1251 or 1252,
diff --git a/README.md b/README.md
index 73d4262..9b88441 100644
--- a/README.md
+++ b/README.md
@@ -43,8 +43,8 @@ The library targets .NET 8 and .NET 10. It uses managed code without package dep
is tested on Windows, Linux and macOS. So that an export never overwrites its input, the command line tool asks the
operating system whether two paths name the same file (symbolic links, junctions, hard links).
-`TdbIO.Scene`, the adapter from the object model to an IOScene scene document, is in this repository
-(`src/TdbIO.Scene`). It is not on nuget.org yet.
+[`TdbIO.Scene`](https://www.nuget.org/packages/TdbIO.Scene) converts the object model to an IOScene scene document.
+The first release of the adapter is version 0.2.0.
## Command line
diff --git a/src/TdbIO/Ifc/IfcExporter.cs b/src/TdbIO/Ifc/IfcExporter.cs
index 9f4975d..1b98620 100644
--- a/src/TdbIO/Ifc/IfcExporter.cs
+++ b/src/TdbIO/Ifc/IfcExporter.cs
@@ -1,4 +1,5 @@
using System.Globalization;
+using System.Reflection;
using System.Text;
using TdbIO;
using TdbIO.Internal;
@@ -17,6 +18,9 @@ internal static class IfcExporter
{
private const string DegreeInRadians = "0.017453292519943278";
+ private static readonly string ApplicationVersion = typeof(IfcExporter).Assembly
+ .GetCustomAttribute()?.InformationalVersion.Split('+')[0] ?? "unknown";
+
/// Writes a to an IFC file at the specified path.
public static void WriteFile(TeklaModel model, string path, TeklaIfcExportOptions? options = null)
{
@@ -71,7 +75,7 @@ public static void Write(
int personId = w.Add("IFCPERSON", $"$,{StepWriter.Str(options.Author)},$,$,$,$,$,$");
int orgId = w.Add("IFCORGANIZATION", $"$,{StepWriter.Str(options.Organization)},$,$,$");
int personOrgId = w.Add("IFCPERSONANDORGANIZATION", $"{StepWriter.Ref(personId)},{StepWriter.Ref(orgId)},$");
- int appId = w.Add("IFCAPPLICATION", $"{StepWriter.Ref(orgId)},'0.1.0',{StepWriter.Str(options.Application)},'TdbIO'");
+ int appId = w.Add("IFCAPPLICATION", $"{StepWriter.Ref(orgId)},{StepWriter.Str(ApplicationVersion)},{StepWriter.Str(options.Application)},'TdbIO'");
int epochSeconds = (int)(DateTime.UtcNow - DateTime.UnixEpoch).TotalSeconds;
int ownerHistoryId = w.Add("IFCOWNERHISTORY",
diff --git a/tests/TdbIO.Tests/IfcExportTests.cs b/tests/TdbIO.Tests/IfcExportTests.cs
index 451a160..e54f187 100644
--- a/tests/TdbIO.Tests/IfcExportTests.cs
+++ b/tests/TdbIO.Tests/IfcExportTests.cs
@@ -1,5 +1,7 @@
using System.Globalization;
+using System.Reflection;
using System.Text;
+using System.Text.RegularExpressions;
using TdbIO.Internal;
using TdbIO.Internal.Export;
using Xunit;
@@ -126,6 +128,18 @@ public void IfcGuid_DeterministicFromElementId()
Assert.NotEqual(guid1, guidOther);
}
+ [Fact]
+ public void TeklaModel_ToIfc_RecordsTheEngineVersion()
+ {
+ var model = CreateSyntheticModel();
+ string version = typeof(TeklaModel).Assembly
+ .GetCustomAttribute()!.InformationalVersion.Split('+')[0];
+
+ string ifc = model.ToIfc();
+
+ Assert.Matches($@"IFCAPPLICATION\(#\d+,'{Regex.Escape(version)}',", ifc);
+ }
+
[Fact]
public void TeklaModel_ExportsValidIfc2x3()
{