hexagon logo

Load databases into ACar if it is launched from CMD

Hello,
 
I have a problem with loading databases in Adams/Car when it is launched from the command prompt. If it launched from GUI, there is no problem.
 
I suspect that if I use command ru-standard in *.bat file it does not load the acar.cfg file, because there are loaded only acar_shared, acar_concept and private databases. I have already tried ru-private, ru-acar and ru-site but without success.
 
Thank you for any suggestion or idea.
 
Jan
Parents
  • I'd have tried to start the registry editor and simply replace the ${HOME} entry with the full local path.
    That'd force all ADAMS sessions of that user on that machine to use that specific .acar.cfg.

    Other than that, I had a very creative solution when it comes to reading project-specific .cfg files.
    I have my macros write a tmp.cfg in the working dir which can be read by 

    var set var = .acar.ReadIt int = (eval("tmp"))

    If that contains stuff that's referred to in the adm file, you also need to add "tmp" to the variable .assembly.plugin_list.

    And BTW: What's that fuss with Python having a different HOME environment than the user ? That should be fixed by the development team.

Reply
  • I'd have tried to start the registry editor and simply replace the ${HOME} entry with the full local path.
    That'd force all ADAMS sessions of that user on that machine to use that specific .acar.cfg.

    Other than that, I had a very creative solution when it comes to reading project-specific .cfg files.
    I have my macros write a tmp.cfg in the working dir which can be read by 

    var set var = .acar.ReadIt int = (eval("tmp"))

    If that contains stuff that's referred to in the adm file, you also need to add "tmp" to the variable .assembly.plugin_list.

    And BTW: What's that fuss with Python having a different HOME environment than the user ? That should be fixed by the development team.

Children
No Data