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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
os: [windows-latest, ubuntu-latest, macos-15]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
Expand Down
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<!-- The scene adapter depends on IOScene. The compatibility exporters use IOScene.Formats and IOViewer. -->
<PackageVersion Include="IOScene" Version="[0.1.2, 0.2.0-0.0)" />
<PackageVersion Include="IOScene.Formats" Version="[0.1.0-preview.2]" />
<PackageVersion Include="IOViewer" Version="[0.4.2]" />
<PackageVersion Include="IOViewer" Version="[0.4.3]" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Draw model space to SVG (X to the right, Y up, ACI colours; `--scale` sets pixel
dwgio svg drawing.dwg drawing.svg --scale 2
```

Open the drawing in the standalone 3D viewer, or choose the AutoCAD-style top view with `--mode 2d`:
Open the drawing in the standalone 3D viewer, or choose the AutoCAD-style top view with `--mode 2d`. Use `--mode auto` to start in 2D when the drawing has paper sheets or flat linework:

```sh
dwgio drawing.dwg drawing.html
Expand Down
2 changes: 2 additions & 0 deletions docs/public-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ The CLI uses these exporters and adds a 2D HTML viewer:

- `dwgio drawing.dwg drawing.html` exports the interactive 3D WebGL viewer via [IOViewer](https://github.com/IOExtend/IOViewer). You can also pass `--mode 3d`.
- `dwgio drawing.dwg drawing.html --mode 2d` exports an AutoCAD-style top view. Use `--bg black|slate|light` to set its background.
- `dwgio drawing.dwg drawing.html --mode auto` opens paper sheets or flat linework in 2D. Paper sheets remain selectable when the viewer starts in 3D model space.
- `dwgio drawing.dwg out.obj --unit mm` and `dwgio drawing.dwg out.glb --unit mm` pass `--unit` to the scene converter.
- The scene, OBJ, GLB and HTML commands use metres by default. Pass `--unit auto` to use a supported `$INSUNITS`.
- External DWG references are skipped by default. Library callers can set `DwgSceneOptions.ResolveXrefs = true` to read trusted sibling DWG files by name.

## Diagnostics

Expand Down
Loading
Loading