The GetNumberLayers transaction returns the number of layers in the specified page, or the number of CAD layers in the specified layer.
Type XTYP_REQUEST
Syntax [GetNumberLayers(docwinID, <pageID> | layerID)]
|
Parameter |
Data type |
Values |
Meaning |
|
docwinID |
DWORD |
0 | docwinID |
active | specific. See Remarks. |
|
pageID |
DWORD |
0 | pageID |
current | specific. Optional parameter. |
|
or |
|
| |
|
layerID |
DWORD |
identifier of the edit layer that contains CAD layers. | |
|
Reply |
Data type |
Values |
Meaning |
|
count |
WORD |
0 | 1 | 2 | ... |
number of layers on the page |
Remarks
If just a docwinID is supplied, the number of layers on the current page is returned.
Release information
Added in Release 3.50.
See also