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

    Advice : Developing Ruby extension for Sketchup (Windows)

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 4 Posters 225 Views 4 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.
    • N Offline
      nicholas_yue
      last edited by

      Hi,

      I tried looking for the information at the FAQ.

      I am writing a C++ based Ruby Extension for use in Sketchup.

      Where can I find information regarding the C++ compiler version and Ruby version required for easier integration with Sketchup?

      Should I build my own version of Ruby ? Should I avoid developing in 64bit windows ?

      I am targeting Sketchup version 8.X

      Regards

      1 Reply Last reply Reply Quote 0
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        Well, much of what you do as far as basic SketchUp extension - plugins if you will - is actually done in Ruby. The integration with SketchUp as a software is done in Ruby. Interfacing with a .skp file directly though is where you would need the C sdk.

        So if you need to write .skp files, or read them, then you will need the C sdk. Otherwise, plan on getting into Ruby. And here is the API:

        http://code.google.com/apis/sketchup/docs/index.html

        Lately you've been tan, suspicious for the winter.
        All my Plugins I've written

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

          C++ ? Ruby Extensions are normally written in C.

          TBD got a simple C Extension sample which allowed me to get started with making a C Extension that worked in SketchUp Ruby. (Mine just crashed when I followed the tutorials for plain vanilla Ruby when I tried it inside SketchUp.)

          https://github.com/TBD/OpenSUP/tree/master/SUExt

          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

            You have read the FAQ page I made?

            [Info] C/C++ Ruby extensions & SketchUp plugins

            I'm not here much anymore.

            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