sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    API Docs Comments

    Scheduled Pinned Locked Moved Developers' Forum
    40 Posts 8 Posters 5.0k Views 8 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.
    • Dan RathbunD Offline
      Dan Rathbun
      last edited by

      So...

      @jim said:

      Is there a name for the classes that don't really exist other than to define an interface?

      Would they then be called protoless classes ??

      I'm not here much anymore.

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

        @dan rathbun said:

        So...

        @jim said:

        Is there a name for the classes that don't really exist other than to define an interface?

        Would they then be called protoless classes ??

        Looking through Dictionary.com (Thesaurus tab) for 'protoless' synonyms:

        • Concocted
        • Contrived
        • Ad lib

        Or perhaps:

        • demiclass

        I'm not here much anymore.

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

          This is an html page of the SketchUp API classes. Save it as a .html file, and then bookmark it in Firefox. Edit the bookmark to open in the Sidebar. Instant API sidebar.

          Hi

          1 Reply Last reply Reply Quote 0
          • Chris FullmerC Offline
            Chris Fullmer
            last edited by

            Jim, I think you forgot the link or something

            Lately you've been tan, suspicious for the winter.
            All my Plugins I've written

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

              Hmmm, first time that's ever happened...

              The forum doesn't like HTML, so I uploaded it encoded.

              • Open it in Notepad++,
              • Select all
              • Plugins > MIME Tools > Base64 decode
              • Save as api_sidebar.html

              (same way to decode those non-rbs encrypted scripts, btw.)


              api_sidebar.txt

              Hi

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

                ISSUE: the improper use of "Parent"

                Speaking specifically on: ConstructionPoint

                Familial terms: ie: parent and child are reserved for the instance object heirarchy, such the HTML Document Object Model, and in our case the Sketchup SKP document heirarchy.

                Example: the model object has children that can be Component, which can have children Groups, which may have children Edges and Faces, and so on.
                A Face instance inside a Group has THAT Group instance as it's Parent, but Group is NOT the superclass of Face.

                You will notice that in the SU API all .parent methods refer to the specific instance object's relationship within the document heirarchy.

                The correct terms are superclass, subclass, and class; all always LOWERCASE because Class (UPPERCASE,) is a specific class Identifier.

                I'm not here much anymore.

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

                  Thanks Dan,

                  The ConstructionPoint page looks good.

                  I am all for using the right terminology - i just don't know what that is all the time.

                  How about ancestors and descendants?

                  Hi

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

                    Good point Dan. I just just blindly copying from the Google APi page.

                    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

                      Btw, is the data on these pages possible to extract in some manner?
                      I have been wanting to make a script that analyses the methods used in a given set of .rb files and check compatibility with SU6, 7.0 or 7.1

                      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

                        hmm.. yea ... the SU version when the methods are introduced from this documentation. Do we add it to the header? Under the list of ancestors?

                        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

                          @thomthom said:

                          Btw, is the data on these pages possible to extract in some manner?
                          I have been wanting to make a script that analyses the methods used in a given set of .rb files and check compatibility with SU6, 7.0 or 7.1

                          The wiki is a mercurial repository. It can be cloned:

                          $ hg clone https://wiki.skx.googlecode.com/hg/ skx-wiki

                          So the pages can be sync'd locally and processed using scripts, and pushed back to the online repository. I am doing this to generate sidebar pages to contain a list of methods plus inherited methods.

                          As an example of a utility file, there is a page named MasterList.wiki I use to generate the Class Index.

                          Some kind of automated build is going to be needed sooner or later. This might mean that there needs to be a lot of extra source files in the repository (OK because only .wiki files show up as pages online.) Each page may have a file for a header section, a method section, and a footer section. Or maybe even each method is stored in its own file. Then the build script puts everything together into a .wiki page.

                          The build scripts could be a sub-folder in the repository, so they could be collaborated on also.

                          Then a dependency-based build programs such as Rake would be used to build and update only pages which have been edited.

                          I would like to somehow keep it all editable online, too. But then it gets complicated because we don't edit the actual wiki pages, but wiki pages that would be used as the source for the real pages.

                          Hi

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

                            As if documenting the entire API wasn't crazy enough, here's crazy idea #2 - create a mock-up Ruby library of the entire SketchUp API (called Mock-Up, naturally.)

                            Document the source code classes, methods, constants, etc as if it were actual code (because it is.)

                            Generate docs from source code.

                            With the potential added benefit of being able to test SketchUp plug-ins outside of Sketchup.

                            Hi

                            1 Reply Last reply Reply Quote 0
                            • 1
                            • 2
                            • 2 / 2
                            • First post
                              Last post
                            Buy SketchPlus
                            Buy SUbD
                            Buy WrapR
                            Buy eBook
                            Buy Modelur
                            Buy Vertex Tools
                            Buy SketchCuisine
                            Buy FormFonts

                            Advertisement