File: appsettings.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 (64 lines) | stat: -rw-r--r-- 1,729 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
59
60
61
62
63
64

.. _ezdxf_appsettings:

Application Settings
====================

.. module:: ezdxf.appsettings

This is a high-level module for working with CAD application settings and behaviors.
None of these settings have any influence on the behavior of `ezdxf`, since
`ezdxf` only takes care of the content of the DXF file and not of the way it is
presented to the user.

.. important::

    You need to understand that these settings work at the application level,
    `ezdxf` cannot force an application to do something in a certain way!
    The functionality of this module has been tested with Autodesk TrueView and
    BricsCAD, other applications may show different results or ignore the
    settings.

Set Current Properties
----------------------

The current properties are used by the CAD application to create new entities,
these settings do not affect how `ezdxf` creates new entities.

The module :mod:`ezdxf.gfxattribs` provides the class :meth:`~ezdxf.gfxattribs.GfxAttribs`,
which can load the current graphical entity settings from the HEADER section
for creating new entities by `ezdxf`: :meth:`~ezdxf.gfxattribs.GfxAttribs.load_from_header`

.. autofunction:: set_current_layer

.. autofunction:: set_current_color

.. autofunction:: set_current_linetype

.. autofunction:: set_current_lineweight

.. autofunction:: set_current_linetype_scale

.. autofunction:: set_current_textstyle

.. autofunction:: set_current_dimstyle

.. autofunction:: set_current_dimstyle_attribs

.. autofunction:: set_lineweight_display_style


Restore the WCS
---------------

.. autofunction:: restore_wcs

Update Extents
--------------

.. autofunction:: update_extents

Show Lineweight
---------------

.. autofunction:: show_lineweight