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!
    πŸ«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    DLL callback to ruby

    Scheduled Pinned Locked Moved Developers' Forum
    41 Posts 4 Posters 10.8k 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.
    • Dan RathbunD Offline
      Dan Rathbun
      last edited by


      You will need to do some studying:


      1. Read and bookmark this post:

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

      1. You will need to download the Ruby C source, as your DLL code must:

      %(#404080)[include "ruby.h"]

      1. Read the old "Pick-Axe" book's chapter on writing a Ruby extension.

      Programming Ruby: Extending Ruby

      1. Take note of the Ruby C-side functions:
      • rb_eval_string( *string_to_eval* )* rb_funcall
        ... described in section "Evaluating Ruby Expressions in C"
      1. ❗ okay, a dedicated C side Ruby book is also now available:
      • http://media.pragprog.com/titles/ruby3/ext_ruby.pdf

      I'm not here much anymore.

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

      Advertisement