I donÂ´t think so.
The scripting program (ruby, vbscript, python ...) refers to the functions and procedures of the host - program. These functions and the logic of the Cad programm are different in different Cad programs. Sometimes you can use the logic of the script when the cad programs are similar as a framework for your own script or use some ideas in your own development. Although at the good times of tcad programming via VBA until V 10.5 there sometimes were differences in the macros. According to the used funktions of the macro there were macros for v7 v8 v10.