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

    Using script written in notepad++

    Scheduled Pinned Locked Moved Developers' Forum
    6 Posts 3 Posters 209 Views 3 Watching
    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.
    • J Offline
      jshaz
      last edited by

      Hi guys just tried to save some ruby script (.rb file) from notepad++ into my plugins. It says I need administrators permission to save it in this location. any advice on how to get around this. It's probably really obvious but my brain has decided to stop functioning. thanks.

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        Before we fix your 'permissions'... as you save a .rb file ensure that its Encoding is 'UTF-8 without BOM' [aka 'ANSI as UTF-8'] - this will ensure cross-platform compatibility etc. You can have that set as Notepad++'s default...

        Now for the 'permissions'...
        You'll probably need to have Admin privileges to do what follows...
        The Plugins folder inherits its security-permissions form the folder that contains it.
        To change this open the Sketchup folder and select the Plugins folder's icon.
        Right-click > context-menu > Properties > Security > Edit: change all its settings to 'FULL' [for you, and others if appropriate].
        Apply/OK to close and save these changes.
        Check that the permissions have filtered down to subfolders etc within Plugins too...
        Now you should be able to readily read/write/add/delete files/folders etc.
        Have you not had terrible problems installing tools manually with the permissions set so awry ?

        As well as the 'Plugins' folder you might also want to fix the permissions of three other Sketchup subfolders, into which you will want unfettered access from time to time - Components, Materials and Styles...

        TIG

        1 Reply Last reply Reply Quote 0
        • J Offline
          jshaz
          last edited by

          Thanks TIG, just made those changes now gonna see how it works.

          1 Reply Last reply Reply Quote 0
          • J Offline
            jshaz
            last edited by

            I can know save that file to my plugins folder thanks. I have encountered another stumbling block however, for some reason this file won't show up on my list of extensions i want to install or on my plugins dropdown in sketchup. any ideas how I might solve this? thanks for your help again.

            1 Reply Last reply Reply Quote 0
            • A Offline
              Aerilius
              last edited by

              Have you added your plugin to a menu (or toolbar or anything else)?
              http://www.sketchup.com/intl/en/developer/docs/ourdoc/menu#add_item

              Is your plugin an "extension" according to SketchUp's definition?
              Check out this: http://sketchupapi.blogspot.de/2011/07/turn-your-plugin-into-extension.html

              1 Reply Last reply Reply Quote 0
              • TIGT Offline
                TIG Moderator
                last edited by

                Because you haven't given us the slightest clue about how you have structured your script how could we hope to help you πŸ˜’
                There are by now many example scripts around to give you a clue on how to construct one...
                You speak of 'extension' - have you constructed you tool in two parts ? a loader and a main script in a subfolder? Have you given it a menu.context-menu/toolbar etc...
                Looks like you have some way to go πŸ˜•

                TIG

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

                Advertisement