Creating a NPT NVT LOOP using perlscript

thomas 

Creating a NPT NVT LOOP using perlscript

I want to write a script about a forcite run
which includes a NPT then NVT
then do this NPTNVT protocol for 5 times,
But I am not familiar with coding here
the major error is "Please ensure that documents created by previous runs are renamed or deleted before running a calculation in Forcite.Dynamics (function/property "Run")"

Thank you very much.