View¶
The View table (DXF Reference) stores named views of the model or paperspace layouts. This stored views makes parts of the drawing or some view points of the model in a CAD applications more accessible. This views have no influence to the drawing content or to the generated output by exporting PDFs or plotting on paper sheets, they are just for the convenience of CAD application users.
Subclass of |
|
DXF type |
|
Factory function |
|
See also
DXF Internals: VIEW Table
- class ezdxf.entities.View¶
-
- dxf.name¶
Name of view.
- dxf.flags¶
Standard flag values (bit-coded values):
1
If set, this is a paper space view
16
If set, table entry is externally dependent on an xref
32
If both this bit and bit 16 are set, the externally dependent xref has been successfully resolved
64
If set, the table entry was referenced by at least one entity in the drawing the last time the drawing was edited. (This flag is only for the benefit of AutoCAD)
- dxf.height¶
View height (in DCS)
- dxf.width¶
View width (in DCS)
- dxf.center_point¶
View center point (in DCS)
- dxf.direction_point¶
View direction from target (in WCS)
- dxf.target_point¶
Target point (in WCS)
- dxf.lens_length¶
Lens length
- dxf.front_clipping¶
Front clipping plane (offset from target point)
- dxf.back_clipping¶
Back clipping plane (offset from target point)
- dxf.view_twist¶
Twist angle in degrees.
- dxf.view_mode¶
View mode (see VIEWMODE system variable)
- dxf.render_mode¶
0
2D Optimized (classic 2D)
1
Wireframe
2
Hidden line
3
Flat shaded
4
Gouraud shaded
5
Flat shaded with wireframe
6
Gouraud shaded with wireframe
- dxf.ucs¶
1 if there is a UCS associated to this view; 0 otherwise
- dxf.ucs_origin¶
UCS origin as (x, y, z) tuple (appears only if
ucs
is set to 1)
- dxf.ucs_xaxis¶
UCS x-axis as (x, y, z) tuple (appears only if
ucs
is set to 1)
- dxf.ucs_yaxis¶
UCS y-axis as (x, y, z) tuple (appears only if
ucs
is set to 1)
- dxf.ucs_ortho_type¶
Orthographic type of UCS (appears only if
ucs
is set to 1)0
UCS is not orthographic
1
Top
2
Bottom
3
Front
4
Back
5
Left
6
Right
- dxf.elevation¶
UCS elevation
- dxf.ucs_handle¶
Handle of
UCSTable
if UCS is a named UCS. If not present, then UCS is unnamed (appears only ifucs
is set to 1)
- dxf.base_ucs_handle¶
Handle of
UCSTable
of base UCS if UCS is orthographic. If not present anducs_ortho_type
is non-zero, then base UCS is taken to be WORLD (appears only ifucs
is set to 1)
- dxf.camera_plottable¶
1 if the camera is plottable
- dxf.background_handle¶
Handle to background object (optional)
- dxf.live_selection_handle¶
Handle to live section object (optional)
- dxf.visual_style_handle¶
Handle to visual style object (optional)
- dxf.sun_handle¶
Sun hard ownership handle.