sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    7.1 API Release Notes

    Scheduled Pinned Locked Moved Developers' Forum
    10 Posts 5 Posters 1.3k 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.
    • R Offline
      remus
      last edited by

      http://code.google.com/apis/sketchup/docs/releases.html

      Few of new methods but nothing major.

      http://remusrendering.wordpress.com/

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

        Hey! thanks remus. I have made this sticky - for a few weeks, at least.

        Nothing major - but being able to screen-shot a WebDialog from Ruby is interesting.

        New Ruby API Methods

        • model.number_faces - Returns the number of faces in the Model.

        • model.georeferenced? - This methods determines if the model is georeferenced.

        • view.refresh - The refresh method is used to immediately refresh the view.

        • mywebdialog.write_image 'img.jpg' - The write_image method is used to grab a portion of the screen and save the image to the given file path.

        Hi

        1 Reply Last reply Reply Quote 0
        • chrisglasierC Offline
          chrisglasier
          last edited by

          @jim said:

          Nothing major - but being able to screen-shot a WebDialog from Ruby is interesting.

          ... but is it really useful when there are so many screen capturing options. Seems a bit gimmicky to me, but I stand to be corrected - as usual!

          Chris

          With TBA interfaces we can analyse what is to be achieved so that IT can help with automation to achieve it.

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

            It is the core functionality behind the Photo Texture tool in 7.1.

            It should be easier to write plugins which insert textures from photo sites such as flickr, for example.

            Hi

            1 Reply Last reply Reply Quote 0
            • chrisglasierC Offline
              chrisglasier
              last edited by

              @jim said:

              It is the core functionality behind the Photo Texture tool in 7.1.

              It should be easier to write plugins which insert textures from photo sites such as flickr, for example.

              Suitably corrected and content noted. Thanks.

              Chris

              With TBA interfaces we can analyse what is to be achieved so that IT can help with automation to achieve it.

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

                Wonder if it's possible to make a crude in-model browser... Output the content of a hidden webdialog with a given interval to a face. Then capture the clicks on the face and send them back to the dialogue. Not sure if it's possible to simulate the clicks though.

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

                1 Reply Last reply Reply Quote 0
                • chrisglasierC Offline
                  chrisglasier
                  last edited by

                  @thomthom said:

                  Wonder if it's possible to make a crude in-model browser... Output the content of a hidden webdialog with a given interval to a face. Then capture the clicks on the face and send them back to the dialogue. Not sure if it's possible to simulate the clicks though.

                  Seems possible but why?

                  With TBA interfaces we can analyse what is to be achieved so that IT can help with automation to achieve it.

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

                    Just "because". πŸ˜‰

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

                    1 Reply Last reply Reply Quote 0
                    • chrisglasierC Offline
                      chrisglasier
                      last edited by

                      @thomthom said:

                      Just "because". πŸ˜‰

                      Where's Martin (he loves that kind of thing)

                      With TBA interfaces we can analyse what is to be achieved so that IT can help with automation to achieve it.

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        tomot
                        last edited by

                        @jim said:

                        Hey! thanks remus. I have made this sticky - for a few weeks, at least.

                        Nothing major - but being able to screen-shot a WebDialog from Ruby is interesting.

                        I misinterpreted the word Screen shot, I'm hoping for pictures to be added to the code examples for the entire ruby api, where ever possible. It would help get more potential ruby scriptwriters on board.

                        [my plugins](http://thingsvirtual.blogspot.ca/)
                        tomot

                        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