Pages: [1]   Go Down
Author Topic: Arduino IDE start up parameter: sketchbook folder  (Read 604 times)
0 Members and 1 Guest are viewing this topic.
Germany
Offline Offline
Jr. Member
**
Karma: 0
Posts: 76
just sun
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello Community,

is there a option / commandline flag to set the sketchbook folder on startup of the IDE?
why i do want to do this?
I have for every project a separate folder. in every project folder there is a folder called 'arduino_sketchbook'.
Example:
Code:
- prj1_HelloWorldClock
    - infos
    - datasheets
    - arduino_sketchbook
       - sketch1
       - sketch2
       - libraries
       - examples
 - prj2_WakeUpLight
    - infos
    - datasheets
    - arduino_sketchbook
       - sketch1
       - sketch2
       - libraries
       - examples
....

so my idea was to make some File shortcuts all pointing to the arduino IDE but with different command line parameters so that my needed arduino_sketchbook is loaded automatically.
(i use windows 7 and Arduino IDE 1.0.4)

if someone has an idea how to do this - just answer :-)

sunny greetings
stefan
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 27418
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Why not use File:Preferences, and put your default location, and then put your folders in there. When you open the IDE, the folders will be shown in one of the dropdown menus (Sketchbook maybe? I don't have it in front of me).
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 362
Posts: 17307
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Why not use File:Preferences, and put your default location, and then put your folders in there. When you open the IDE, the folders will be shown in one of the dropdown menus (Sketchbook maybe? I don't have it in front of me).

Correct. And you also need the single user sketch directory to take advantage of user library folder for storing and access to contributed library software files, and a hardware folder for non-standard arduino AVR chip boards. Don't fight the user sketch directory concept, rather utilize it as designed.

Lefty
Logged

Germany
Offline Offline
Jr. Member
**
Karma: 0
Posts: 76
just sun
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for your answers,

you are right with the sub folder -
but i enjoy to have only the user library that i use in this project -
ok - sometimes its a bit to much copy and paste -
and some times its the cleanest way to have things separated from each other..
i will look into command-line compilation in some time..
but for now this is a step to big for me..
i love the 'just work' concept of the arduino IDE :-)

have fun
stefan
Logged

Colorado
Offline Offline
Edison Member
*
Karma: 47
Posts: 1562
Reviving dead brain cells with Arduinos.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You don't need to put the libraries inside of your sketch folders for your sketch to work.  And your sketch will only use whatever library you tell it to use.  You're making things more difficult than you need to.
Logged

Pages: [1]   Go Up
Jump to: