The fields of each class in the object stream, in the order they are written. There is no public specification. These layouts are the ones published by the skppy format reference, checked against OpenSKP’s reader and against real SketchUp 2017 and 2018 files, every byte of which they account for. Where a class’s schema in the file falls outside the ones listed, the layout is not published, and the explorer stops there and says so.
In the tables, v is the class’s schema in the
version map. A field with no condition
is always present. The names are skppy’s; those it leaves unnamed keep the neutral names it
gave them, such as state_word and obsolete_reference.
Types
| Type | Meaning |
|---|---|
| u8, u16, u32, u64, i32, f32, f64 | Little-endian numbers. A bool is one byte. |
| sparse u64 | A mask byte, then one byte for each set bit: bit n set means the next byte is byte n of the value. |
| CString | An MFC CString. |
| RGBA | Four bytes: red, green, blue, alpha. |
| GUID | 16 bytes. |
| point, vector | Three f64; a plane is four f64. |
| object<T> | A CArchive object tag: null, a reference to an earlier object, or a new object of class T, whose body follows. |
| inline T | The body of class T with no tag of its own. T’s schema is its entry in the version map. |
| list of T | A u32 count, then that many T. |
| object list | Object tags until a null tag. |
| key/value list | Pairs of a CString key and a typed value, until an empty key. |
| options | A COptionsManager (see Options). |
Common bases
CEntity
Every entity class starts with this. In these files CEntity is at schema 5, so each entity carries its attribute container and a sparse persistent ID: a mask byte, then one byte for each set bit. The first entity in a model with no IDs yet writes a zero mask, which is the extra byte these files have over older ones.
| Field | Type | Condition |
|---|---|---|
| legacy_flags | u32 | v = 1 |
| attribute_container | object<CAttributeContainer> | v > 2 |
| persistent_id | u64 | v = 4 |
| persistent_id | sparse u64 | v > 4 |
CDrawingElement
| Field | Type | Condition |
|---|---|---|
| entity | inline CEntity | |
| material | object<CMaterial> | |
| hidden | bool | v ≠ 0 |
| casts_shadows | bool | v > 5 |
| receives_shadows | bool | v > 5 |
| soft | bool | v > 6 |
| smooth | bool | v > 7 |
| locked | bool | v > 8 |
| obsolete_reference_present | bool | v = 2 |
| obsolete_reference | object | v = 2 and the flag is set |
| layer | object<CLayer> | v > 3 |
CComponentBehavior
| Field | Type | Condition |
|---|---|---|
| entity | inline CEntity | |
| is_2d | bool | v ≥ 3 |
| cuts_opening | bool | |
| snap_to | u32 | v ≥ 2 |
| camera_flags | u8 | v > 3. Bit 0: always faces the camera. Bit 1: shadows face the sun. |
| no_scale_mask | u32 | v ≥ 5 |
Attributes
CAttribute (v = 0)
| Field | Type | Condition |
|---|---|---|
| entity | inline CEntity | |
| attribute_code | u32 |
CAttributeContainer (v = 0)
| Field | Type | Condition |
|---|---|---|
| entity | inline CEntity | |
| entries | object list |
CAttributeNamed
An attribute dictionary.
| Field | Type | Condition |
|---|---|---|
| entity | inline CEntity | |
| prefix | u32 | |
| name | CString | |
| entries | key/value list | |
| suffix | u32 | v > 0 |
CFaceTextureCoords
| Field | Type | Condition |
|---|---|---|
| entity | inline CEntity | |
| attribute_flags | u32 | |
| front_transform | 9 × f64 | |
| front_origin | point | v > 0 |
| back_transform | 9 × f64 | v > 1 |
| back_origin | point | v > 1 |
| front_pins | list of 4 × f64 | v > 2 |
| back_pins | list of 4 × f64 | v > 2 |
| front_flags | u32 | v > 3 |
| back_flags | u32 | v > 3. In both flags, bit 0x01 enables the side and bit 0x02 selects the stored projection direction. |
Geometry
CVertex (v = 0)
| Field | Type | Condition |
|---|---|---|
| entity | inline CEntity | |
| position | point |
CEdge
| Field | Type | Condition |
|---|---|---|
| drawing_element | inline CDrawingElement | |
| start_vertex | object<CVertex> | |
| end_vertex | object<CVertex> | |
| curve | object<CCurve> | v ≥ 2 |
CEdgeUse
| Field | Type | Condition |
|---|---|---|
| entity | inline CEntity | |
| edge | object<CEdge> | |
| reversed | bool | |
| loop | object<CLoop> | |
| obsolete_reference_1 | object | v = 0 |
| obsolete_reference_2 | object | v = 0 |
CLoop
| Field | Type | Condition |
|---|---|---|
| entity | inline CEntity | |
| is_outer | bool | |
| is_convex | bool | |
| edge_uses | object list |
CFace
| Field | Type | Condition |
|---|---|---|
| drawing_element | inline CDrawingElement | |
| plane | plane | |
| loops | list of object<CLoop> | |
| back_material | object<CMaterial> | v > 2 |
CCurve
| Field | Type | Condition |
|---|---|---|
| entity | inline CEntity | |
| first_edge | object<CEdge> | v = 3 |
| last_edge | object<CEdge> | v = 3 |
| is_polygon | bool | v = 3 or 4 |
| edge_count | u32 | v = 3 or 4 |
CArcCurve
| Field | Type | Condition |
|---|---|---|
| curve | inline CCurve | |
| center | point | v ≥ 1 |
| normal | vector | v ≥ 1 |
| x_axis | vector | v ≥ 1 |
| start_angle | f64 | v ≥ 1 |
| end_angle | f64 | v ≥ 1 |
| y_axis | vector | v ≥ 1 |
CConstructionGeometry (v = 0), CConstructionPoint (v = 0), CConstructionLine
CConstructionGeometry is an inline CDrawingElement.
CConstructionPoint: drawing_element, position (point), reference_position (point), has_reference_position (bool).
| CConstructionLine field | Type | Condition |
|---|---|---|
| drawing_element | inline CDrawingElement | |
| origin | point | |
| direction | vector | |
| start_parameter | f64 | v = 1 |
| end_parameter | f64 | v = 1 |
| stipple_pattern | u32 | v = 1 |
CPolyline3d (v = 0), CSectionPlane
CPolyline3d: drawing_element, then points (a list of points).
| CSectionPlane field | Type | Condition |
|---|---|---|
| drawing_element | inline CDrawingElement | |
| plane | plane | v = 2 or 3 |
| name | CString | v ≥ 3 and the file’s version ≥ 18 |
| symbol | CString | v ≥ 3 and the file’s version ≥ 18 |
Components
CComponent (v = 11)
| Field | Type | Condition |
|---|---|---|
| drawing_element | inline CDrawingElement | |
| materials | inline CMaterialManager | |
| layers | inline CLayerManager | |
| definitions | inline CDefinitionList | |
| entities | list of objects | |
| relationships | list of objects | |
| active_section_plane | object<CSectionPlane> |
CComponentDefinition (v = 10, 11)
| Field | Type | Condition |
|---|---|---|
| component | inline CComponent | |
| guid | GUID | |
| name | CString | |
| description | CString | |
| loaded_from | CString | |
| timestamp | u32 | A Unix time. |
| modified | bool | |
| insertion_point | point | |
| behavior | inline CComponentBehavior | |
| definition_type | u32 | Its values distinguish ordinary, group and image definitions; the numbers are not published. |
| thumbnail | object<CThumbnail> |
CComponentInstance
| Field | Type | Condition |
|---|---|---|
| drawing_element | inline CDrawingElement | |
| definition | object<CComponentDefinition> | |
| transform | 13 × f64 | The 3 × 3 basis, the translation and a homogeneous scale. |
| name | CString | v > 3 |
| guid | GUID | v ≥ 5 |
CGroup, CImage (v = 1)
Both are a component_instance: an inline CComponentInstance, as a placed group or image.
CDefinitionList (v = 0), CRelationship (v = 0), CRelationshipMap (v = 0)
CDefinitionList: definitions, a list of object<CComponentDefinition>. CRelationship: entity (inline CEntity), source (object<CEntity>), target (object<CEntity>). CRelationshipMap: relationships, a list of objects.
Materials and layers
CMaterial (v = 12)
| Field | Type | Condition |
|---|---|---|
| entity | inline CEntity | |
| name | CString | |
| has_texture | bool | |
| texture | inline CTexture | has_texture |
| used_by_layer | bool | |
| color | RGBA | |
| display_name | CString | |
| material_type | u32 | 0 colour, 1 textured, 2 textured and colourised. |
| colorize_type | u32 | 0 shift, 1 tint. |
| transparency | f64 | Opacity is 1 − the value, and applies only when the next field is set. |
| use_transparency | bool |
CTexture
| Field | Type | Condition |
|---|---|---|
| has_inline_dib | bool | v < 5 |
| inline_dib | inline CDib | v < 5 and has_inline_dib |
| entity | inline CEntity | v ≥ 5 |
| dib | object<CDib> | v ≥ 5 |
| width | f64 | In inches, on the model. |
| height | f64 | In inches, on the model. |
| filename | CString | |
| average_color | RGBA |
CDib
| Field | Type | Condition |
|---|---|---|
| image_format | u32 | v > 1. 4 is a PNG, 1 a JPEG. |
| byte_count | u32 | v > 0 |
| image_bytes | bytes | v > 0 |
| format_1_suffix | u32 | v ≥ 3 and image_format = 1 |
CThumbnail, CMaterialManager, CLayer, CLayerManager, CLayerGroup, CCustomLineStyle, CLineStyleManager
CThumbnail: entity, a camera (inline old camera at v = 0, object<CCamera> at v = 1), then dib (object<CDib>). CMaterialManager: entity, materials (list of objects), current_material (object<CMaterial>, v ≥ 2).
| CLayer field | Type | Condition |
|---|---|---|
| entity | inline CEntity | |
| name | CString | |
| hidden | bool | |
| display_material | inline CMaterial | |
| page_behavior | u32 | v > 1 |
| obsolete_reference | object | v > 2 |
CLayerManager: entity, layers (list of objects), active_layer (object<CLayer>, at v = 3 or when layers is non-empty), folders (list, v = 6), root_folder (inline CLayerGroup, v ≥ 7).
CLayerGroup (v = 1 to 3, layer folders, from SketchUp 2020): entity, name, child_folders, child_layers (lists of objects), visible (bool, v > 1) and expanded (bool, v > 2).
| CCustomLineStyle field (from SketchUp 2019) | Type | Condition |
|---|---|---|
| entity | inline CEntity | |
| historical_entity | inline CEntity | v < 3 |
| name | CString | |
| dash_code | u16 | v = 1 |
| dash_pattern | CString | v > 1 |
| line_width_points | f64 | |
| stipple_scale | f64 | v > 1 |
| superseded_width | f64 | v = 2 or 3 |
| color | u32 | v ≥ 4 |
| mutable | u8 | v ≥ 4 |
CLineStyleManager: entity, styles (list of objects).
Cameras, scenes and metadata
CCamera
| Field | Type | Condition |
|---|---|---|
| eye | point | |
| target | point | |
| up | vector | |
| near | f64 | |
| far | f64 | |
| perspective | bool | |
| field_of_view | f64 | |
| orthographic_height | f64 | |
| obsolete_vector | vector | |
| aspect_ratio | f64 | |
| fov_is_height | bool | |
| legacy_flag | bool | v ≥ 2 |
| name | CString | v > 2 |
| image_width | f64 | v > 3 |
| is_2d | bool | v > 4 |
| scale_2d | f64 | v > 4 |
| center_2d_x | f64 | v > 4 |
| center_2d_y | f64 | v > 4 |
CSketchUpPage (v = 1), CViewPage, CPageList (v = 1)
CSketchUpPage: entity, name, description. CPageList: entity, pages (list of objects), active_page (object<CViewPage>).
| CViewPage field | Type | Condition |
|---|---|---|
| page | inline CSketchUpPage | |
| flags | u32 | Which snapshots follow: 0x01 camera, 0x02 rendering options, 0x04 shadows, 0x08 axes, 0x10 hidden entities, 0x20 layer visibility, 0x40 section planes. The values are skppy’s (scene_pages.py, SCENE_FLAG_USE_CAMERA and on), and the real files agree. |
| camera | old camera / object<CCamera> | flags 0x01; old camera below v = 7 |
| rendering_options | inline CRenderingOptions | flags 0x02 |
| style | object<CSkpStyle> | flags 0x02 and v > 9 |
| shadow_info | inline CShadowInfo | flags 0x04 |
| display_shadows | bool | flags 0x04 |
| axes | inline CSketchCS | flags 0x08 |
| display_axes | bool | flags 0x08 |
| hidden_entities | list of objects | flags 0x10 |
| hidden_layers | list of objects | flags 0x20 |
| active_section_planes | list of objects | flags 0x40 |
| show_in_slideshow | bool | |
| display_watermarks | bool | 6 ≤ v ≤ 10 |
| transition_time | f64 | v ≥ 8 |
| delay_time | f64 | v ≥ 9 |
| background_image | object<CBackgroundImage> | v > 9 |
| display_background_image | bool | v ≥ 12 |
| image_rep_present | bool | v ≥ 12 |
| image_rep | inline ImageFileRep | v ≥ 12 and image_rep_present |
CBackgroundImage (v = 10), CSketchCS (v = 0), CShadowInfo (v = 7)
CBackgroundImage: entity, image_reference (inline ImageReference), visible (bool), opacity (f64), grip_points (list of points), principal_point_delta (vector), radial_distortion_k1 (f64), image_source (u32).
CSketchCS: drawing_element, origin (point), x_axis, y_axis, z_axis (vectors).
| CShadowInfo field | Type |
|---|---|
| entity | inline CEntity |
| time | u32, a Unix time |
| daylight_savings | bool |
| country | CString |
| city | CString |
| longitude | f64 |
| latitude | f64 |
| timezone_offset | f64 |
| north_direction | vector |
| display_shadows | bool |
| display_north | bool |
| display_on_all_faces | bool |
| display_on_ground_plane | bool |
| light | i32 |
| dark | i32 |
| use_sun_for_all_shading | bool |
CWatermark (v = 1), CWatermarkManager (v = 2)
CWatermark: entity, leading_flag (bool), name, state_word (u32), position (u32: 0 centre, 1 top left, 2 top right, 3 bottom left, 4 bottom right, 5 tiled, from skppy’s model_metadata.py), five one-byte state_flags, scale (f64), opacity (f64), path, dib (object<CDib>). CWatermarkManager: entity, watermarks (list of objects). The state words’ and flags’ meanings are not published; SketchUp’s own names for the later files’ watermark fields (tiled, stretch to fit, maintain aspect, for background) suggest what the flags are, but no source ties them to these bytes.
Annotation
CDimension, CDimensionLinear, CDimensionRadial (v = 2)
CDimension: drawing_element, text, then at v ≥ 1 font (object<CSkFont>), is_3d_text (bool) and arrow_type (u32; see Codes).
| CDimensionLinear field | Type | Condition |
|---|---|---|
| dimension | inline CDimension | |
| start_ref | inline CPointRef | |
| end_ref | inline CPointRef | |
| normal | vector | |
| x_axis | vector | |
| dimension_type | u32 | Values not published. |
| y_position | f64 | |
| x_position | f64 | |
| text_position | u32 | v > 5. skppy publishes 0 above, 1 inline, 2 below for the dimension style’s field; that the dimension uses the same codes is an inference. |
CDimensionRadial: dimension, target (object<CEdge>), parameter (f64), radius_ratio (f64), is_diameter (bool), and, when the target is null, arc: an inline CArc3d with its y_axis (skppy reads it with the y axis when the class schema is above 1, so at schema 2 always; 14 doubles in all). CPointRef: kind (u32), format_version (u32), position (point), leaf (object), secondary_leaf (object, format_version > 0), instance_path (list of objects), secondary_instance_path (list of objects, format_version > 3).
CText (v = 9), CSkFont, CFontManager (v = 0)
| CText field | Type |
|---|---|
| drawing_element | inline CDrawingElement |
| font | object<CSkFont> |
| screen_x | f64 |
| screen_y | f64 |
| point_ref | inline CPointRef |
| leader_vector | vector |
| view_direction | vector |
| leader_type | u32 |
| line_weight | u32 |
| point_ref_front | bool |
| hide_out_of_plane | bool |
| arrow_type | u32 |
| display_leader | bool |
| text | CString |
| convert_to_screen_on_explode | bool |
| hidden_leader_direction | u32 |
CSkFont: entity, face_name, bold, italic (bools), point_size (u32), then at v > 0 use_world_size (bool) and world_size (f64). CFontManager: entity, fonts (list of objects).
CTextStyle (v = 4, 5), CDimensionStyle (v = 4), CSkpStyle, CSkpStyleManager (v = 2)
CTextStyle: entity, font (object<CSkFont>), arrow_type, line_weight (u32s), hide_out_of_plane (bool), leader_type (u32), display_leader (bool), color (RGBA), then at v > 4 screen_color (RGBA) and screen_font (object<CSkFont>).
| CDimensionStyle field | Type |
|---|---|
| entity | inline CEntity |
| style_version | u32 |
| font | object<CSkFont> |
| text_3d | bool |
| always_readable | bool |
| extension_offset | u32 |
| extension_overshoot | u32 |
| line_weight | u32 |
| arrow_type | u32 |
| arrow_size | u32 |
| highlight_non_associative | bool |
| highlight_color | RGBA |
| show_radial_diameter_prefix | bool |
| hide_out_of_plane | bool |
| hide_out_of_plane_value | f64 |
| hide_small | bool |
| hide_small_value | f64 |
| color | RGBA |
| text_color | RGBA |
| text_position | u32 |
CSkpStyle (v = 1, 2): entity, guid, initial_file_name, style_version (u32), display_name, file_name, then its options (see Style options). CSkpStyleManager: entity, styles (list of objects), then, when there are styles, active_style, selected_style (objects) and selected_style_dirty (bool).
CRenderingOptions
Fields in order. The schema is 36 in SketchUp 2017 and 37 in 2018; the fields gated at v > 37 and above follow skppy and come in with 2019 and later.
| Field | Type | Condition |
|---|---|---|
| entity | inline CEntity | |
| render_mode | u32 | See Codes. |
| model_transparency, material_transparency | bool | |
| jitter_edges | bool | |
| line_style_edges | bool | v > 37 |
| edge_display_mode | u32 | |
| background_color, foreground_color, highlight_color, construction_color | RGBA | |
| obsolete_display_flag, display_instance_axes, display_color_by_layer, texture | bool | |
| edge_color_mode | u32 | |
| extend_lines | bool | |
| line_extension | u32 | |
| draw_silhouettes | bool | |
| silhouette_width | u32 | |
| draw_depth_que, depth_que_width, draw_line_ends, line_end_width | bool, u32 | v ≥ 26 |
| draw_profiles_only | bool | v ≥ 28 |
| draw_hidden_geometry | bool | |
| draw_hidden_objects | bool | v ≥ 39 |
| face_color_mode | u32 | |
| face_front_color, face_back_color | RGBA | |
| inactive_fade, instance_fade | f64 | |
| inactive_hidden, instance_hidden | bool | |
| display_fog, fog_color, fog_use_background_color, fog_start_dist, fog_end_dist | bool, RGBA, bool, f64, f64 | v ≥ 29 |
| fog_hint_mode | u32 | v ≥ 30 |
| edge_type | u32 | v > 30 |
| display_sketch_axes, display_text, display_dims, hide_construction_geometry | bool | v > 30 |
| sky_color | RGBA | |
| horizon_color | RGBA | v ≥ 24 |
| ground_color | RGBA | |
| draw_horizon, draw_ground, draw_underground | bool | |
| ground_transparency | u32 | |
| section_active_color, section_inactive_color, section_default_cut_color | RGBA | |
| section_cut_width | u32 | |
| section_display_mode | u32 | Bit 0x01 planes shown, 0x02 cuts shown. |
| section_default_fill_color, section_cut_filled | RGBA, bool | v > 36 |
| transparency_sort | u32 | |
| draw_soft_edges | bool | |
| soft_edge_limit | f64 | |
| draw_smooth_edges | bool | |
| mipmap_option | bool | v = 23, 24 or 33 |
| locked_color | RGBA | v ≥ 27 |
| display_watermarks | bool | v ≥ 32 |
| xray_opacity | f64 | v ≥ 35 |
| draw_back_edges, photomatch_draw_background, photomatch_background_opacity, photomatch_draw_overlay, photomatch_overlay_opacity | bool, bool, f64, bool, f64 | v ≥ 36 |
Embedded records
These have no class of their own in the version map.
CArc3d:center(point),normal,x_axis(vectors),start_angle,end_angle(f64), andy_axis(vector) where the owning class asks for it: the radial dimension does at schema 2.ImageReference:path,state(u32),dib(object<CDib>),width,height,file_size,timestamp(u32s).ImageFileRep:has_data(bool), then, when set,byte_count(u32) and the image bytes.CSchemaZipFile(seen, not in the skppy reference):path,name(CStrings), a u32 size and a complete ZIP file of schema files.
Style options
After a style’s file_name comes a u32 count, then for each option a u32 key and its value. skppy (metadata_payloads.py) reads three kinds of value:
| Key | Value |
|---|---|
1013 (0x3F5) | The NPR (sketchy) edge settings: a u32 version; two u32s below version 2, two f64 from version 2; a u32; a bool; two u32s; a u32 count and that many u32s; a u32 count and that many objects. skppy does not name the fields. |
5001 (0x1389) | The watermarks: a u32 count and that many objects, when the style’s style_version is above 2; nothing otherwise. |
| any other | A variant: a u32 serialisation version (1 in every file seen), a u32 type, then the value. |
| Variant type | Value |
|---|---|
| 0 | nothing |
| 1, 2 | one byte (1 a flag) |
| 3 | u16 |
| 4, 14 | u32 (4 a signed number) |
| 5 | a colour: four bytes R, G, B, A. SketchUp writes its colour keys (1014, 2002, 2003, 4000, 4001, 4003) as type 4 instead, so the key, not the type, says it is a colour; the explorer shows those keys as colours. |
| 6 | f32 |
| 7 | f64 |
| 9, 10, 11 | three f64 |
| 12 | sixteen f64 |
The widths are skppy’s; openskp-rs (styles.rs) agrees on 1, 4, 5, 6 and 7. The two disagree on the u32 before the type: skppy reads it as a serialisation version and always reads a type after it; openskp-rs reads it as a presence flag, with no type when it is 0. In every file seen it is 1, so both readings give the same result here; a 0 has not been seen. Types 8 and 13 are not read by either source.
The keys are the same numbers as the item ids of style.xml in the later files. openskp-rs names these: 1000 EdgeDisplayMode, 1005 LineExtension, 1006 DrawSilhouettes, 1007 SilhouetteWidth, 1009 DepthQueWidth, 1011 LineEndWidth, 1012 JitterEdges, 1014 ForegroundColor, 2001 RenderMode, 2002 FaceFrontColor, 2003 FaceBackColor, 4000 BackgroundColor, 4001 SkyColor, 4002 DrawHorizon, 4003 GroundColor, 4005 GroundTransparency, 8102 AODistance. 1010 is unconfirmed there, and the other keys are not published. openskp-rs also gives variant types 2 and 3 widths of 2 and 4 bytes, against skppy’s 1 and 2; it sees only types 1, 4 and 7, and so does every file here.
Codes
| Field | Values | Source |
|---|---|---|
CRenderingOptions render_mode | 0 wireframe, 1 hidden line, 2 shaded, 5 monochrome; 3 seen only in colour-set styles, meaning not confirmed; 4 not seen. “Shaded with textures” is the separate texture flag. | openskp-rs, RENDER.md §7 |
arrow_type (CText, CTextStyle, CDimension, CDimensionStyle) | 0 none, 1 slash, 2 dot, 3 closed, 4 open. skppy’s docstring (1 dot, 2 closed, 3 open) is wrong: SketchUp’s SDK reads skppy’s written 3 back as closed. | SketchUp SDK arrow_type.h; skppy-tests |
CLayer page_behavior | bits: 0x01 hidden by default; 0x10 visible on new scenes, 0x20 hidden on new scenes (neither: the default visibility). That the file holds the Ruby API’s value is an inference; skppy writes it unchanged. | Ruby API Layer#page_behavior |
CComponentBehavior snap_to | SketchUp’s API has SUSnapToBehavior: none 0, any 1, horizontal 2, vertical 3, sloped 4. That the file uses it is an inference. | SketchUp SDK |
CDimensionLinear dimension_type, text_position | Not published for the file. The API has SUDimensionType (invalid 0, linear 1, radial 2), SUDimensionLinearAlignmentType (aligned 0, vertical 1, horizontal 2), SUHorizontalTextPositionType (center 0, outside start 1, outside end 2) and SUVerticalTextPositionType (center 0, above 1, below 2); which, if any, these fields hold is not known. | SketchUp SDK |
CLayerGroup visible | skppy’s name. In the 2021 files the matching field is a hidden bit (1 hidden); which way this one runs is not verified, as no real file with layer folders was available. | skppy |
leader_type (CText, CTextStyle) | 0 none, 1 view-based, 2 pushpin | skppy |
CDimensionStyle text_position | 0 above, 1 inline, 2 below | skppy |
CWatermark position | 0 centre, 1 top left, 2 top right, 3 bottom left, 4 bottom right, 5 tiled | skppy |
CMaterial material_type, colorize_type | 0 colour, 1 textured, 2 textured and colourised; 0 shift, 1 tint | OpenSKP; SketchUp’s API uses the same numbers |
CDib image_format | 1 JPEG, 4 PNG. skppy says “PNG, JPEG, BMP, or related”; the numbers of the others are not published. | the files seen |
CRenderingOptions section_display_mode | bit 0x01 planes shown, 0x02 cuts shown | skppy |
What is not known
Not published, and not worked out here: the meanings of prologue_word_1 and _2, the 16 state_words, final_state and the last word of SketchUp 2018 files; the values of definition_type, dimension_type and CDimensionLinear’s text_position (SDK enumerations exist, see Codes), image_source, CPointRef’s kind, edge_display_mode (openskp-rs gives only 1, for Hidden Line), edge_type, edge_color_mode, face_color_mode, fog_hint_mode and transparency_sort; the fields of the NPR edge settings; the layout of CBackgroundImage at schemas 1 and 9 (SketchUp 6 and 7, so not met in this variant; skppy decodes only schema 10); and the style option keys other than those named above. The explorer shows each of these numbers with “not published”. CConstructionGeometry is listed for completeness: no field beyond the base is known. CSchemaFile and CSchemaFilterFile appear in the version map but were never met as objects in the files seen; their layouts are not published.
Versions not checked
SketchUp 2017 and 2018 files were decoded in full against these tables, down to the last byte. SketchUp 2019 and 2020 follow skppy’s schema gates (CCustomLineStyle, layer folders, the later rendering options); no real file from those versions was available to the site. skppy’s public test suite, skppy-tests, has SketchUp’s own SDK save fixtures for those targets and runs skppy’s parser on them, which is public evidence for these layouts.