GINO Graphics Suite - GINO v9.0  

gEnqDXFEntities

Syntax

[C/C++:]
void gEnqDXFEntities(GFILE *fp, int *entities, int n);
[F90:]
subroutine gEnqDXFEntities(unit, entities, n)

integer, intent(in) :: unit,n
integer, intent(out) :: entities(*)

Arguments

fp
GINO-C file pointer

unit
Fortran 90 File unit

entities
Integer array containing entity counts

n
Size of entities array - up to 16

Description

The routine gEnqDXFEntities() returns the entity count of a DXF metafile whose file pointer has been passed in fp or unit. The file should have been opened using the routine gFopen().

An integer array of size n is also passed in which n entity type counts are returned. Up to 16 entity types are currently catered for and the counts are retunred in the following array element locations:

C/C++ Fortran 90 Entity
[0] (1) Faces
[1] (2) Arcs
[2] (3) Circles
[3] (4) Dimenions
[4] (5) Ellipses
[5] (6) Images
[6] (7) Lines
[7] (8) Points
[8] (9) Polylines
[9] (10) Solids
[10] (11) Text labels, Attdev and Attrib
[11] (12) Vertices
[12] (13) Meshes
[13] (14) Number of vertices in a mesh
[14] (15) 2D Polylines (LWPOLYLINE)
[15] (16) Hatch (complex polygons)

See Also

gEnqDXFEntities Usage
gEnqDXFLimits
gFopen
gGetNextDXFEntity
gImportDXFSurface