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

    How to display Tree structure

    Scheduled Pinned Locked Moved Developers' Forum
    8 Posts 5 Posters 291 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.
    • M Offline
      Mcdull
      last edited by

      I have set attributes to all entities,then i want to generate a tree sturcture like this
      buliding
      |_____room1
      | |____wall
      | |____floor
      |room2
      |
      |
      .....

      and this tree can shrink as we can see as usual,such as explorer, is there any method to produce it in sketchup with ruby api?

      1 Reply Last reply Reply Quote 0
      • M Offline
        Mcdull
        last edited by

        the wall level and floor level should conect with room level, the previous stucture displayd not well in the page...

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

          @mcdull said:

          and this tree can shrink as we can see as usual,such as explorer, is there any method to produce it in sketchup with ruby api?

          Webdialog?

          @mcdull said:

          the wall level and floor level should conect with room level, the previous stucture displayd not well in the page...

          Use the ruby markup - that will display the text in fixed-width text.

          ` |_____room1

          ____wall
          ____floor
          _____room2
          _____.....`

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

          1 Reply Last reply Reply Quote 0
          • M Offline
            Mcdull
            last edited by

            i have used a tree.rb to display the structure like this
            %(#FF0000)[* ROOT
            |---+ CHILD1
            | +---> GRANDCHILD1
            +---> CHILD2]

            but i can not hadle it ,suas click and shrink
            thomthom said webdialog,can u teach me detail? i have never used webdialog,and i knew little about web...thank u~

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

              @mcdull said:

              i have never used webdialog,and i knew little about web...thank u~

              Then run for your life!

              Chris

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

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

                To use webdialogs you need knowledge of HTML, CSS and JS. It's not something I can teach in a single post. Best would be to look up some tutorials on the net.

                "tree.rb"?

                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

                  Here's a little machine that I like to give an airing every now and again. The idea is similar to yours but I have used animation to handle cumbersome tree structures. But take note of the others' advice, it ain't easy to achieve.


                  2009 Machine.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
                  • Al HartA Offline
                    Al Hart
                    last edited by

                    You can also use the SKP "Simple Extrension" API to put your tree structure into a C++ list box.

                    Here is a sample we use to display component categories and select components for placement.

                    (click on image to remove scroll bars)
                    tree.jpg

                    Al Hart

                    http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
                    IRender nXt from Render Plus

                    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