SketchUp Plugin using C++ SDK
-
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 -
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.
-
@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)
-
hmm... I can't seem to find this "SketchUp Simple Extension" either...
-
@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,
markOn 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.
-
why not attaching to the post as it is ok to distribute it ?
-
Gotto say - this "simple extension" look more complicated than TDB's extension sample...
-
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
-
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.
Advertisement