Advice : Developing Ruby extension for Sketchup (Windows)
-
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
-
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:
-
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.)
OpenSUP/SUExt at master · TBD/OpenSUP
Open SketchUp Projects. Contribute to TBD/OpenSUP development by creating an account on GitHub.
GitHub (github.com)
-
You have read the FAQ page I made?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginAdvertisement