sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Download files with a SketchUp plugin

    Scheduled Pinned Locked Moved Developers' Forum
    47 Posts 11 Posters 6.9k Views 11 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.
    • tbdT Offline
      tbd
      last edited by

      here is what I did to make it work:

      1. remove the x64 version from makefile - you can check with otool -hv file_downloader.bundle -> cputype I386

      2. link to the correct libruby.1.dylib (1.8.7 in my case as I upgraded Sketchup Ruby framework) - check with otool -L file_downloader.bundle -> current version 1.8.7

      SketchUp Ruby Consultant | Podium 1.x developer
      http://plugins.ro

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        I really wish I understood the things required to compile correctly. I've compiled a couple of C-Extension, but only at the grace of TBD and AdamB who helped me out getting the setup to work. But I have no idea how or why... 😞

        Can anyone recommend resources to understand this?

        Thomas Thomassen β€” SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • I Offline
          ishboo
          last edited by

          @unknownuser said:

          here is what I did to make it work:

          1. remove the x64 version from makefile - you can check with otool -hv file_downloader.bundle -> cputype I386

          2. link to the correct libruby.1.dylib (1.8.7 in my case as I upgraded Sketchup Ruby framework) - check with otool -L file_downloader.bundle -> current version 1.8.7

          You got it to work in Mac? That's great! Is there any chance you could send me the Makefile (or send me a Pull request on Github) so I can see where you removed the x64 bits. I couldn't find anything in the Makefile (generated by the extconf.rb file) that had any reference to x64. Thanks TBD!

          SketchUp plugin marketplace: http://extendsketchup.com/

          1 Reply Last reply Reply Quote 0
          • I Offline
            ishboo
            last edited by

            @thomthom said:

            I really wish I understood the things required to compile correctly. I've compiled a couple of C-Extension, but only at the grace of TBD and AdamB who helped me out getting the setup to work. But I have no idea how or why... 😞

            Can anyone recommend resources to understand this?

            Once I wrap my head around this stuff, I will be writing up a few articles on the subject. I'll post links when I get them done πŸ˜„

            SketchUp plugin marketplace: http://extendsketchup.com/

            1 Reply Last reply Reply Quote 0
            • tbdT Offline
              tbd
              last edited by

              ishboo: pull request sent. also added my 1.8.7 bundle in /build

              thomthom compiling is like a black box where you throw a bunch of files and expect another bunch of files. you need to know the parameters used (mostly how to include headers and libs and output formats) from the help files. also wikipedia entry on compilers is a good start for an overview.

              also use a file monitor [procmon(Win) and opensnoop(OSX)] when things go wrong - it saved me a lot of time when files were not found (looking in wrong directories) or wrong files were used.

              SketchUp Ruby Consultant | Podium 1.x developer
              http://plugins.ro

              1 Reply Last reply Reply Quote 0
              • thomthomT Offline
                thomthom
                last edited by

                @unknownuser said:

                thomthom compiling is like a black box where you throw a bunch of files and expect another bunch of files. you need to know the parameters used (mostly how to include headers and libs and output formats) from the help files. also wikipedia entry on compilers is a good start for an overview.

                Headers and libs are one thing. But it's all the paramters, the output format and compiler settings that I have no idea of how it works. I've tried looking for tutorials - but found nothing that made me any wiser. 😞

                Thomas Thomassen β€” SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                1 Reply Last reply Reply Quote 0
                • Dan RathbunD Offline
                  Dan Rathbun
                  last edited by

                  ` %(#4000BF)[C:\Program Files\Microsoft Visual Studio 8\VC\bin>nmake /?

                  Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
                  Copyright (C) Microsoft Corporation. All rights reserved.

                  Usage: NMAKE @commandfile
                  NMAKE [options] [/f makefile] [/x stderrfile] [macrodefs] [targets]

                  Options:

                  /A Build all evaluated targets
                  /B Build if time stamps are equal
                  /C Suppress output messages
                  /D Display build information
                  /E Override env-var macros
                  /ERRORREPORT:{NONE|PROMPT|QUEUE|SEND} Report errors to Microsoft
                  /G Display !include filenames
                  /HELP Display brief usage message
                  /I Ignore exit codes from commands
                  /K Build unrelated targets on error
                  /N Display commands but do not execute
                  /NOLOGO Suppress copyright message
                  /P Display NMAKE information
                  /Q Check time stamps but do not build
                  /R Ignore predefined rules/macros
                  /S Suppress executed-commands display
                  /T Change time stamps but do not build
                  /U Dump inline files
                  /Y Disable batch-mode
                  /? Display brief usage message]`

                  I'm not here much anymore.

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

                    @unknownuser said:

                    The point is that you can do it from a Web dialog (via XMLHttpRequest), but sometimes you may want to check 'silently' whether something has changed on the web.

                    In this case, the WebDialog could be opened outside of the visible area of the screen and sized to a minimum.

                    
                    
                    wd = UI;;WebDialog.new
                    wd.set_position(-1000, -1000)
                    wd.show
                    
                    
                    

                    I think folks would welcome a simpler workflow without being asked where to save the file first. A single button to install/upgrade a plugin followed with a reminder to close and restart SketchUp.

                    Hi

                    1 Reply Last reply Reply Quote 0
                    • thomthomT Offline
                      thomthom
                      last edited by

                      Plus, WebDialogs capture focus when they are displayed - which can be an annoyance if they pop up out of screen without the user' knowledge.

                      Thomas Thomassen β€” SketchUp Monkey & Coding addict
                      List of my plugins and link to the CookieWare fund

                      1 Reply Last reply Reply Quote 0
                      • R Offline
                        RonB
                        last edited by

                        Is there a Windows build in sight?

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

                        Advertisement