The CADLayer function returns handle of the specified layer and fills the DXFDATA structure with its properties.
Syntax:
HANDLE CADLayer(
HANDLE hObject,
int nIndex,
LPDXFDATA lpData
);
Parameters:
hObject |
Identifies the CAD drawing object handle. |
nIndex |
Specifies the index in the LAYERS table of hObject. It should be in the range from 0 to the value returned by CADLayerCount minus 1. |
lpData |
Points to the DXFDATA structure to get properties of the layer. If this parameter is NULL, no properties are retrieved. |
dwNewLong |
[in] Specifies the replacement value. |
Return Value:
If the function succeeds, the return value is a handle of layer object 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 GetLastErrorCAD.
See Also
CADCreate | CADEnum | CADLayerCount | CADLayerVisible
© 2003-2024 CADSoftTools
Go to CAD DLL