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

    [WebDialog]Behind nset Sketchup API

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

      I hope some people find the nset version of Alex's cheat sheet useful but really the main purpose was to demonstrate an alternative method of working that energerises names with computer code. Linked together in sets they provide machine-like support. Specific data is simply clicked into focus rather than the reader having to look through pages.

      apiDevice Nov 022.png

      Of course there is more to this kind of device; this topic is for discussing that.

      After making the prototype Jim and I decided the code needed a core of universal application and specific device code that required only input of names, number of sliders and other simple configuration variables. This provides a kind of operating system to move the words and offer them for selection. The real clever bits are provided by device developers who know what they want to do with selections. Names of some API related devices are suggested in the righthand slider; here are some ideas about one or two of them.

      We have made protoptypes of Jim's Ruby Web Console and Lists (a device for developers to check selections in nsets in json).

      ApimConsole Oct 30 1930.pnglistsAPI Nov 2 1815.png

      I think Jim has converted the data for the extensions register so a device could be easily developed from that both as an associative index for plugins and their authors and a console type device for reports, links and input. An assembly device might support building webdialogs from code snippets ...

      But there are still some things outstanding with the main device and more to come no doubt from SCF rigorous testing and commentary. The main one for me is splitting methods into alphabetical blocks but if you have any other suggestions (better still solutions) please put them forward here.

      Edit:

      Nov 17 - added picture of API device
      and the link to plug in post

      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
      • alexschreyerA Offline
        alexschreyer Extension Creator
        last edited by

        Well done, Chris (and Jim)! This is a very nice in-SketchUp Ruby reference.

        Cheers, Alex

        Author of "Architectural Design with SketchUp":
        http://sketchupfordesign.com/

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

          This is an image of the core application running as both a plugin to sketchup, and as a stand-alone application in Chrome (work-in-progress.)

          http://lh6.ggpht.com/_d8kjbzOx5GM/SwFaWOlQ6PI/AAAAAAAAAZQ/f-HGUh1dqoU/s800/076.jpg

          Hi

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

            That does the *Items do?

            (I got an old Mac Mini at home - I can see if I can fire it up. Not sure if I get time today though.)

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

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

              Would be nice if you could type keys on the keyboard to have the list skip to the first entry of that key . for the last used row. And scrollwheel support.

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

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

                • Nothing

                They are place-holders/suggestions for features/actions/devices.

                Right now the only device is the animated sliders. You can imagine a device being any sort of thing really. data entry devices, image displays, links.

                Hi

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

                  Right, so other devices could register their own action?

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

                  1 Reply Last reply Reply Quote 0
                  • jeff hammondJ Offline
                    jeff hammond
                    last edited by

                    on a mac:
                    .
                    screen 3.jpg

                    from what i gather, safari makes this type of stuff unnecessarily difficult to achieve (though it is possible)

                    dotdotdot

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

                      @thomthom said:

                      Right, so other devices could register their own action?

                      Please go here for an introductory explanation and labelled picture. Sorry I should have provided the link before. Thanks for your interest!

                      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
                      • chrisglasierC Offline
                        chrisglasier
                        last edited by

                        Jim has got the device working in a couple of browsers. He asked me to post these images on his behalf to see if anyone else is interested in this aspect - I am more interested in finalising the machine that runs this or other such devices from the desktop.
                        Chrome browser in re sizable div
                        In Firefox sidebar

                        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
                        • 1 / 1
                        • First post
                          Last post
                        Buy SketchPlus
                        Buy SUbD
                        Buy WrapR
                        Buy eBook
                        Buy Modelur
                        Buy Vertex Tools
                        Buy SketchCuisine
                        Buy FormFonts

                        Advertisement