• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

OpenSUP - open source sketchup related old project

Scheduled Pinned Locked Moved Developers' Forum
6 Posts 2 Posters 617 Views 2 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.
  • T Offline
    tbd
    last edited by 2 Mar 2010, 15:31

    Link Preview Image
    GitHub - TBD/OpenSUP: Open SketchUp Projects

    Open SketchUp Projects. Contribute to TBD/OpenSUP development by creating an account on GitHub.

    favicon

    GitHub (github.com)

    • Dezip - Ruby library for unziping files
    • SME - Sketchup Macro Editor - web based interface for creating ruby scripts
    • SUExt - simple extension that adds 1 to input to give you a head start in creating Ruby extensions in C

    what is it ?

    I start open sourcing my old projects that are getting dust on my HDD. Feel free to fork it and add/modify them.

    hope to add more projects in the near future so stay updated via RSS on that github page.

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

    1 Reply Last reply Reply Quote 0
    • T Offline
      thomthom
      last edited by 2 Mar 2010, 16:18

      Great! πŸ‘ πŸ‘ πŸ‘
      Dezip sounds very interesting.

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

      1 Reply Last reply Reply Quote 0
      • T Offline
        thomthom
        last edited by 30 Mar 2010, 07:47

        Comparing against this article: http://www.rubyinside.com/how-to-create-a-ruby-extension-in-c-in-under-5-minutes-100.html

        
        // general Windows
        #pragma comment(lib, "kernel32.lib")
        #pragma comment(lib, "gdi32.lib")
        #pragma comment(lib, "user32.lib")
        #pragma comment(lib, "shell32.lib")
        
        // Ruby
        #define HAVE_ISINF 1  // isinf macro redefinition workaround
        #pragma comment(lib, "msvcrt-ruby18.lib");
        
        // DLL
        #pragma comment(lib, "crt.lib");
        
        #include <windows.h>
        
        

        Are all this extra stuff required in order to work with SU Ruby?

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

        1 Reply Last reply Reply Quote 0
        • T Offline
          tbd
          last edited by 30 Mar 2010, 10:56

          nope, are just some compiler switches so that it works without the need of fiddling in linker settings

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

          1 Reply Last reply Reply Quote 0
          • T Offline
            thomthom
            last edited by 30 Mar 2010, 11:07

            Cheers.

            I was at first looking at C++. But I'm now settling on C going by the examples you made and the ones at http://www.ruby-doc.org/docs/ProgrammingRuby/html/ext_ruby.html. Seems to be the path of least resistance.

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

            1 Reply Last reply Reply Quote 0
            • T Offline
              tbd
              last edited by 30 Mar 2010, 11:10

              that's the one I took as well - free and fast compiler (PellesC) and easier to debug (using OllyDbg)

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

              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