Saved in: Registry
Initial value: 127
From the AutoCAD Help Section under system variables.
Controls which properties are selected for SETBYLAYER
The setting is stored as an integer using the sum of the following values:
0 No properties are selected
1 Color property
2 Linetype property
4 Lineweight property
8 Material property
16 Plot Style property
32 Changes ByBlock to Bylayer
64 Includes blocks when changing ByBlock to ByLayer
There is also other information there not shown here.
Also look into ssget in the Developer Help Section
Creates a selection set from the selected object
(ssget [sel-method] [pt1 [pt2]]
Selection sets can contain objects from both paper and model space, but when the selection set is used in an operation, ssget filters out objects from the space not currently in effect. Selection sets returned by ssget contain main entities only (no attributes or polyline vertices).
Maybe this thread will give you some idea:http://www.cadtutor.net/forum/showth...T+BYLAYER+LISP