Skip to content

DrawingElement

DrawingElement = ComponentDefinition | ComponentInstance | ConstructionLine | ConstructionPoint | DimensionLinear | DimensionRadial | Edge | Face | Group | ImageEntity | SectionPlane | Snap | Text

A union of all entity types that can physically exist in the modeling space.

This is the base type for anything visible in a SketchUp model — edges, faces, groups, component instances, construction geometry, dimensions, text, images, and section planes. When you call model.entities.get(), the returned array contains DrawingElement objects. Each member of this union is a read-only snapshot of that entity at the time it was fetched.

You can narrow a DrawingElement to a specific type by checking its type property (a numeric enum from SketchupEntityEnum), or by fetching only the types you need with the filterBy option.