• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Using DropBox and symbolic links with SketchUp.

Scheduled Pinned Locked Moved SketchUp Discussions
sketchup
46 Posts 19 Posters 11.0k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    andrea.bianco
    last edited by andrea.bianco 24 Oct 2011, 11:57

    Hi there! One thing I don't like is to waste time setting up plugins and resource files after I reinstall the OS on my machine or I need to work on a different one. I also don't like wasting time updating the plugins on all of my SketchUp installations or moving resource files around. SketchUp is having some settings for changing the default folders for a bunch of stuff but not for the Plugins, and even using that built-in feature we'll have to manually change the path on each copy of Sketchup.

    As a solution to all that I started using symbolic links: they exist on Windows, Mac OS X and Linux and are basically a way for creating a folder or file that points to another location. As an example I'll detail what I did on my Windows 7 64bit machine, but you can read these two interesting LifeHacker articles if you want to know more or find info on how to do it on Mac (as I said it would be possible to do the same on Linux but as we all know Google couldn't care less spending some resources for giving us a native Linux version of SketchUp):

    http://lifehacker.com/5496652/how-to-use-symlinks-in-windows
    http://lifehacker.com/5154698/sync-files-and-folders-outside-your-my-dropbox-folder

    1. A Dropbox account
    [url=http://www.dropbox.com:11fq4uld]Dropbox[/url:11fq4uld] is a great file syncing/sharing service that I highly reccomend. Please go to their site to read more about what they offer and why it's so great. The free account is 2GB but you can earn more space following some [url=http://www.dropbox.com/free:11fq4uld]simple steps[/url:11fq4uld] and even more using the referral strategy; by the way if you need to create a new account please consider using my referral, that way you will give yourself and myself 250mb of extra free space! This is my referral: [url=http://db.tt/wBxnfcg:11fq4uld]link[/url:11fq4uld].

    2. Where to put the stuff
    I created a Settings folder in my DropBox and I use it for syncing settings ad resources for various software, like SketchUp, Painter, Gimp etc. In this case let's say we want to create a subfolder for Sketchup where to move our plugins. Since we are creating the folder outside of the Public one, no one will be able to access it except us, provided we are logged in with the client. Our final path will be something like :

    C;\Users\YourUserName\DropBox\Settings\Sketchup
    

    3. Move the plugins
    Now you can move the whole Plugins folder from your SketchUp installation right into that path. In the end you will have no Plugins folder anymore into your SketchUp installation (we'll fix that in a minute) and a path like this in your DropBox :

    C;\Users\YourUserName\DropBox\Settings\Sketchup\Plugins
    

    4. Create the symbolic link
    Open Start Menu, write "cmd" in the search box, right click on "cmd.exe" and start it as Administrator. Once into the command prompt write "mklink" to read the short help info for the mklink command (it's always a good idea). Navigate to your Sketchup installation folder; in my case I typed

    cd C;\Program Files (x86)\Google\Google SketchUp
    

    and I then issued the command for creating the symbolic link

    mklink /D Plugins C;\Users\YourUserName\DropBox\Settings\Sketchup\Plugins
    

    5. Done!
    We now have a Plugins folder again into our SketchUp installation path, with the difference that it is just a symlink pointing to the real one on DropBox: the stuff we put on Dropbox is both phisically available on our machine and at the same time stored on Dropbox servers, so we can access it from any machine simply installing the Dropbox client and logging in. This was just a short introduction to the technique, you can of course extend it to your resources (textures, kit bashing, etc). The beauty of this method is not only in the fact that you have your stuff saved in a safe place, but also that you just have 1 location to update (the Dropbox one) and multiple installations of SketchUp will access it. I have three machines and keeping the resources and plugins updated among all of them was quite bothering, so I'm glad I discovered this method! A last note: you can do the same for pretty much any software πŸ˜‰

    6. What if something goes wrong or I just wanna go back to the way things were?
    In that case just delete the Plugins symbolic link and then move the original Plugins folder from Dropbox back to your SketchUp installation.

    EDIT:
    I don't use Dropbox anymore and I also decided to only use SketchUp on the main workstation.

    Andrea A. Bianco
    http://www.andreabianco.eu

    HW: i7 3.8GHz | nVidia GTX590 3GB | 8GB RAM
    SW: SketchUp, Octane, Adobe CC, Painter, Windows 8.1 64

    1 Reply Last reply Reply Quote 0
    • M Offline
      mitcorb
      last edited by 24 Oct 2011, 12:03

      Hi, andrea:
      Thanks for this tip. I may consider this technique when I finally set up my new system. I think quite a few folks here may like this strategy.

      I take the slow, deliberate approach in my aimless wandering.

      1 Reply Last reply Reply Quote 0
      • P Offline
        pmolson
        last edited by 24 Oct 2011, 12:23

        This really makes a lot of sense! I have been tempted to do it for
        quite some time, but have not pulled the trigger because of what is probably an
        Unfounded fear.
        What if one day Drop box ceases to exist? I have been using drop box
        for some time for a component library, but I back it up on my own hard drive periodically
        "Just in case".

        I guess the same could be done with the plug in folder. If one was to back it up each time
        a new plug in was added there would always be an up to date copy available if the drop box
        site went down or away or I was working without an internet connection....

        Am I being overly careful?

        Now you have me thinking about how beneficial this would be in the office...5 work stations
        all synced to one plug in folder.

        I need to do this. Please tell me I have been a worry wart and I have nothing to fear. 😳
        Paul

        1 Reply Last reply Reply Quote 0
        • M Offline
          mitcorb
          last edited by 24 Oct 2011, 12:29

          Believe me, I think we all have similar concerns. But, of course, the concept is good. I think any "innovation" is a double edged sword. They hacked phone mail.

          I take the slow, deliberate approach in my aimless wandering.

          1 Reply Last reply Reply Quote 0
          • A Offline
            andrea.bianco
            last edited by 24 Oct 2011, 12:45

            @pmolson: I'm really not a fan of the "cloud" so I know some of your fears quite good πŸ˜‰ In my opinion Dropbox is the safest service of its kind and it's definitely not going to disappear without notice, since they have millions of users (also big companies among them) and they just got one more huge funding. Beside that, everything you put in the Dropbox is also copied locally on the machine you use, so if the online version is not accessible you still have the local one. The best way to fight fears is obviously the usage of backups: you can setup a script (or do it manually) for doing a whole backup of the Dropbox folders you are wanting to be 100% sure you won't lose, putting it in an archive and periodically erasing the obsolete versions.

            Andrea A. Bianco
            http://www.andreabianco.eu

            HW: i7 3.8GHz | nVidia GTX590 3GB | 8GB RAM
            SW: SketchUp, Octane, Adobe CC, Painter, Windows 8.1 64

            1 Reply Last reply Reply Quote 0
            • brodieB Offline
              brodie
              last edited by 25 Oct 2011, 19:59

              Great post, I've been using this exact method for quite awhile now and it works wonderfully. I was so frustrated not having the same plugins on my computers.

              As you mention, the protection is that your files aren't ONLY located on the cloud. In fact, the files on the cloud aren't the ones you're accessing, but rather the ones on your hard drive which Dropbox disperses to all your computers. However, I have had an issue before which you should be careful of. Sometimes when I'm updating my Maxwell Render plugin everything gets erased from my plugins folder! It's happened a couple times and I suspect it has something to do with the symbolic link rather than Dropbox per se. So now whenever I change the plugins folder I copy it within the same folder (it names it Plugins Copy or something like that). So if something goes crazy I just delete the plugins folder and rename the Plugins Copy folder to Plugins. No reason you couldn't do the same thing but copy it to some other non-dropbox location if you wanted.

              If I didn't already have this set up though, I'd look into Sugar Sync (https://www.sugarsync.com/referral?rf=9cph9pitfssm&utm_source=txemail&utm_medium=email&utm_campaign=referral ). Honestly I haven't really used it much yet but it seems to work a lot like dropbox except you also have the ability to sync folders anywhere on your HD - eliminating the symbolic link hassle. I'm hoping dropbox incorporates this soon so I don't have to worry about switching. I think you also get like 5gb of free storage with sugar sync. If you haven't set up dropbox yet it's worth looking into.

              -Brodie

              steelblue http://www.steelbluellc.com

              1 Reply Last reply Reply Quote 0
              • pilouP Offline
                pilou
                last edited by 25 Oct 2011, 21:33

                Very cool but what happend when your Internet Connection is crashed for a month and all plugins are now inside the Dropbox? πŸ’š
                you have killed the original for win some place πŸ˜’

                http://www.ateliermagique.com/uploads/thumbnails/uploads/drawing/038300/038251/mince-alors_c160x160.jpg

                Frenchy Pilou
                Is beautiful that please without concept!
                My Little site :)

                1 Reply Last reply Reply Quote 0
                • brodieB Offline
                  brodie
                  last edited by 25 Oct 2011, 21:52

                  @unknownuser said:

                  Very cool but what happend when your Internet Connection is crashed for a month and all plugins are now inside the Dropbox? πŸ’š
                  you have killed the original for win some place πŸ˜’

                  http://www.ateliermagique.com/uploads/thumbnails/uploads/drawing/038300/038251/mince-alors_c160x160.jpg

                  You're misunderstanding how dropbox works I think. With dropbox there's a folder on your computer (C:\Users\bgeers\Documents\My Dropbox). When you put something in there Dropbox copies it to their server and then copies it to that same folder which is located on your other computers in the same location. So now you can access that file either by going to the My Dropbox folder on your hard drive, or by going to the dropbox website, logging in and then grabbing the file from there (basically only useful if you're on a computer where you don't have dropbox installed). Each file also gets a URL. I use this a lot to share images online or to send someone huge files.

                  So if your internet dies, or dropbox goes belly up, the only thing you lose is that syncing between your computers. You still have your My Dropbox folder on your hard drive with all the files in it.

                  -Brodie

                  steelblue http://www.steelbluellc.com

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    Jim
                    last edited by 25 Oct 2011, 22:06

                    Good article, thanks for posting.

                    XP does not support symbolic links - but you can use hardlinks for files and junctions for folders.

                    I have just started using them to make my own (and others') version controlled plugins repositories available directly from the Plugins folder.

                    Hi

                    1 Reply Last reply Reply Quote 0
                    • brodieB Offline
                      brodie
                      last edited by 26 Oct 2011, 13:01

                      @aerilius said:

                      I've also been using a similar setup for some months, it's very comfortable to have the same plugins in all SketchUp versions on all systems and always up-to-date.

                      Symlinks are really more powerful than the 'normal' links. On Windows they exist as a file system feature only since Vista+ (as far as I know). Does someone know if there is a more comfortable way to create them (ctrl+shift+drag&drop ?) or a program that can add that capability? Also any known solutions for XP?

                      I never knew about the ctrl+shift thing - nevertheless, for me it just creates a regular shortcut. The method I use is to select the folder, right-click, select Pick Link Source, go to the other folder, right-click, select Drop As, and choose the type of link you want. I use Junction - I'm not sure what the advantage of Symbolic Link is if there is one.

                      -Brodie

                      steelblue http://www.steelbluellc.com

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        andrea.bianco
                        last edited by 26 Oct 2011, 15:53

                        @Brodie : I never had that weird problem, if it will happen I will post here. Can it be the issue is connected with the Maxwell plugin? I don't use it so I can't test it. Thanks for letting me know though! About SugarSync, I tried it in the past but I felt the Dropbox way was more streamlined, so I went for it; I actually remember there was a reason in particular that made me stick to Dropbox, but a lot of time passed and I don't remember anymore πŸ˜„

                        Andrea A. Bianco
                        http://www.andreabianco.eu

                        HW: i7 3.8GHz | nVidia GTX590 3GB | 8GB RAM
                        SW: SketchUp, Octane, Adobe CC, Painter, Windows 8.1 64

                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          Aerilius
                          last edited by 26 Oct 2011, 16:14

                          I've also been using a similar setup for some months, it's very comfortable to have the same plugins in all SketchUp versions on all systems and always up-to-date.

                          Symlinks are really more powerful than the 'normal' links. On Windows they exist as a file system feature only since Vista+ (as far as I know). Does someone know if there is a more comfortable way to create them (ctrl+shift+drag&drop ?) or a program that can add that capability? Also any known solutions for XP?

                          Edit: I found a utility that adds a context menu and drag&drop to Windows for creating junctions/hard links/symbolic links etc. I've missed symlinks from Windows, but I'm happy that XP has, if at least something that works similar (junctions).
                          http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html

                          1 Reply Last reply Reply Quote 0
                          • brodieB Offline
                            brodie
                            last edited by 26 Oct 2011, 17:12

                            @andrea.bianco said:

                            @Brodie : I never had that weird problem, if it will happen I will post here. Can it be the issue is connected with the Maxwell plugin? I don't use it so I can't test it. Thanks for letting me know though! About SugarSync, I tried it in the past but I felt the Dropbox way was more streamlined, so I went for it; I actually remember there was a reason in particular that made me stick to Dropbox, but a lot of time passed and I don't remember anymore πŸ˜„

                            That's good to know about sugarsync. It seems great but until I have a reason to switch I don't have the time to figure it out. Good to know I'm on the right track based on your experience.

                            It probably does have something to do with the way the Maxwell installer works. I've never heard of anyone else having issues but I don't know of anyone who's run the installer who also syncs with dropbox. So I'm sure I'm just in a very small bubble. I just thought I'd bring it up as an outside possibility for caution. 99% of users wouldn't need to worry about it but if you use plugins with some sort of installer (mostly rendering plugins I'd imagine), it wouldn't hurt to be extra careful.

                            -Brodie

                            steelblue http://www.steelbluellc.com

                            1 Reply Last reply Reply Quote 0
                            • W Offline
                              wyatt
                              last edited by 27 Oct 2011, 01:28

                              For some reason I can't get this to work on my home computer. I set it up fine at work. I followed the same instructions at home and it seems like it worked, but the link to the Dropbox plugins file did not show up in my Sketchup directory. I thought maybe I'd done something wrong so I typed the commands again and now it says: Cannot create a file when that file already exists. How do I delete the link that apparently doesn't work on my home computer, and what step do I need to do differently to link correctly to my dropbox files?

                              1 Reply Last reply Reply Quote 0
                              • brodieB Offline
                                brodie
                                last edited by 27 Oct 2011, 04:04

                                @unknownuser said:

                                For some reason I can't get this to work on my home computer. I set it up fine at work. I followed the same instructions at home and it seems like it worked, but the link to the Dropbox plugins file did not show up in my Sketchup directory. I thought maybe I'd done something wrong so I typed the commands again and now it says: Cannot create a file when that file already exists. How do I delete the link that apparently doesn't work on my home computer, and what step do I need to do differently to link correctly to my dropbox files?

                                Make sure that you're removing the Plugins folder from C:\Program Files (x86)\Google\Google SketchUp 8 and move that folder to dropbox (just a simple cut/paste will do). Then choose that Plugins folder in Dropbox as the link source and then drop that into C:\Program Files (x86)\Google\Google SketchUp 8. That way when SU looks for a plugin it will look into the Google folder and be routed to dropbox. I gather you may have reversed the steps in which case it won't work as a sync. Am I mistaken?

                                -Brodie

                                steelblue http://www.steelbluellc.com

                                1 Reply Last reply Reply Quote 0
                                • W Offline
                                  wyatt
                                  last edited by 27 Oct 2011, 13:39

                                  Brodie, At work I removed the plugins folder from it's default location and pasted it into my dropbox folder. Then I issued these commands:
                                  cd C:\Program Files (x86)\Google\Google SketchUp 8
                                  mklink /D Plugins C:\Users\MyUserName\DropBox\Sketchup\Plugins
                                  This created a new folder in my SketchUp 8 folder that linked back to dropbox. At home, I removed the plugins folder from the \SketchUp directory. Since I already have the plugins folder in my dropbox, I didn't paste it there. Then I issued the same commands as I did at work, but the new folder in \SketchUp 8 was not added. When you say "drop that" (the dropbox plugins folder) into my \Sketchup directory, do you mean to copy it? How is the link maintained if I do that?

                                  1 Reply Last reply Reply Quote 0
                                  • brodieB Offline
                                    brodie
                                    last edited by 27 Oct 2011, 15:36

                                    Sorry, I didn't really read through the original posters instructions. I'm not sure why you'd use the cmd line for this. Downloading that symlink extension for windows adds a right-click option. I wrote some brief instructions here http://forums.sketchucation.com/viewtopic.php?f=15&t=34019&hilit=+dropbox

                                    I think using the right-click method avoids some of the mystery behind using the cmd line. Since you've got the plugins folder in your dropbox and it's apparently set up fine at work at home all you should have to do is make sure you don't have a plugins folder in the google location. Right-Click your Plugins folder in dropbox select Pick Link Source (this is the new option which the shell extension adds). Then go to the google location where SU will look for the Plugins folder right-click and you'll see an option Drop As select that and choose Junction (or according to the OP symbolic link should work too).

                                    Let me know if that works.

                                    -Brodie

                                    steelblue http://www.steelbluellc.com

                                    1 Reply Last reply Reply Quote 0
                                    • hellnbakH Offline
                                      hellnbak
                                      last edited by 28 Oct 2011, 17:01

                                      I don't use dropbox but ran across this article expressing some concerns about it's security, just FYI http://www.zdnet.com/blog/bott/sorry-dropbox-i-still-dont-trust-you/4173?tag=nl.e539

                                      "Politicians are just like diapers -- they need to be changed often, and for the same reason"

                                      1 Reply Last reply Reply Quote 0
                                      • A Offline
                                        andrea.bianco
                                        last edited by 28 Oct 2011, 18:42

                                        @hellbank: thanks for the link. As I said earlier in this thread, I'm not a fan of the cloud; there's not a single cloud service out there that can give us a 100% safe service with total protection of our privacy and that can promise no outages or server issues. I simply don't trust the cloud for anything really confidential. That being said, using Dropbox for keeping my plugins and resources in sync between many machines is giving me no concerns in terms of outages (I still have local copies, it's the beauty of Dropbox) nor privacy ones (my plugins are downloded from the net, like many of my resources). I also use Dropbox for sharing files online (my tutorials, images, ect) and since I'm sharing them already, I don't care about "privacy" etc. I think putting confidential stuff online is always a risk and should be avoided as much as possible, no matter the platform we use (email, social network, cloud storage, etc). By the way, I really don't think Dropbox is less safe than GMail or any other Google service -- remember when Google pushed Buzz on the users making their provate contact lists visible to everyone else, also giving a frequency of contact indication? Well I'm glad SketchUp and YouTube are the only Google services I use πŸ˜‰

                                        Andrea A. Bianco
                                        http://www.andreabianco.eu

                                        HW: i7 3.8GHz | nVidia GTX590 3GB | 8GB RAM
                                        SW: SketchUp, Octane, Adobe CC, Painter, Windows 8.1 64

                                        1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          Jim
                                          last edited by 28 Oct 2011, 20:09

                                          Just a thought - if plugin authors each used a shared dropbox, then it might be possible that we could all get instant plugin updates directly as they are made.

                                          Hi

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 1 / 3
                                          1 / 3
                                          • First post
                                            1/46
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement