Body

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

ezdxf will never interpret ACIS source code, don’t ask me for this feature.

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')

Warning

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

class ezdxf.entities.Body
dxf.version

Modeler format version number, default value is 1

dxf.flags

Require DXF R2013.

dxf.uid

Require DXF R2013.

acis_data

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.

has_binary_data

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.