File: reorder.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 (19 lines) | stat: -rw-r--r-- 597 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Reorder
=======

.. module:: ezdxf.reorder

Tools to reorder DXF entities by handle or a special sort handle mapping.

Such reorder mappings are stored only in layouts as :class:`~ezdxf.layouts.Modelspace`,
:class:`~ezdxf.layouts.Paperspace` or :class:`~ezdxf.layouts.BlockLayout`,
and can be retrieved by the method :meth:`~ezdxf.layouts.Layout.get_redraw_order`.

Each entry in the handle mapping replaces the actual entity handle, where the
"0" handle has a special meaning, this handle always shows up at last in
ascending ordering.

.. autofunction:: ascending

.. autofunction:: descending