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

    An intereting question

    Scheduled Pinned Locked Moved Developers' Forum
    6 Posts 3 Posters 347 Views 3 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.
    • Z Offline
      zps222
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by

        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

        Hi

        1 Reply Last reply Reply Quote 0
        • Z Offline
          zps222
          last edited by

          @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

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jim
            last edited by

            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.

            Hi

            1 Reply Last reply Reply Quote 0
            • Dan RathbunD Offline
              Dan Rathbun
              last edited by

              @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.

              I'm not here much anymore.

              1 Reply Last reply Reply Quote 0
              • Dan RathbunD Offline
                Dan Rathbun
                last edited by

                @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.

                I'm not here much anymore.

                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