Jump to content
Minoru Yubuchi

Preference file of Activate

Recommended Posts

Hi Minoru,

 

There is a way to force Activate to cd to given directory, using the startup script.

1. In Oml command window, run startupscript_edit

2. In the popping up oml editor, you can write a line of code such as cd('your working directory')

3. After making this change, every time when Activate is invoked, the CWD will be your preferred directory.

 

Share this post


Link to post
Share on other sites

Hai and Livio,

 

Thank you for the advices.

 

I changed the default working directory as your advices, then created a new model and tried to saved it, but the model was not saved in the directory (see the picture attached). Please let me know what I did wrong.

 

Thanks,

Minoru Yubuchi 

2019-02-18_11-11-29.jpg

Share this post


Link to post
Share on other sites

Hi Minoru,

Working directory and load/save directory are two different things. In working directory e. g. oml-scpripts are searched for. In the GUI you set the directory in the File Browser

image.png.01a22a51fb3b085ec2c02fe92ba1cb27.png

 

The load/save directory is always the last directory you have used for opeing or saveing a project. The setting can be found in c:\users\<username>\.altair\Activate<version>\hwx\settings.xml in section Session

<section name="@Session">
   <section name="DirectoryBrowser">
     <entry name="Open Directory" value="D:/home/ActivateLibrary/_demos/Circuit models/" type="string"/>
     <section name="History">
       <entry name="@name" value="D:/Hub/Christian" type="string" current="1"/>
       ...

If you can set your preferred directory automatically e. g. in the startup script, I don't know.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...