Daylight System

Hi All,

I'm looking at importing data from an excel sheet into a 3DsMax daylight system. I've got the excel side sorted, but I'm really struggling accessing the daylight system properties.

So far I've looked at the documentation online but with no result. The example on there really dosn't work:
http://docs.autodesk.com/3DSMAX/14/ENU/MAXScript%20Help%202012/

Does anyone have any other examples?

So far I typed: $Daylight001.GetDaylightControlType()
Got 0
Should have got 1 according to the documentation if it was set to manual, as it was.

Many thanks in advanced!
John