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

entities.c File Reference

Functions for a DXF entities section (/c ENTITIES). More...

#include "entities.h"
Include dependency graph for entities.c:

Go to the source code of this file.

Functions

int dxf_entities_read_table (char *filename, FILE *fp, int line_number, char *dxf_entities_list, int acad_version_number)
 Read and parse the ENTITIES table from a DXF file.
int dxf_entities_write_table (char *dxf_entities_list, int acad_version_number)
 Write DXF output to a file for a DXF ENTITIES table.

Detailed Description

Functions for a DXF entities section (/c ENTITIES).

Author:
Copyright (C) 2012 ... 2014 by Bert Timmerman <bert.timmerman@xs4all.nl>.

This section presents the group codes that apply to graphical objects.
These codes are found in the ENTITIES section of a DXF file and are used by AutoLISP and ARX applications in entity definition lists.

The group codes shown in this section can apply to DXF files, applications (AutoLISP or ARX), or both.
When the description of a code is different for applications and DXF files (or only applies to one or the other), the description is preceeded by the following indicators:

APP Application-specific description.

DXF DXF file-specific description.

If the description is common to both DXF files and applications, no indicator is provided.
Otherwise, the appropriate indicator is present.


Copyright Notices.


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to:
Free Software Foundation, Inc.,
59 Temple Place,
Suite 330,
Boston,
MA 02111 USA.

Drawing eXchange Format (DXF) is a defacto industry standard for the exchange of drawing files between various Computer Aided Drafting programs.
DXF is an industry standard designed by Autodesk(TM).
For more details see http://www.autodesk.com.


Definition in file entities.c.


Function Documentation

int dxf_entities_read_table ( char *  filename,
FILE *  fp,
int  line_number,
char *  dxf_entities_list,
int  acad_version_number 
)

Read and parse the ENTITIES table from a DXF file.

Todo:
Add code here.

Parameters:
filenamefilename of input file (or device).
fpfilepointer to the input file (or device).
line_numbercurrent line number in the input file (or device).
dxf_entities_listpointer to a list of entities.
acad_version_numberAutoCAD DXF version number.

Definition at line 62 of file entities.c.

References DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_section_read().

int dxf_entities_write_table ( char *  dxf_entities_list,
int  acad_version_number 
)

Write DXF output to a file for a DXF ENTITIES table.

Todo:
Add code here.

Parameters:
dxf_entities_listpointer to a list of entities.
acad_version_numberAutoCAD DXF version number.

Definition at line 91 of file entities.c.

References DXF_DEBUG_BEGIN, and DXF_DEBUG_END.