1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
Shape
=====
.. module:: ezdxf.entities
:noindex:
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 :class:`ezdxf.entities.DXFGraphic`
DXF type ``'SHAPE'``
Factory function :meth:`ezdxf.layouts.BaseLayout.add_shape`
Inherited DXF attributes :ref:`Common graphical DXF attributes`
======================== ==========================================
.. warning::
Do not instantiate entity classes by yourself - always use the provided factory functions!
.. class:: Shape
.. attribute:: dxf.insert
Insertion location as (2D/3D Point in :ref:`WCS`)
.. attribute:: dxf.name
Shape name (str)
.. attribute:: dxf.size
Shape size (float)
.. attribute:: dxf.rotation
Rotation angle in degrees; default value is 0
.. attribute:: dxf.xscale
Relative X scale factor (float); default value is 1
.. attribute:: dxf.oblique
Oblique angle in degrees (float); default value is 0
.. automethod:: transform
.. _DXF Reference: http://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-0988D755-9AAB-4D6C-8E26-EC636F507F2C
|