The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Simulators >> Circuit Simulators >> Setting Default simulation directory https://designers-guide.org/forum/YaBB.pl?num=1142958358 Message started by RobG on Mar 21st, 2006, 8:25am |
Title: Setting Default simulation directory Post by RobG on Mar 21st, 2006, 8:25am Hello.... I'd like to set my default simualtion directory to something other than ~/simulation. Basically, I want to automate the Analog-Artist command "Setup->Simulation/Directory/host command." Can this be done in a startup file such as .cdsinit? If so, how? Thanks in advance rg |
Title: Re: Setting Default simulation directory Post by bernd on Mar 21st, 2006, 9:44am Generally this is done with DFII environment variables in your .cdsenv file. asimenv.startup projectDir string "~/simulation" Replace "~/simulation" with your path. You can do this also in the .cdsinit file with envSetVal( "asimenv.startup" "projectDir" 'string "~/simulation" ) This has as side effect the advantage that you can evaluate UNIX environment variables with SKILL e.g. t_projectDir = getShellEnvVar( "PROJECT_DIR" ) t_projectSimulation = strcat( t_projectDir "/simulation" ) envSetVal( "asimenv.startup" "projectDir" 'string t_projectSimulation ) A good way to figure out which DFII environment variable is affected is to write a .cdsenv file before and one after the specific value is set in the GUI and the do a diff over the two files. Bernd |
Title: Re: Setting Default simulation directory Post by RobG on Mar 21st, 2006, 10:49am That was very helpful. I put it in my .cdsenv and it works fine. Thanks a bunch Bernd. |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |