The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 4:24am
Pages: 1
Send Topic Print
Setting Default simulation directory (Read 3893 times)
RobG
Community Fellow
*****
Offline



Posts: 570
Bozeman, MT
Setting Default simulation directory
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
Back to top
 
 
View Profile   IP Logged
bernd
Senior Member
****
Offline



Posts: 229
Munich/Germany
Re: Setting Default simulation directory
Reply #1 - 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
Back to top
 
 

Just another lonesome cad guy
View Profile WWW   IP Logged
RobG
Community Fellow
*****
Offline



Posts: 570
Bozeman, MT
Re: Setting Default simulation directory
Reply #2 - Mar 21st, 2006, 10:49am
 
That was very helpful.  I put it in my .cdsenv and it works fine.  Thanks a bunch Bernd.
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.