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

dxf_attrib_struct Struct Reference

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

#include <attrib.h>

Collaboration diagram for dxf_attrib_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 * 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 DxfAttribnext

Detailed Description

DXF definition of an AutoCAD attribute entity (ATTRIB).

Definition at line 59 of file attrib.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 64 of file attrib.h.

Referenced by dxf_attrib_get_id_code(), dxf_attrib_read(), and dxf_attrib_set_id_code().

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

Definition at line 69 of file attrib.h.

Referenced by dxf_attrib_free(), dxf_attrib_get_linetype(), dxf_attrib_read(), and dxf_attrib_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 73 of file attrib.h.

Referenced by dxf_attrib_free(), dxf_attrib_get_layer(), dxf_attrib_read(), and dxf_attrib_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.

Deprecated:
As of version R11.

Definition at line 77 of file attrib.h.

Referenced by dxf_attrib_get_elevation(), dxf_attrib_read(), and dxf_attrib_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 attrib.h.

Referenced by dxf_attrib_get_thickness(), dxf_attrib_read(), and dxf_attrib_set_thickness().

Linetype scale (optional).
Group code = 48.

Definition at line 87 of file attrib.h.

Referenced by dxf_attrib_get_linetype_scale(), dxf_attrib_read(), and dxf_attrib_set_linetype_scale().

Object visibility (optional):

  1. Visible
  2. Invisible

Group code = 60.

Since:
Introduced in version R13.

Definition at line 90 of file attrib.h.

Referenced by dxf_attrib_get_visibility(), dxf_attrib_read(), and dxf_attrib_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 attrib.h.

Referenced by dxf_attrib_get_color(), dxf_attrib_read(), and dxf_attrib_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 attrib.h.

Referenced by dxf_attrib_get_paperspace(), dxf_attrib_read(), and dxf_attrib_set_paperspace().

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 attrib.h.

Referenced by dxf_attrib_get_graphics_data_size(), and dxf_attrib_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 attrib.h.

Referenced by dxf_attrib_get_shadow_mode(), and dxf_attrib_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 attrib.h.

Referenced by dxf_attrib_free(), dxf_attrib_get_binary_graphics_data(), and dxf_attrib_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 attrib.h.

Referenced by dxf_attrib_free(), dxf_attrib_get_dictionary_owner_soft(), dxf_attrib_read(), and dxf_attrib_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 attrib.h.

Referenced by dxf_attrib_free(), dxf_attrib_get_material(), and dxf_attrib_set_material().

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

Since:
Introduced in version R14.

Definition at line 145 of file attrib.h.

Referenced by dxf_attrib_free(), dxf_attrib_get_dictionary_owner_hard(), dxf_attrib_read(), and dxf_attrib_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 attrib.h.

Referenced by dxf_attrib_get_lineweight(), and dxf_attrib_set_lineweight().

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

Since:
Introduced in version R2009.

Definition at line 154 of file attrib.h.

Referenced by dxf_attrib_free(), dxf_attrib_get_plot_style_name(), and dxf_attrib_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 attrib.h.

Referenced by dxf_attrib_get_color_value(), and dxf_attrib_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 attrib.h.

Referenced by dxf_attrib_free(), dxf_attrib_get_color_name(), and dxf_attrib_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 attrib.h.

Referenced by dxf_attrib_get_transparency(), and dxf_attrib_set_transparency().

Default value (string).
Group code = 1.

Definition at line 187 of file attrib.h.

Referenced by dxf_attrib_free(), dxf_attrib_get_default_value(), dxf_attrib_read(), and dxf_attrib_set_default_value().

Attribute tag (string).
Group code = 2.

Definition at line 190 of file attrib.h.

Referenced by dxf_attrib_free(), dxf_attrib_get_tag_value(), dxf_attrib_read(), and dxf_attrib_set_tag_value().

Text style name (optional, default = STANDARD).
Group code = 7.

Definition at line 193 of file attrib.h.

