skppy.parser_legacy.parser¶
Build the shared public model from a pre-ZIP SketchUp object graph.
The pipeline reads the envelope, seeds one archive identity table, decodes the
root component and model tail, then resolves archive references into the same
Model classes used by the modern parser.
Call skppy.load() for automatic modern/legacy dispatch; the functions in
this module are useful when a caller already knows that a stream is pre-ZIP.
- skppy.parser_legacy.parser.parse_legacy_bytes(data: bytes, *, import_vray_materials: bool = False) Model[source]
Parse a pre-ZIP SketchUp byte string into a shared
Model.
- skppy.parser_legacy.parser.parse_legacy_header(stream: BinaryIO) ArchiveProvenance[source]
Parse a pre-ZIP file envelope, version map, and archive payload.
- skppy.parser_legacy.parser.parse_legacy_model(stream: BinaryIO, *, import_vray_materials: bool = False) Model[source]
Parse a pre-ZIP SketchUp stream into the shared
Model.Class layouts are selected from the file’s product version and
CVersionMap. Archive provenance remains available throughmodel.legacy_archivewhile semantic data is returned in the shared model classes used by the modern parser.