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

dxf_block_struct Struct Reference

DXF definition of an AutoCAD block entity. More...

#include <block.h>

Collaboration diagram for dxf_block_struct:
Collaboration graph
[legend]

Data Fields

char * xref_name
char * block_name
char * block_name_additional
char * description
int id_code
char * layer
DxfPointp0
int block_type
double extr_x0
double extr_y0
double extr_z0
char * dictionary_owner_soft
struct DxfEndblkendblk
struct DxfBlocknext

Detailed Description

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.

Definition at line 79 of file block.h.


Field Documentation

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().

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().

Bit coded:

  1. this is an anonymous Block generated by hatching, associative dimensioning, other internal operations, or an application.
  2. this Block has Attributes.
  3. this Block is an external reference (Xref).
  4. not used.
  5. this Block is externally dependent.
  6. this is a resolved external reference, or dependent of an external reference.
  7. this definition is referenced.

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().

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().

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().

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().

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().

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().


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