File: plotsettings.rst

package info (click to toggle)
ezdxf 1.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 104,564 kB
  • sloc: python: 182,669; makefile: 116; lisp: 20; ansic: 4
file content (220 lines) | stat: -rw-r--r-- 4,859 bytes parent folder | download | duplicates (2)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
PlotSettings
============

.. module:: ezdxf.entities
    :noindex:

All `PLOTSETTINGS`_ attributes are part of the :class:`~ezdxf.entities.DXFLayout`
entity, I don't know if this entity also appears as standalone entity.

======================== ===========================================================
Subclass of              :class:`ezdxf.entities.DXFObject`
DXF type                 ``'PLOTSETTINGS'``
Factory function         internal data structure
======================== ===========================================================

.. _PLOTSETTINGS: http://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-1113675E-AB07-4567-801A-310CDE0D56E9


.. class:: PlotSettings

    .. attribute:: dxf.page_setup_name

        default is ""

    .. attribute:: dxf.plot_configuration_file

        default is "Adobe PDF"

    .. attribute:: dxf.paper_size

        default is "A3"

    .. attribute:: dxf.plot_view_name

        default is ""

    .. attribute:: dxf.left_margin

        default is 7.5 mm

    .. attribute:: dxf.bottom_margin

        default is 20 mm

    .. attribute:: dxf.right_margin

        default is 7.5 mm

    .. attribute:: dxf.top_margin

        default is 20 mm

    .. attribute:: dxf.paper_width

        default is 420 mm

    .. attribute:: dxf.paper_height

        default is 297 mm

    .. attribute:: dxf.plot_origin_x_offset

        default is 0

    .. attribute:: dxf.plot_origin_y_offset

        default is 0

    .. attribute:: dxf.plot_window_x1

        default is 0

    .. attribute:: dxf.plot_window_y1

        default is 0

    .. attribute:: dxf.plot_window_x2

        default is 0

    .. attribute:: dxf.plot_window_y2

        default is 0

    .. attribute:: dxf.scale_numerator

        default is 1

    .. attribute:: dxf.scale_denominator

        default is 1

    .. attribute:: dxf.plot_layout_flags

        ======= ======================================
        1       plot viewport borders
        2       show plot-styles
        4       plot centered
        8       plot hidden == hide paperspace entities?
        16      use standard scale
        32      plot with plot-styles
        64      scale lineweights
        128     plot entity lineweights
        512     draw viewports first
        1024    model type
        2048    update paper
        4096    zoom to paper on update
        8192    initializing
        16384   prev plot-init
        ======= ======================================

        default is 688

    .. attribute:: dxf.plot_paper_units

        === =====================
        0   Plot in inches
        1   Plot in millimeters
        2   Plot in pixels
        === =====================

    .. attribute:: dxf.plot_rotation

        === =============================
        0   No rotation
        1   90 degrees counterclockwise
        2   Upside-down
        3   90 degrees clockwise
        === =============================

    .. attribute:: dxf.plot_type

        === =============================
        0   Last screen display
        1   Drawing extents
        2   Drawing limits
        3   View specified by code 6
        4   Window specified by codes 48, 49, 140, and 141
        5   Layout information
        === =============================

    .. attribute:: dxf.current_style_sheet

        default is ""

    .. attribute:: dxf.standard_scale_type

        === =============================
        0   Scaled to Fit
        1   1/128"=1'
        2   1/64"=1'
        3   1/32"=1'
        4   1/16"=1'
        5   3/32"=1'
        6   1/8"=1'
        7   3/16"=1'
        8   1/4"=1'
        9   3/8"=1'
        10  1/2"=1'
        11  3/4"=1'
        12  1"=1'
        13  3"=1'
        14  6"=1'
        15  1'=1'
        16  1:1
        17  1:2
        18  1:4
        19  1:8
        20  1:10
        21  1:16
        22  1:20
        23  1:30
        24  1:40
        25  1:50
        26  1:100
        27  2:1
        28  4:1
        29  8:1
        30  10:1
        31  100:1
        32  1000:1
        === =============================

    .. attribute:: dxf.shade_plot_mode

        === =============================
        0   As Displayed
        1   Wireframe
        2   Hidden
        3   Rendered
        === =============================

    .. attribute:: dxf.shade_plot_resolution_level

        === =============================
        0   Draft
        1   Preview
        2   Normal
        3   Presentation
        4   Maximum
        5   Custom
        === =============================

    .. attribute:: dxf.shade_plot_custom_dpi

        default is 300

    .. attribute:: dxf.unit_factor

        default is 1

    .. attribute:: dxf.paper_image_origin_x

        default is 0

    .. attribute:: dxf.paper_image_origin_y

        default is 0

    .. attribute:: dxf.shade_plot_handle