File: objects.rst

package info (click to toggle)
ezdxf 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 104,528 kB
  • sloc: python: 182,341; makefile: 116; lisp: 20; ansic: 4
file content (58 lines) | stat: -rw-r--r-- 1,305 bytes parent folder | download
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
52
53
54
55
56
57
58
Objects Section
===============

.. module:: ezdxf.sections.objects

The OBJECTS section is the home of all none graphical objects of a DXF document.
The OBJECTS section is accessible by the :attr:`Drawing.objects` attribute.


Convenience methods of the :class:`~ezdxf.document.Drawing` object to create essential
structures in the OBJECTS section:

    - IMAGEDEF: :meth:`~ezdxf.document.Drawing.add_image_def`
    - UNDERLAYDEF: :meth:`~ezdxf.document.Drawing.add_underlay_def`
    - RASTERVARIABLES: :meth:`~ezdxf.document.Drawing.set_raster_variables`
    - WIPEOUTVARIABLES: :meth:`~ezdxf.document.Drawing.set_wipeout_variables`

.. seealso::

    DXF Internals: :ref:`objects_section_internals`

.. class:: ObjectsSection

    .. autoattribute:: rootdict

    .. automethod:: __len__

    .. automethod:: __iter__

    .. automethod:: __getitem__

    .. automethod:: __contains__

    .. automethod:: query

    .. automethod:: add_dictionary

    .. automethod:: add_dictionary_with_default

    .. automethod:: add_dictionary_var

    .. automethod:: add_geodata

    .. automethod:: add_image_def

    .. automethod:: add_placeholder

    .. automethod:: add_underlay_def

    .. automethod:: add_xrecord

    .. automethod:: set_raster_variables

    .. automethod:: set_wipeout_variables