Please find attached a script that will do what you want.
Please run the script in Scripting Window (Tools menu, Expert mode must be enabled: Settings | Options | General | Expert Mode).
Take notice of line 6 - for which model you want to run the script, and line 3 - path to file where INSERT TO commands will be generated. Please change it at your convenience.
If you have more questions, please write us back. Thanks.