Skip to content

Skpwright 0.6.0

Latest

Choose a tag to compare

@granroth granroth released this 06 Nov 23:24

Skpwright 0.6.0 reads and writes every and all SketchUp releases from 3 to 2027!

The project was called OpenSKP up to 0.5.0.

Releases and formats

  • Files of releases 3 to 8, 2013 to 2016 and 2018 to 2020 read whole through one grammar and write back byte for byte. Model::write_as writes a model as any release 3 to 2020, and returns notes on what the target release cannot hold.
  • Releases 2021 to 2025 are supported through the 2026 container, which gates on its model revision. Files written at revision 17 or 18 open in current SketchUp.
  • Post-2017 features read into Model.features: hatch patterns, layer folders, line styles, physically based materials, environments, the coordinate reference system, snaps and procedures.
  • A 2017 radial dimension that names no edge reads whole instead of falling back to the byte scan.

Renamed

  • The crates are skpwright, skpwright-cli and skpwright-capi. The command is skpwright, and the C library is libskpwright, with its header include/skpwright.h and the skpwright_ function prefix. The 0.5.0 and earlier versions stay on crates.io as the openskp crates.

Upgrading from 0.5

  • Document17 is StreamDocument and takes a release. Model::write_2017 is write_as(path, Release::R2017). Container::Carchive2017 is Container::Stream, and the JSON reports "stream".
  • Model, RenderingOptions, RadialDimension and Diagnostic gain fields and variants, so struct literals that name every field and exhaustive matches must add them.

See the changelog for the full list.

skpwright = "0.6"