SketchUp C API

- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Enumerations
model_entity_type_private.h File Reference

Definition for SUEntityType. Don't include directly. More...

## Enumerations
enum | SUEntityType { SUEntityType_Edge, SUEntityType_Face, SUEntityType_ComponentInstance, SUEntityType_Group, SUEntityType_Image, SUEntityType_ComponentDefinition, SUEntityType_Layer, SUEntityType_Material, SUNumEntityTypes }
| Types of SUEntityRef objects. More...

## Detailed Description

Definition for SUEntityType. Don't include directly.

Warning
  Do not include this header directly. This file is part of a compatibility shim. Instead include `SketchUpAPI/model.h`.

## Enumeration Type Documentation

enum SUEntityType

Types of SUEntityRef objects.

See Also
  SUModelStatistics

Bug:
  This enum was incorrectly defined inside the SUModelStatistics struct. This is not valid C. As of SketchUp 2025.0 (API 13.0), this enum is conditionally defined outside of the struct when the header is consumed by a C compiler.

// Usage from a C compiler:
SUModelStatistics statistics;
SUModelGetStatistics(model, &statistics);
std::cout << "Faces: " << statistics.entity_counts[SUEntityType_Face] << "\n";
// Usage from a C++ compiler:
SUModelStatistics statistics;
SUModelGetStatistics(model, &statistics);
std::cout << "Faces: " << statistics.entity_counts[SUModelStatistics::SUEntityType_Face] << "\n";

Enumerator
SUEntityType_Edge | SUEdgeRef entities.
SUEntityType_Face | SUFaceRef entities.
SUEntityType_ComponentInstance | SUComponentInstanceRef entities.
SUEntityType_Group | SUGroupRef entities.
SUEntityType_Image | SUImageRef entities.
SUEntityType_ComponentDefinition | SUComponentDefinitionRef entities.
SUEntityType_Layer | SULayerRef entities.
SUEntityType_Material | SUMaterialRef entities.
SUNumEntityTypes | Number of entity types.