Exporting .cdb file from Mechanical using Command Objects

Question - How to export *.cdb from Mechanical without solving the case?

Answer - Actually, from Mechanical we can not directly export *.cdb file without solving the case. However, you can try this work around.

-- Insert a command snippet under Analysis Settings. The command to export *.cdb is as following,
/prep7
cdwrite,all

-- Now, as we are not finishing the /prep7 module, it will give error and stop the solution. But before that, it would export the *.cdb file in the working directory.