libDXF 0.0.1
A library with DXF related functions written in C.
Data Fields

dxf_attdef_struct Struct Reference

DXF definition of an AutoCAD attribute definition entity (ATTDEF). More...

#include <attdef.h>

Collaboration diagram for dxf_attdef_struct:
Collaboration graph
[legend]

Data Fields

int id_code
char * linetype
char * layer
double elevation
double thickness
double linetype_scale
int16_t visibility
int color
int paperspace
int graphics_data_size
int16_t shadow_mode
DxfBinaryGraphicsDatabinary_graphics_data
char * dictionary_owner_soft
char * material
char * dictionary_owner_hard
int16_t lineweight
char * plot_style_name
long color_value
char * color_name
long transparency
char * default_value
char * tag_value
char * prompt_value
char * text_style
DxfPointp0
DxfPointp1
double height
double rel_x_scale
double rot_angle
double obl_angle
int attr_flags
int text_flags
int hor_align
int field_length
int vert_align
double extr_x0
double extr_y0
double extr_z0
struct DxfAttdefnext

Detailed Description

DXF definition of an AutoCAD attribute definition entity (ATTDEF).

Definition at line 60 of file attdef.h.


Field Documentation

Identification number for the entity.
This is to be an unique (sequential) number in the DXF file.
Group code = 5.

Definition at line 65 of file attdef.h.

Referenced by dxf_attdef_get_id_code(), dxf_attdef_read(), and dxf_attdef_set_id_code().

The linetype of the entity.
Defaults to BYLAYER if ommitted in the DXF file.
Group code = 6.

Definition at line 70 of file attdef.h.

Referenced by dxf_attdef_free(), dxf_attdef_get_linetype(), dxf_attdef_read(), and dxf_attdef_set_linetype().

Layer on which the entity is drawn.
Defaults to layer "0" if no valid layername is given.
Group code = 8.

Definition at line 74 of file attdef.h.

Referenced by dxf_attdef_free(), dxf_attdef_get_layer(), dxf_attdef_read(), and dxf_attdef_set_layer().

Elevation of the arc in the local Z-direction.
Defaults to 0.0 if omitted in the DXF file, or prior to DXF version R12, or DXF_FLATLAND equals 0 (default).
Group code = 38.

Definition at line 78 of file attdef.h.

Referenced by dxf_attdef_get_elevation(), dxf_attdef_read(), and dxf_attdef_set_elevation().

Thickness of the arc in the local Z-direction.
Defaults to 0.0 if ommitted in the DXF file.
Group code = 39.

Definition at line 83 of file attdef.h.

Referenced by dxf_attdef_get_thickness(), dxf_attdef_read(), and dxf_attdef_set_thickness().

Linetype scale (optional).
Group code = 48.

Definition at line 87 of file attdef.h.

Referenced by dxf_attdef_get_linetype_scale(), dxf_attdef_read(), and dxf_attdef_set_linetype_scale().

Object visibility (optional):

  1. Visible
  2. Invisible

Group code = 60.

Since:
Introduced in version R13.

Definition at line 90 of file attdef.h.

Referenced by dxf_attdef_get_visibility(), dxf_attdef_read(), and dxf_attdef_set_visibility().

Color of the entity.
Defaults to BYLAYER if ommitted in the DXF file.
Note that entities encapsulated in a block with the color BYBLOCK are represented in the "native" color of the BLOCK entity.
Group code = 62.

Definition at line 98 of file attdef.h.

Referenced by dxf_attdef_get_color(), dxf_attdef_read(), and dxf_attdef_set_color().

Entities are to be drawn on either PAPERSPACE or MODELSPACE.
Optional, defaults to DXF_MODELSPACE (0).
Group code = 67.

Since:
Introduced in version R13.

Definition at line 105 of file attdef.h.

Referenced by dxf_attdef_get_paperspace(), dxf_attdef_read(), dxf_attdef_set_paperspace(), and dxf_attdef_write().

Number of bytes in the proxy entity graphics represented in the sub-sequent 310 groups, which are binary chunk records (optional).
Group code = 92.

Since:
Introduced in version R2000.
Warning:
On some 64 bit workstations output is generated with group code "160", thus omitting group code "92".

Definition at line 111 of file attdef.h.

Referenced by dxf_attdef_get_graphics_data_size(), and dxf_attdef_set_graphics_data_size().

Shadow mode:

  1. Casts and receives shadows.
  2. Casts shadows.
  3. Receives shadows.
  4. Ignores shadows.


Group code = 284.

Since:
Introduced in version R2009.

Definition at line 120 of file attdef.h.

Referenced by dxf_attdef_get_shadow_mode(), and dxf_attdef_set_shadow_mode().

Proxy entity graphics data.
Multiple lines of 256 characters maximum per line (optional).
Group code = 310.

