Shape

The SHAPE entity (DXF Reference) is used like a block references, each SHAPE reference can be scaled and rotated individually. The SHAPE definitions are stored in external shape files (*.SHX), and ezdxf can not load or create these shape files.

Subclass of

ezdxf.entities.DXFGraphic

DXF type

'SHAPE'

Factory function

ezdxf.layouts.BaseLayout.add_shape()

Inherited DXF attributes

Common graphical DXF attributes

Warning

Do not instantiate entity classes by yourself - always use the provided factory functions!

class ezdxf.entities.Shape
dxf.insert

Insertion location as (2D/3D Point in WCS)

dxf.name

Shape name (str)

dxf.size

Shape size (float)

dxf.rotation

Rotation angle in degrees; default value is 0

dxf.xscale

Relative X scale factor (float); default value is 1

dxf.oblique

Oblique angle in degrees (float); default value is 0

transform(m: Matrix44) Shape

Transform the SHAPE entity by transformation matrix m inplace.