Please have a look here:
http://www.ephere.com/autodesk/max/docs/1044.html
Marsel Khadiyev (Software Developer, EPHERE Inc.)