hexagon logo

A/Car is adding a suffix to my file names...

A/Car 2017.1 on Windows 10...
 
I have some full-vehicle models I run with a file driven event and the external solver. It seems A/Car is now adding a "_1", "_2", etc. to the file names as I call the cmd file for the run. I don't recall it doing this before, instead asking if i want to overwrite the existing run, and I can't seem to find the button to get it to stop. Thoughts...???
Parents
  • Can you add a few lines in your cmd file that checks if the file exists and then remove it?
    I assume that you just want to overwrite it anyway?
     
    If cond=(FILE_EXISTS ("filename.res"))
    var set var=tmp int=(REMOVE_FILE("filename.res") )
    var set var=tmp int=(REMOVE_FILE("filename.msg") )
    var set var=tmp int=(REMOVE_FILE("filename.gra") )
    var set var=tmp int=(REMOVE_FILE("filename.req") )
    end
     
     
    And: No, have never seen this. On the other hand, I don't use Windows 10 and I don't use ADAMS 2017.1. We skipped that version, only using 2017.2. And my colleagues that are on Win10 have not seen it with that version.
Reply
  • Can you add a few lines in your cmd file that checks if the file exists and then remove it?
    I assume that you just want to overwrite it anyway?
     
    If cond=(FILE_EXISTS ("filename.res"))
    var set var=tmp int=(REMOVE_FILE("filename.res") )
    var set var=tmp int=(REMOVE_FILE("filename.msg") )
    var set var=tmp int=(REMOVE_FILE("filename.gra") )
    var set var=tmp int=(REMOVE_FILE("filename.req") )
    end
     
     
    And: No, have never seen this. On the other hand, I don't use Windows 10 and I don't use ADAMS 2017.1. We skipped that version, only using 2017.2. And my colleagues that are on Win10 have not seen it with that version.
Children
No Data