CADGetSection

  Functions >

CADGetSection

Previous pageReturn to chapter overviewNext page

Note: this function is left for compatibility with previous versions of CAD Importer DLL. It is not recommended for usage.

The CADGetSection function retrieves specified section or table from the CAD drawing object and fills DXFDATA structure with its properties.

 

Syntax

 

HANDLE CADGetSection(

  HANDLE hObject,

  int dwIndex,

  LPCADDATA lpData

);

 

 

Parameters

 

hObject

Identifies a handle to the CAD drawing.

dwIndex

Specifies the object to retrieve. This parameter can be one of following values:

Value

Meaning

0 (CS_TABLES)

TABLES section

1 (CS_BLOCKS)

BLOCKS section

2 (CS_ENTITIES)

ENTITIES section

3 (CS_LTYPES)

LTYPE table

4 (CS_LAYERS)

LAYERS table

lpData

Points to the CADDATA structure to get properties of specified object. If this parameter is NULL, no properties are retrieved.

 

 

Return Value

If the function succeeds, the return value is a handle of object (section or table) specified by nIndex, and the structure pointed by lpData is filled by its properties.

If the function fails, the return value is NULL. To get extended error information call CADGetLastError.

 

 

See Also

CADGetChild  | CADGetData


© 2003-2021 CADSoftTools

Go to CAD DLL