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

    SU Ruby Cheat-sheet

    Scheduled Pinned Locked Moved Developers' Forum
    19 Posts 5 Posters 5.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

      You thinking of Scotts objects diagram? http://code.google.com/apis/sketchup/docs/diagram.html

      If so it only has classes and observers, not methods.

      http://remusrendering.wordpress.com/

      1 Reply Last reply Reply Quote 0
      • alexschreyerA Offline
        alexschreyer Extension Creator
        last edited by

        I made another version of the same sheet. This one is more condensed and prints on three pages.

        301 Moved Permanently

        favicon

        (www.alexschreyer.net)

        I think it would be a great addition to a cheat sheet to have a sample mini-plugin added as well. Is there already an accepted "framework" out there?

        Cheers,
        Alex

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

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

          I wonder how it would look in a compact little WebDialog.

          Hi

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

            @jim said:

            I wonder how it would look in a compact little WebDialog.

            ... a compact animated little WebDialog like this perhaps, where coding terminology is substituted for names of real objects and groupings:
            Basic machine.png

            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

              Good idea to put it into a webdialog. Actually, Jim, you could add a list of objects/methods to your webconsole and make those clickable so that they automatically get inserted into the editor.

              FYI: I updated the cheatsheet for the new (7.1) functions.

              Cheers,
              Alex

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

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

                @alexschreyer said:

                ... Actually, Jim, you could add a list of objects/methods to your webconsole and make those clickable so that they automatically get inserted into the editor.

                I think it possible to double click on a machine name to insert into your webconsole. Perhaps we can "discuss" over the newly-found collaborative editor?

                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

                  @alexschreyer said:

                  Good idea to put it into a webdialog. Actually, Jim, you could add a list of objects/methods to your webconsole and make those clickable so that they automatically get inserted into the editor.

                  Alex, can you share the data used for the cheat-sheet? It would save some work for sure. Chris Glasier and I would like to experiment with creating a dialog.

                  Hi

                  1 Reply Last reply Reply Quote 0
                  • alexschreyerA Offline
                    alexschreyer Extension Creator
                    last edited by

                    Great to hear you want to try this out. I'll post a text file with the entire list later today.

                    Cheers, Alex

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

                    1 Reply Last reply Reply Quote 0
                    • alexschreyerA Offline
                      alexschreyer Extension Creator
                      last edited by

                      Here ya go. This file is the 7.0 list, so you'll have to add the new functions.

                      Cheers,
                      Alex


                      sketchup_ruby_functions.txt

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

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

                        Web dialog people please see this 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
                        • chrisglasierC Offline
                          chrisglasier
                          last edited by

                          First UI combo.png

                          Here is a first shot at marrying the looks and basic funtionality of a screen machine with Jim's web console.

                          Both are separate and both can be moved and resized independently.

                          The console's textareas are set proportionately but the menu space is fixed. Perhaps there could be another menu item for preferences and another to open the machine. Both are cosmetic.

                          I think the machine will have three columns to start with:

                          1 - Display options - abc, frequently used, switch, console display options (parent, words, snippets, comments, complaints - the menu in the console would need to change to suit). Maybe display options could be done with tabs in the console but they will take needed space.
                          2 - Classes
                          3 - Methods

                          The columns of course move so no need for scrollbars.

                          But all can be changed!

                          edit: added: http://collabedit.com/display?id=38563

                          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

                            We are at the stage now the basic functionality has been completed as indicated here,

                            Manual highlight in plain text record

                            to open up the work to see how to offer the widest set of options related to the API through interaction between machine and console.

                            I see the next main task is to set up console display transformation from the plain text record and a system for anyone to contribute content and/or devices. Here's a brief description of the options currently in the first slider:

                            Classes - in centre slider - click to navigate*, show methods and register selection. Click method to navigate and register selection

                            Methods - in centre slider - click to navigate*, show classes and register selection. Click class to navigate and register selection

                            *see machine animation attached

                            Plugins - sorting options in centre (including myPlugins); list in right; details of selected in console; plug in plugin(?)

                            Update - API additions like in 7.1 - input in console; lists updated in machine

                            No output - use machine as associative index only. Web console can always also be a standalone application

                            Insert - send concatenated selection to console.

                            Snippet - send snippet related to selection to console. Use console to add or edit snippets.

                            Comments - Review, add or edit comments related to the selection

                            Inspect record - Sends record to console; highlights class and method entries

                            The Ruby Web Console was made by Jim and the API Machine by me. Jim and I worked closely to achieve the interaction so far. We would be happy to work with others to further develop the combination.

                            Thanks

                            Chris


                            apimAnimated.gif

                            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

                              Looks great!

                              Cheers,
                              Alex

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

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

                                Progress pic:

                                deviceAPI with listsApi extension

                                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

                                  The nsetSketchupApi plugin is in a separate topic reserved for downloading, updates and technical questions and answers. Another topic "[WebDialog]Behind nsetSketchupAPI" starts a discussion on the potential of such an approach.

                                  But here I just want to thank Alex and Jim for prompting the development of an alternative type to Alex's cheat sheet; one that is based on animating words in a small machine-like interface rather than more familiar digital versions of paper pages.

                                  Most of all though I must thank Jim, ungenerously described as code adviser in the files, for teaching me about json, easing and all these things, but mostly for how to turn my cavalier code into something understandable and stable.

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

                                  Advertisement