Shape

class Shape(GraphicEntity)

Shapes (dxftype is SHAPE) are objects that you use like blocks. Shapes are stored in external shape files (*.SHX). You can specify the scale and rotation for each shape reference as you add it. You can not create shapes with ezdxf, you can just insert shape references.

Create a Shape reference in layouts and blocks by factory function add_shape().

DXF Attributes for Shape

Common DXF Attributes for DXF R12

Common DXF Attributes for DXF R13 or later

Shape.dxf.insert

Insertion point as (2D/3D Point in OCS)

Shape.dxf.name

Shape name

Shape.dxf.size

Shape size

Shape.dxf.rotation

Rotation angle in degrees; default=0

Shape.dxf.xscale

Relative X scale factor; default=1

Shape.dxf.oblique

Oblique angle; default=0