Referenced by dxf_attrib_free(), dxf_attrib_get_text_style(), dxf_attrib_read(), and dxf_attrib_set_text_style().

Alignment point (in OCS).
Only present if a 72 or 74 group is present and nonzero.
Group codes = 11, 21 and 31.

Definition at line 199 of file attrib.h.

Referenced by dxf_attrib_free(), dxf_attrib_get_p1(), dxf_attrib_get_x1(), dxf_attrib_get_y1(), dxf_attrib_get_z1(), dxf_attrib_read(), dxf_attrib_set_p1(), dxf_attrib_set_x1(), dxf_attrib_set_y1(), and dxf_attrib_set_z1().

Text height.
Group code = 40.

Definition at line 204 of file attrib.h.

Referenced by dxf_attrib_get_height(), dxf_attrib_get_rel_x_scale(), dxf_attrib_read(), and dxf_attrib_set_height().

Relative X scale factor (width) (optional; default = 1.0).
This value is also adjusted when fit-type text is used.
Group code = 41.

Definition at line 207 of file attrib.h.

Referenced by dxf_attrib_get_rel_x_scale(), dxf_attrib_read(), and dxf_attrib_set_rel_x_scale().

Text rotation (optional; default = 0.0).
Group code = 50.

Definition at line 213 of file attrib.h.

Referenced by dxf_attrib_get_rot_angle(), dxf_attrib_read(), and dxf_attrib_set_rot_angle().

Oblique angle (optional; default = 0.0).
Group code = 51.

Definition at line 216 of file attrib.h.

Referenced by dxf_attrib_get_obl_angle(), dxf_attrib_read(), and dxf_attrib_set_obl_angle().

Attribute flags.
Bit coded:

  1. Attribute is invisible (does not appear).
  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 219 of file attrib.h.

Referenced by dxf_attrib_get_attr_flags(), dxf_attrib_is_constant(), dxf_attrib_is_invisible(), dxf_attrib_is_preset(), dxf_attrib_is_verification_required(), dxf_attrib_read(), and dxf_attrib_set_attr_flags().

Text generation flags (optional, default = 0).
See TEXT.
Optional, defaults to 0
Bit coded:

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

Group code = 71.

Definition at line 232 of file attrib.h.

Referenced by dxf_attrib_get_text_flags(), dxf_attrib_read(), and dxf_attrib_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 242 of file attrib.h.

Referenced by dxf_attrib_get_hor_align(), dxf_attrib_read(), and dxf_attrib_set_hor_align().

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

Definition at line 256 of file attrib.h.

Referenced by dxf_attrib_get_field_length(), dxf_attrib_read(), and dxf_attrib_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 260 of file attrib.h.

Referenced by dxf_attrib_get_vert_align(), dxf_attrib_read(), and dxf_attrib_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 273 of file attrib.h.

Referenced by dxf_attrib_get_extr_x0(), dxf_attrib_get_extrusion_vector_as_point(), dxf_attrib_read(), dxf_attrib_set_extr_x0(), dxf_attrib_set_extrusion_vector(), and dxf_attrib_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 277 of file attrib.h.

Referenced by dxf_attrib_get_extr_y0(), dxf_attrib_get_extrusion_vector_as_point(), dxf_attrib_read(), dxf_attrib_set_extr_y0(), dxf_attrib_set_extrusion_vector(), and dxf_attrib_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 281 of file attrib.h.

Referenced by dxf_attrib_get_extr_z0(), dxf_attrib_get_extrusion_vector_as_point(), dxf_attrib_read(), dxf_attrib_set_extr_z0(), dxf_attrib_set_extrusion_vector(), and dxf_attrib_set_extrusion_vector_from_point().

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

Definition at line 284 of file attrib.h.

Referenced by dxf_attrib_free(), dxf_attrib_free_chain(), dxf_attrib_get_last(), dxf_attrib_get_next(), and dxf_attrib_set_next().


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