The CADEnum function calls the specified callback function for each entity in the CAD file. All data values for entities in blocks are converted to real values.
Syntax
int CADEnum(
HANDLE hObject,
int nEnumAll,
CADPROC lpDXFProc,
LPARAM lParam
);
Parameters
hObject |
Identifies a handle to the CAD drawing. |
nEnumAll |
Specifies an entity's enumeration mode (bit-coded): 0 – does not include invisible entities; 1 – includes invisible entities; 2 – does not use View direction and View twist angle from the current active VPORT. 4 – cuts off entities by the rectangular border of the viewports (we recommend to use cutting off by the whole viewport border, see DXF_BEGIN_VIEWPORT) |
lpCADProc |
Points to an application-supplied callback function. |
lParam |
Points to optional callback-function data. |
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call CADGetLastError.
See Also
CADCreate | CADDraw | CADLayer
© 2003-2024 CADSoftTools
Go to CAD DLL