Body

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

See also

Ezdxf has only very limited support for ACIS based entities, 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')

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.

property acis_data: bytes | Sequence[str]

Returns SAT data for DXF R2000 up to R2010 and SAB data for DXF R2013 and later

property sat: Sequence[str]

Get/Set SAT data as sequence of strings.

property sab: bytes

Get/Set SAB data as bytes.

property has_binary_data

Returns True if the entity contains SAB data and False if the entity contains SAT data.

tostring() str

Returns ACIS SAT data as a single string if the entity has SAT data.