EEVblog Electronics Community Forum

Electronics => PCB/EDA/CAD => Circuit Studio => Topic started by: negativ3 on August 20, 2017, 01:08:21 pm

Title: [SOLVED] Default project directory
Post by: negativ3 on August 20, 2017, 01:08:21 pm
Hi, Is there any way to set the default project directory?

System preferences contains nothing as far as I can see.

Thanks
Title: Re: Default project directory
Post by: Joel_l on August 20, 2017, 07:40:34 pm
The lack of is a big miss for me too. You can save a project to where ever you want, but you will always have to navigate to it. For some reason Altium seems to think C:\users\documents\Public\Altium\projects is the right place. I have searched the registry to see if I could find an entry to change as well as grepped through all the config files. I have not been able to find where this is set. One thing that might work is to link this to where you really want it.
Title: Re: Default project directory
Post by: voltsandjolts on August 21, 2017, 07:39:56 am
Just add a shortcut in the default directory, then its just one extra double click to get wherever.
Title: Re: Default project directory
Post by: negativ3 on August 21, 2017, 04:19:31 pm
Just add a shortcut in the default directory, then its just one extra double click to get wherever.

This is a great workaround. Thanks voltsandjolts again!
Title: Re: Default project directory
Post by: jmarkwolf on August 22, 2017, 06:00:52 pm
Just add a shortcut in the default directory, then its just one extra double click to get wherever.

Add a shortcut where? The desktop?
Title: Re: [SOLVED] Default project directory
Post by: Joel_l on August 22, 2017, 11:56:54 pm
In circuit studios default directory. So make a shortcut for your working directory and place it in C:\users\public\documents\altium\projects. that way when you go to open a project or start a new project, you click on the link to get to where you want. Not as good as being able to set you default working directory, but as mentioned, it's only one double click.

I do think there is a way to link that directory to where you want to be so it's all transparent.
Title: Re: [SOLVED] Default project directory
Post by: Joel_l on August 23, 2017, 12:55:36 am
I played with links using mklink vs a shortcut and here is what I found,

If I make a shortcut and place it in the default directory, it works ok for opening an existing project. If I create a new project without navigating to your desired directory, it will ignore the shortcut in the default path and create a new projects directory there and place your new project in it.

If I make a link using mklink, it works as expected. The path will still show the default C:\...... path but the new project will land in the directory you set up.

To prepare, if there are any projects in the default project directory, move them to where you want them. once that's done delete C:\users\public\documents\altium\projects, leave the altium directory.

from an admin command prompt,

mklink /D "C:\users\public\documents\altium\projects" "your\projects\directory"

I used "D:\circuitstudio\projects" on my system for example.

note the quotes and the slash type on the /D

mklink will respond with symbolic link created for { path data } if successful.

I think this works a little better than a shortcut.

Title: Re: [SOLVED] Default project directory
Post by: ahbushnell on August 23, 2017, 01:19:34 pm
That was interesting.  I had not heard of mklink.  Cool
Andy
Title: Re: [SOLVED] Default project directory
Post by: negativ3 on August 25, 2017, 02:37:07 am
I played with links using mklink vs a shortcut and here is what I found,

If I make a shortcut and place it in the default directory, it works ok for opening an existing project. If I create a new project without navigating to your desired directory, it will ignore the shortcut in the default path and create a new projects directory there and place your new project in it.

If I make a link using mklink, it works as expected. The path will still show the default C:\...... path but the new project will land in the directory you set up.

To prepare, if there are any projects in the default project directory, move them to where you want them. once that's done delete C:\users\public\documents\altium\projects, leave the altium directory.

from an admin command prompt,

mklink /D "C:\users\public\documents\altium\projects" "your\projects\directory"

I used "D:\circuitstudio\projects" on my system for example.

note the quotes and the slash type on the /D

mklink will respond with symbolic link created for { path data } if successful.

I think this works a little better than a shortcut.

Now that is excellent and works great. Thanks.