BODY (DXF Reference) created by an ACIS based geometry kernel provided by the Spatial Corp.

See also

Ezdxf will never create or interpret ACIS data, for more information see the FAQ: How to add/edit ACIS based entities like 3DSOLID, REGION or SURFACE?

Subclass of ezdxf.entities.DXFGraphic
DXF type 'BODY'
Factory function ezdxf.layouts.BaseLayout.add_body()
Inherited DXF attributes Common graphical DXF attributes
Required DXF version DXF R2000 ('AC1015')


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

class ezdxf.entities.Body

Modeler format version number, default value is 1


Require DXF R2013.


Require DXF R2013.


Get/Set ACIS text data as list of strings for DXF R2000 to R2010 and binary encoded ACIS data for DXF R2013 and later as list of bytes.


Returns True if ACIS data is of type List[bytes], False if data is of type List[str].

tostring() → str

Returns ACIS data as one string for DXF R2000 to R2010.

tobytes() → bytes

Returns ACIS data as joined bytes for DXF R2013 and later.

set_text(text: str, sep: str = '\n') → None

Set ACIS data from one string.