Repository navigation
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_aswrites 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-cliandskpwright-capi. The command isskpwright, and the C library islibskpwright, with its headerinclude/skpwright.hand theskpwright_function prefix. The 0.5.0 and earlier versions stay on crates.io as theopenskpcrates.
Upgrading from 0.5
Document17isStreamDocumentand takes a release.Model::write_2017iswrite_as(path, Release::R2017).Container::Carchive2017isContainer::Stream, and the JSON reports"stream".Model,RenderingOptions,RadialDimensionandDiagnosticgain 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"