An intereting question
-
Is it possible that Only run the ruby script to build the model, without "openning" SketchUp. Just in the header to recall the library or something?
-
I believe that may possible using the SDK.
SDK: http://code.google.com/apis/sketchup/docs/downloadsdksubmit.html
Forum: http://groups.google.com/group/su-sdk-fileshare/topics
-
@jim said:
I believe that may possible using the SDK.
SDK: http://code.google.com/apis/sketchup/docs/downloadsdksubmit.html
Forum: http://groups.google.com/group/su-sdk-fileshare/topics
Thank you Jim, just one more question.
Right now, I am using eclispe to recall the function of SU, but I can only operate in the conditions that 1st: in Windows, 2nd, the SU is open.
My final destination is simply use any software like eclipse or something in MAC, and run my code without openning SU.
So my question is, is the method you offered can be realized as what I intended?
Thank you again -
I misunderstood your question. To the best of my understanding, Sketchup must be runnning, and you must use SketchUp's built-in Ruby interpreter in order to use any API methods.
The SDK allows you to read and write .skp files, and is not a instance of a sketchup application.
On a possibly related note, I do have a very basic ruby library that implements some of the api classes and methods (called MockUp.) The source code is here. It's not really usable for anything and I only update it very occasionally. But it's there if anyone is interested.
-
@jim said:
The SDK allows you to read and write .skp files, and is not a instance of a sketchup application.
And ... the programming language is C++, not Ruby.
However... using Ruby's Win32API.so, the DLL exported functions of the Reader and Writer DLLs should be callable from Ruby. -
@zps222 said:
Is it possible that Only run the ruby script to build the model, without "openning" SketchUp.
You can use Ruby to write a Collada XML file (.DAE), and then that can be imported into Sketchup.
Advertisement