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

    SketchUp Plugin using C++ SDK

    Scheduled Pinned Locked Moved Extensions & Applications Discussions
    extensions
    9 Posts 5 Posters 5.8k Views 5 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.
    • D Offline
      deelip
      last edited by

      Hello, I need to create a SketchUp plug-in using their C++ SDK. I downloaded the SDK today but could not find any information on how to create a Win32 DLL that SketchUp can recognize to be a plug-in. Does anyone have the source code of a sample C++ SketchUp plugin which they can share? If not, can someone point me to a place where I can get the help I need. Thanks in advance.

      Deelip Menezes
      http://www.deelip.com

      1 Reply Last reply Reply Quote 0
      • Al HartA Offline
        Al Hart
        last edited by

        See if you can find something called "simple Extension". It creates a DLL which can have functions callable from SU Ruby, and can access the SketchUp classes directly.

        Al Hart

        http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
        IRender nXt from Render Plus

        1 Reply Last reply Reply Quote 0
        • Al HartA Offline
          Al Hart
          last edited by

          @unknownuser said:

          I have a DLL compiled from C++ code and I need to create objects in Ruby that correspond to the C++ objects in the DLL and consequently call the C++ code from Ruby.

          You need the SketchUp Simple Extension. I will try to find a copy for you.

          Does anyone else have a copy and/or has anyone had any luck getting a copy from SketchUp?

          (As an aside, I would very much like a Mac version of this - but my attempts to find one have not been successful)

          Al Hart

          http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
          IRender nXt from Render Plus

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            last edited by

            hmm... I can't seem to find this "SketchUp Simple Extension" either... 😞

            Thomas Thomassen — SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

            1 Reply Last reply Reply Quote 0
            • Al HartA Offline
              Al Hart
              last edited by

              @unknownuser said:

              Hey Al,

              Thanks for checking.

              I believe Sang has (or will have) simple extensions in our SDK soon, but in the meantime it's perfectly okay to distribute this. The more people who know the techniques, the better.

              Cheers,
              mark

              On Jan 19, 2008 11:13 AM, Al Hart al.hart@renderplus.com wrote:
              Mark,

              We obtained an interface called Simple Extension, which is the basis for our Ruby interfaces to C++ code.
              // SimpleExtension.cpp : Defines the initialization routines for the DLL.
              //
              //=============================================================================
              // Copyright 1999-2006 @Last Software
              //=============================================================================

              This does not seem to be part of the SDK which SketchUp releases to developers.

              Send me a Private Message, or an email to al.hart@renderplus.com and I will send you a copy.

              Al Hart

              http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
              IRender nXt from Render Plus

              1 Reply Last reply Reply Quote 0
              • tbdT Offline
                tbd
                last edited by

                why not attaching to the post as it is ok to distribute it ?

                SketchUp Ruby Consultant | Podium 1.x developer
                http://plugins.ro

                1 Reply Last reply Reply Quote 0
                • thomthomT Offline
                  thomthom
                  last edited by

                  Gotto say - this "simple extension" look more complicated than TDB's extension sample...

                  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
                    driven
                    last edited by

                    Hi All and Al,

                    I've been in contact with JetBrains [RubyMine] about setting up an open source project to write a free RM-Plugin specifically for SU, they've agreed to free licenses for 'community' participants and students.

                    I have had an offer from a highly capable java/ruby software engineer [SCF member who works for Eclipse] to get a test version up and running asap.

                    While he and the US sleeps, I'm trying to find bits and pieces to make his task easier and thought a copy of this would be useful to him. I'm guessing it would, tell me if I'm wrong... or is there a better way in.

                    I'll do an update on my "need Help with SU editor" thread when I know it's all going ahead and in what direction, but PM me if you have any off topic queries.

                    Obviously a Mac equivalent is high on my list...

                    john

                    learn from the mistakes of others, you may not live long enough to make them all yourself...

                    1 Reply Last reply Reply Quote 0
                    • Al HartA Offline
                      Al Hart
                      last edited by

                      I found it pretty useful - especially after I created a lot macros and routines to do common things.

                      I'll send you a link to it by PM

                      Note - it contains a copyright from Google, so you may not be able to include it in an Open Source project without their permission.

                      Al Hart

                      http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
                      IRender nXt from Render Plus

                      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