Set "Current" Layer

#1
Hi All,

I've been hunting on Google for the last few hours and i cant seem to find anyway to Set my drawings current layer... :?:

I have several layers
0
Etching
Component
Dimensions
Hatch
Folding
After some code I have written I would like to set my current layer to the layer called "Dimensions".
By default layer "0" is being set to my current layer.

Any ideas?? its doing my head in :?

Thanks in advance,

John
cron