Hello everybody! I have the problem that my comsol generated m-files contain a lot of repeating entries and old values which have been changed in the process of creating the *.mph-file. Comsol writes in the knowlege base: "When saving a model as an M-file it contains by default all the command history. This makes the file dense and not easy to work with. Using the reset option under the file menu makes the script clear as it only keeps the commands that correspond to the current model." I am already doing it like this, I am using the reset model option, but still the m-file is unstructured because of unnecessary entries. How can one get rid of these? Thanks! Best regards, DJ_Goodnews.