dos_layerlistbox - dalefugier/DOSLib GitHub Wiki
Displays a list of AutoCAD layers in a sizable Windows dialog box.
Syntax
(dos_layerlistbox title prompt [bits])
Parameters
title
A string containing the dialog box title.
prompt
A string containing the dialog box prompt.
bits
A bit-coded integer identifying the desired file attributes to set. Specify more than one file attribute by adding the following bit values:
Value | Description |
---|---|
0 | Show all layers (default). |
1 | Hide on layers. |
2 | Hide off layers. |
4 | Hide thawed layers. |
8 | Hide frozen layers. |
16 | Hide unlocked layers. |
32 | Hide locked layers. |
64 | Hide standard layers. |
128 | Hide xref layers. |
256 | Allow multiple selection. |
Returns
The layer selected from the list if successful.
If the "Allow multiple selection" bit is set, a list of layers selected from the list if successful.
nil if not successful or on error.
Example
Command: (dos_layerlistbox "AutoCAD Layers" "Select one or more layers" 256)
("TB_BORDER" "TB_CORNERS" "TB_INFORMATION")