• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Getting Started with C++ and Sketchup

Scheduled Pinned Locked Moved Developers' Forum
3 Posts 2 Posters 2.9k Views
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.
  • S Offline
    sketchaholic
    last edited by 31 Mar 2011, 19:21

    Hi, I'm a new user and I'd like to get started with the programming aspect of Sketchup. I'd just like to ask you all how to get started with the C++. I downloaded the package on the SDK kit, but now, what's the next step?

    I'd prefer to use C++ since that's the language I'm most familiar with, but if necessary I'll use Ruby. The

    When I go to the stuff downloaded from the SDK page, there's a folder with "Binaries" "Documentation" "Example" "Interfaces". So, where do I go from here? Any help would be appreciated.

    1 Reply Last reply Reply Quote 0
    • D Offline
      Dan Rathbun
      last edited by 1 Apr 2011, 04:51

      The SDK you downloaded is mostly for 3rd Party applications to enable reading and writing SKP format files.

      The language for scripting inside Sketchup is Ruby. So you need to learn Standard Ruby. Sketchup loads Ruby extensions (modules called the Sketchup API, and some additions to standard Ruby classes.)

      There is no way for you to avoid learning Ruby.

      However.. Ruby itself is written in C. Once you know how Ruby works, you can write plugins for Sketchup in C or C++ and wrap them to expose them to Ruby. (There are tools like SWIG that make this easier.) These kind of plugins are complied into a SO or DLL files. Many of the standard extented Ruby libraries are distro'd as compiled .so files. The global Ruby method require() can load text scripts (.rb) and also compiled binaries (.so,.o,.dll,.dylib, etc)

      Click the link in my signature line.. it will lead you to a bunch of information, downloadable books, etc.
      You can also search this forum.. as we've discussed writing plugins in C and C++ in the past.

      I'm not here much anymore.

      1 Reply Last reply Reply Quote 0
      • S Offline
        sketchaholic
        last edited by 2 Apr 2011, 05:21

        Thanks.

        Now I know where to start.

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

        Advertisement