skppy.data_structure.meta

Parsed model metadata (model_meta section).

The metadata block stores ancillary information about the SketchUp model such as the version string, thumbnail paths, unit settings, and application name. Most fields are optional and may be None when absent from the file.

See skppy.parser.meta_parser.parse_meta_info() for the parser that populates this structure.

class skppy.data_structure.meta.SkpMetaInfo[source]

Bases: object

Parsed model metadata from the model_meta section.

version_string

SketchUp version that created the file (e.g. "{23.1.340}").

Type:

str or None

model_thumbnail_path

Relative path inside the ZIP to the model thumbnail image.

Type:

str or None

preview_thumbnail_path

Relative path inside the ZIP to the preview thumbnail image.

Type:

str or None

unit

Display unit string (e.g. "Inches", "Millimeters").

Type:

str or None

application

Application name that created the file.

Type:

str or None

temp_skpx_path

Temporary SKPX path used during save, if recorded.

Type:

str or None

contributors

List of contributor names embedded in the file.

Type:

list of str

unknown_values

Metadata values that could not be decoded.

Type:

list of str

raw_strings

All raw strings extracted from the metadata block.

Type:

list of str

__init__(version_string: str | None, model_thumbnail_path: str | None, preview_thumbnail_path: str | None, unit: str | None, application: str | None, temp_skpx_path: str | None, contributors: List[str], unknown_values: List[str], raw_strings: List[str]) None