• Login
sketchucation logo sketchucation
  • Login
🔌 Quick Selection | Try Didier Bur's reworked classic extension that supercharges selections in SketchUp Download

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 29 Aug 2011, 05:34

    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
    • C Offline
      Chris Fullmer
      last edited by 29 Aug 2011, 05:54

      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
      • T Offline
        thomthom
        last edited by 29 Aug 2011, 07:39

        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
        • D Offline
          Dan Rathbun
          last edited by 29 Aug 2011, 07:39

          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
          1 / 1
          • First post
            4/4
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement