I think I'll stick with the TABLEs -David
In this case, I actually feel that the ActiveX route is more logical, i.e.:
(vla-get-color <Layer-Object>) --> Layer Color
(vla-get-layeron <Layer-Object>) --> true = Layer is ON, false = Layer is OFF
In Vanilla, we have:
(cdr (assoc 62 <Layer-DXF-data>)) --> Absolute value = Layer Color; if negative Layer is OFF
I personally don't see the logic of a negative Layer color indicating that the Layer is OFF - these two properties are not related in any way. I would think it more logical to include the Layer ON/OFF property as an additional bit-code in DXF group 70 (along with frozen / locked).
Also, by combining the properties into a single DXF group, it necessitates the use of
abs when retrieving the Layer color.