Since:
Introduced in version R2000.

Definition at line 130 of file attdef.h.

Referenced by dxf_attdef_get_binary_graphics_data(), and dxf_attdef_set_binary_graphics_data().

Soft-pointer ID/handle to owner dictionary (optional).
Group code = 330.

Since:
Introduced in version R14.

Definition at line 136 of file attdef.h.

Referenced by dxf_attdef_free(), dxf_attdef_get_dictionary_owner_soft(), dxf_attdef_read(), and dxf_attdef_set_dictionary_owner_soft().

Hard-pointer ID/handle to material object (present if not BYLAYER).
Group code = 347.

Since:
Introduced in version R2008.

Definition at line 140 of file attdef.h.

Referenced by dxf_attdef_get_material(), and dxf_attdef_set_material().

Hard owner ID/handle to owner dictionary (optional).
Group code = 360.

Since:
Introduced in version R14.

Definition at line 145 of file attdef.h.

Referenced by dxf_attdef_free(), dxf_attdef_get_dictionary_owner_hard(), dxf_attdef_read(), and dxf_attdef_set_dictionary_owner_hard().

Lineweight enum value.
Stored and moved around as a 16-bit integer.
Group code = 370.

Since:
Introduced in version R2002.

Definition at line 149 of file attdef.h.

Referenced by dxf_attdef_get_lineweight(), and dxf_attdef_set_lineweight().

Hard pointer ID / handle of PlotStyleName object.
Group code = 390.

Since:
Introduced in version R2009.

Definition at line 154 of file attdef.h.

Referenced by dxf_attdef_get_plot_style_name(), and dxf_attdef_set_plot_style_name().

A 24-bit color value that should be dealt with in terms of bytes with values of 0 to 255.
The lowest byte is the blue value, the middle byte is the green value, and the third byte is the red value.
The top byte is always 0.
The group code cannot be used by custom entities for their own data because the group code is reserved for AcDbEntity, class-level color data and AcDbEntity, class-level transparency data.
Group code = 420.

Since:
Introduced in version R2004.

Definition at line 158 of file attdef.h.

Referenced by dxf_attdef_get_color_value(), and dxf_attdef_set_color_value().

Color name.
The group code cannot be used by custom entities for their own data because the group code is reserved for AcDbEntity, class-level color data and AcDbEntity, class-level transparency data.
Group code = 430.

Since:
Introduced in version R2004.

Definition at line 170 of file attdef.h.

Referenced by dxf_attdef_get_color_name(), and dxf_attdef_set_color_name().

Transparency value.
The group code cannot be used by custom entities for their own data because the group code is reserved for AcDbEntity, class-level color data and AcDbEntity, class-level transparency data.
Group code = 440.

Since:
Introduced in version R2004.

Definition at line 178 of file attdef.h.

Referenced by dxf_attdef_get_transparency(), and dxf_attdef_set_transparency().

Default value for the attribute.
Group code = 1.

Definition at line 187 of file attdef.h.

Referenced by dxf_attdef_free(), dxf_attdef_get_default_value(), dxf_attdef_read(), and dxf_attdef_set_default_value().

Tagname for the attribute.
Group code = 2.

Definition at line 190 of file attdef.h.

Referenced by dxf_attdef_free(), dxf_attdef_get_tag_value(), dxf_attdef_read(), and dxf_attdef_set_tag_value().

Prompt text for the value to be stored in the attribute.
Group code = 3.

Definition at line 193 of file attdef.h.

Referenced by dxf_attdef_free(), dxf_attdef_get_prompt_value(), dxf_attdef_read(), and dxf_attdef_set_prompt_value().

The style used for the presentation of the value of the attribute.
Defaults to STANDARD if omitted in the DXF file.
Group code = 7.

Definition at line 197 of file attdef.h.

Referenced by dxf_attdef_free(), dxf_attdef_get_text_style(), dxf_attdef_read(), and dxf_attdef_set_text_style().

First alignment point (in OCS).
Group codes = 10, 20 and 30.

Definition at line 202 of file attdef.h.

Referenced by dxf_attdef_get_p0(), dxf_attdef_get_x0(), dxf_attdef_get_y0(), dxf_attdef_get_z0(), dxf_attdef_read(), dxf_attdef_set_p0(), dxf_attdef_set_x0(), dxf_attdef_set_y0(), and dxf_attdef_set_z0().

Second alignment point (in OCS)(optional).
Meaningful only if 72 or 74 group values are nonzero.
Group codes = 11, 21 and 31.

Definition at line 205 of file attdef.h.

Referenced by dxf_attdef_get_p1(), dxf_attdef_get_x1(), dxf_attdef_get_y1(), dxf_attdef_get_z1(), dxf_attdef_read(), dxf_attdef_set_p1(), dxf_attdef_set_x1(), dxf_attdef_set_y1(), and dxf_attdef_set_z1().

