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
  • You're sure you're not using the environment ACAR_TESTING somewhere ?
    Otherwise there should be the prompt to overwrite and return if cancelled.
     
    The macros mostly check for assembly.analysis like this (Only acar toolkit check analysis checks file existence of .res/.req file.):
    ! IF ANALYSIS EXISTS, CHECK IF USER WANTS TO OVERWITE IT
    if condition = (db_exists("$assembly.$'output_prefix'_$'output_suffix'"))
      if condition = (alert("question","An analysis called \'$'output_prefix'_$'output_suffix'\' already exists. Overwrite it?", "Yes", "No", "", 2) == 2)
         variable set variable = $error_variable integer = 1
         return
      end
    end
     
    Usually it's enough to add something like this to your macro/cmd-file:
      if cond = (db_exists("$model.$analysis"))
        analysis delete analysis_name = $model.$analysis
      end
     
     
     
     
     
     
Reply
  • You're sure you're not using the environment ACAR_TESTING somewhere ?
    Otherwise there should be the prompt to overwrite and return if cancelled.
     
    The macros mostly check for assembly.analysis like this (Only acar toolkit check analysis checks file existence of .res/.req file.):
    ! IF ANALYSIS EXISTS, CHECK IF USER WANTS TO OVERWITE IT
    if condition = (db_exists("$assembly.$'output_prefix'_$'output_suffix'"))
      if condition = (alert("question","An analysis called \'$'output_prefix'_$'output_suffix'\' already exists. Overwrite it?", "Yes", "No", "", 2) == 2)
         variable set variable = $error_variable integer = 1
         return
      end
    end
     
    Usually it's enough to add something like this to your macro/cmd-file:
      if cond = (db_exists("$model.$analysis"))
        analysis delete analysis_name = $model.$analysis
      end
     
     
     
     
     
     
Children
No Data