Hi Xialong,
The ruler object is part of the scale, not the scale configurator - take a look at the code snippet more closely...
Best Regards,Nevron Support Team