sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Advice : Developing Ruby extension for Sketchup (Windows)

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 4 Posters 258 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:

        Error 404 (Not Found)!!1

        favicon

        (code.google.com)

        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.)

          Link Preview Image
          OpenSUP/SUExt at master · TBD/OpenSUP

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

          favicon

          GitHub (github.com)

          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