Character height of the attribute value.
Group code = 40.

Definition at line 209 of file attdef.h.

Referenced by dxf_attdef_get_height(), dxf_attdef_get_rel_x_scale(), dxf_attdef_read(), and dxf_attdef_set_height().

Relative scale in the X-direction.
Defaults to 1.0 if omitted from DXF file.
Group code = 41.

Definition at line 212 of file attdef.h.

Referenced by dxf_attdef_get_rel_x_scale(), dxf_attdef_read(), and dxf_attdef_set_rel_x_scale().

Rotation angle of the attribute value.
Defaults to 0.0 if omitted from DXF file.
Group code = 50.

Definition at line 216 of file attdef.h.

Referenced by dxf_attdef_get_rot_angle(), dxf_attdef_read(), and dxf_attdef_set_rot_angle().

Oblique angle of the attribute value.
Defaults to 0.0 if omitted from DXF file.
Group code = 51.

Definition at line 220 of file attdef.h.

Referenced by dxf_attdef_get_obl_angle(), dxf_attdef_read(), and dxf_attdef_set_obl_angle().

Attribute flags.
Bit coded:

  1. attribute is invisible (does not display).
  2. this is a constant attribute.
  3. verification is required on input of this attribute.
  4. attribute is preset (no prompt during insertion).

Group code = 70.

Definition at line 224 of file attdef.h.

Referenced by dxf_attdef_get_attr_flags(), dxf_attdef_is_constant(), dxf_attdef_is_invisible(), dxf_attdef_is_preset(), dxf_attdef_is_verification_required(), dxf_attdef_read(), and dxf_attdef_set_attr_flags().

Text flags.
Bit coded:

  1. text is backward (mirrored in X).
  2. text is upside down (mirrored in Y).

Defaults to 0 if ommited from DXF file.
Group code = 71.

Definition at line 235 of file attdef.h.

Referenced by dxf_attdef_get_text_flags(), dxf_attdef_read(), and dxf_attdef_set_text_flags().

Horizontal text justification type (optional, default = 0).
See TEXT.
Not bit coded:

  1. Left.
  2. Center.
  3. Right.
  4. Aligned, only when vert_align = 0.
  5. Middle, only when vert_align = 0.
  6. Fit, only when vert_align = 0.

Group code = 72.

Definition at line 244 of file attdef.h.

Referenced by dxf_attdef_get_hor_align(), dxf_attdef_read(), and dxf_attdef_set_hor_align().

Field length (optional; default = 0) (not currently used in DXF R14).
Group code = 73.

Definition at line 258 of file attdef.h.

Referenced by dxf_attdef_get_field_length(), dxf_attdef_read(), and dxf_attdef_set_field_length().

Vertical text justification type (optional, default = 0).
See group code 73 in TEXT.
Not bit coded:

  1. Baseline.
  2. Bottom.
  3. Middle.
  4. Top.

Group code = 74.

Version:
Added in DXF R12.

Definition at line 262 of file attdef.h.

Referenced by dxf_attdef_get_vert_align(), dxf_attdef_read(), and dxf_attdef_set_vert_align().

X-value of the extrusion vector.
Defaults to 0.0 if omitted in the DXF file.
Group code = 210.

Definition at line 275 of file attdef.h.

Referenced by dxf_attdef_get_extr_x0(), dxf_attdef_get_extrusion_vector_as_point(), dxf_attdef_read(), dxf_attdef_set_extr_x0(), dxf_attdef_set_extrusion_vector(), and dxf_attdef_set_extrusion_vector_from_point().

Y-value of the extrusion vector.
Defaults to 0.0 if omitted in the DXF file.
Group code = 220.

Definition at line 279 of file attdef.h.

Referenced by dxf_attdef_get_extr_y0(), dxf_attdef_get_extrusion_vector_as_point(), dxf_attdef_read(), dxf_attdef_set_extr_y0(), dxf_attdef_set_extrusion_vector(), and dxf_attdef_set_extrusion_vector_from_point().

Z-value of the extrusion vector.
Defaults to 1.0 if omitted in the DXF file.
Group code = 230.

Definition at line 283 of file attdef.h.

Referenced by dxf_attdef_get_extr_z0(), dxf_attdef_get_extrusion_vector_as_point(), dxf_attdef_read(), dxf_attdef_set_extr_z0(), dxf_attdef_set_extrusion_vector(), and dxf_attdef_set_extrusion_vector_from_point().

Pointer to the next DxfAttdef.
NULL in the last DxfAttdef.

Definition at line 286 of file attdef.h.

Referenced by dxf_attdef_free(), dxf_attdef_free_chain(), dxf_attdef_get_last(), dxf_attdef_get_next(), and dxf_attdef_set_next().


The documentation for this struct was generated from the following file: