Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@

<!-- Runtime dependencies of the library: none. See docs/dependencies.md. -->

<ItemGroup>
<!-- Dependencies of TdbIO.Scene and TdbIO.Cli. -->
<PackageVersion Include="IOScene" Version="[0.1.0, 0.2.0-0.0)" />
<PackageVersion Include="IOViewer" Version="0.3.1" />
</ItemGroup>

<ItemGroup>
<!-- Build-time only. -->
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="10.0.403" />
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,22 @@ tdbio info list.tpl --encoding cp1252
tdbio info list.xsr --json
```

Export decoded Tekla model objects to JSON, Industry Foundation Classes (IFC) or a standalone 3D HTML viewer:

```sh
# Export to Tekla object model JSON
tdbio export model.db1 model.json

# Export to neutral IOScene JSON
tdbio export model.db1 model.scene.json --scene-json

# Export to IFC (IFC2x3 / IFC4)
tdbio export model.db1 model.ifc

# Generate an interactive 3D WebGL HTML viewer that works offline
tdbio export model.db1 viewer.html
```

Every command takes `--json` to write one JSON object instead of text. Warnings go to standard error and do not change
the exit code. The outputs above come from small synthetic files; the values are made up. Run `tdbio --help` for the
usage, and see [the command line](docs/cli.md) for every key, column and JSON property.
Expand Down
2 changes: 2 additions & 0 deletions TdbIO.slnx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<Solution>
<Folder Name="/src/">
<Project Path="src/TdbIO/TdbIO.csproj" />
<Project Path="src/TdbIO.Scene/TdbIO.Scene.csproj" />
<Project Path="src/TdbIO.Cli/TdbIO.Cli.csproj" />
</Folder>
<Project Path="tests/TdbIO.Tests/TdbIO.Tests.csproj" />
<Project Path="tests/TdbIO.Scene.Tests/TdbIO.Scene.Tests.csproj" />
</Solution>
7 changes: 5 additions & 2 deletions docs/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ Build settings shared by every project live in `Directory.Build.props`; the SDK

## Runtime packages

None. The library and the command line tool reference no packages and contain no third-party code. They use only the
.NET runtime libraries:
None for the core engine (`TdbIO`). The engine library references no external packages and contains no third-party code.
`TdbIO.Scene` references `IOScene` `[0.1.0, 0.2.0-0.0)` as the neutral scene contract.
`TdbIO.Cli` references `TdbIO.Scene` and `IOViewer` `0.3.1` for standalone HTML 3D viewer export.

They use the following .NET runtime libraries:

| Runtime library | Used for |
| --- | --- |
Expand Down
Loading
Loading