libDXF 0.0.1
A library with DXF related functions written in C.
|
DXF definition of an AutoCAD block entity. More...
#include <block.h>
Data Fields | |
char * | xref_name |
char * | block_name |
char * | block_name_additional |
char * | description |
int | id_code |
char * | layer |
DxfPoint * | p0 |
int | block_type |
double | extr_x0 |
double | extr_y0 |
double | extr_z0 |
char * | dictionary_owner_soft |
struct DxfEndblk * | endblk |
struct DxfBlock * | next |
DXF definition of an AutoCAD block entity.
The Blocks section of the DXF file contains all the Block Definitions.
This section contains the entities that make up the Blocks used in the drawing, including anonymous Blocks generated by the HATCH command and by associative dimensioning.
The format of the entities in this section is identical to those in the Entities section described later, so see that section for details.
All entities in the Blocks section appear between Block and Endblk entities.
Block and Endblk entities appear only in the Blocks section.
Block definitions are never nested (that is, no Block or Endblk entity ever appears within another Block-Endblk pair), although a Block definition can contain an INSERT entity.
External References are written in the DXF file as any Block Definition, except they also include a text string (group code 1) of the path and filename of the External Reference.
Xref path name.
Group code = 1.
Definition at line 83 of file block.h.
Referenced by dxf_block_free(), dxf_block_get_xref_name(), dxf_block_read(), and dxf_block_set_xref_name().
Block name.
Group code = 2.
Definition at line 86 of file block.h.
Referenced by dxf_block_free(), dxf_block_get_block_name(), dxf_block_read(), and dxf_block_set_block_name().
Additional block name.
Group code = 3.
Definition at line 89 of file block.h.
Referenced by dxf_block_free(), dxf_block_get_block_name_additional(), dxf_block_read(), and dxf_block_set_block_name_additional().
Block description (optional).
Group code = 4.
Definition at line 92 of file block.h.
Referenced by dxf_block_free(), dxf_block_get_description(), dxf_block_read(), and dxf_block_set_description().
Identification number for the entity.
This is to be an unique (sequential) number in the DXF file.
Group code = 5.
Definition at line 95 of file block.h.
Referenced by dxf_block_get_id_code(), dxf_block_read(), and dxf_block_set_id_code().
char* dxf_block_struct::layer |
Layer on which the entity is drawn.
Defaults to layer "0" if no valid layername is given.
Group code = 8.
Definition at line 100 of file block.h.
Referenced by dxf_block_free(), dxf_block_get_layer(), dxf_block_read(), and dxf_block_set_layer().
Base point.
Group codes = 10, 20 and 30.
Definition at line 104 of file block.h.
Referenced by dxf_block_get_p0(), dxf_block_get_x0(), dxf_block_get_y0(), dxf_block_get_z0(), dxf_block_read(), dxf_block_set_p0(), dxf_block_set_x0(), dxf_block_set_y0(), and dxf_block_set_z0().
Bit coded:
Group code = 70.
Definition at line 107 of file block.h.
Referenced by dxf_block_get_block_type(), dxf_block_has_attributes(), dxf_block_is_anonymous(), dxf_block_is_referenced(), dxf_block_is_xdependent(), dxf_block_is_xreferenced(), dxf_block_is_xresolved(), dxf_block_read(), and dxf_block_set_block_type().
double dxf_block_struct::extr_x0 |
X-value of the extrusion vector.
Defaults to 0.0 if omitted in the DXF file.
Group code = 210.
Definition at line 122 of file block.h.
Referenced by dxf_block_get_extr_x0(), dxf_block_get_extrusion_vector_as_point(), dxf_block_read(), dxf_block_set_extr_x0(), and dxf_block_set_extrusion_vector().
double dxf_block_struct::extr_y0 |
Y-value of the extrusion vector.
Defaults to 0.0 if omitted in the DXF file.
Group code = 220.
Definition at line 126 of file block.h.
Referenced by dxf_block_get_extr_y0(), dxf_block_get_extrusion_vector_as_point(), dxf_block_read(), dxf_block_set_extr_y0(), and dxf_block_set_extrusion_vector().
double dxf_block_struct::extr_z0 |
Z-value of the extrusion vector.
Defaults to 1.0 if omitted in the DXF file.
Group code = 230.
Definition at line 130 of file block.h.
Referenced by dxf_block_get_extr_z0(), dxf_block_get_extrusion_vector_as_point(), dxf_block_read(), dxf_block_set_extr_z0(), and dxf_block_set_extrusion_vector().
Soft-pointer ID/handle to owner dictionary (optional).
Group code = 330.
Definition at line 134 of file block.h.
Referenced by dxf_block_free(), dxf_block_get_dictionary_owner_soft(), dxf_block_read(), and dxf_block_set_dictionary_owner_soft().
struct DxfEndblk* dxf_block_struct::endblk |
pointer to the end of block marker.
Definition at line 137 of file block.h.
Referenced by dxf_block_get_endblk(), and dxf_block_set_endblk().
struct DxfBlock* dxf_block_struct::next |
pointer to the next DxfBlock.
NULL
in the last DxfBlock.
Definition at line 139 of file block.h.
Referenced by dxf_block_free(), dxf_block_free_chain(), dxf_block_get_last(), dxf_block_get_next(), and dxf_block_set_next().