• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Rubyscript: Tutorial Lattice-izer.rb

Scheduled Pinned Locked Moved SketchUp Tutorials
sketchup
11 Posts 6 Posters 8.7k Views
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.
  • E Offline
    Edson
    last edited by 18 Nov 2007, 22:26

    EDIT by Coen: Original topic name: 'Wanted: tut on Lattice-izer'. Original forum topic posted to: Ruby forum.

    tig,

    the usage text may seem self-explanatory to you, but i do not get it. a couple of illustrations would help a lot.

    regards.

    edson

    edson mahfuz, architect| porto alegre • brasil
    http://www.mahfuz.arq.br

    1 Reply Last reply Reply Quote 0
    • T Offline
      TIG Moderator
      last edited by 18 Nov 2007, 22:27

      @unknownuser said:

      tig,

      the usage text may seem self-explanatory to you, but i do not get it. a couple of illustrations would help a lot.

      regards.

      edson

      I don't have time for a full tut... Try this...

      Draw a flat 2d face and subdivide it with lines/arcs that 'face'. These line represent the centre lines if your 'lattice'. A lattice can be a latticework screen or with infill panes it's a window.

      Group the lot, select the group and pick Lattice-izer off the menu or right-click context menu.

      Fill in the dialog. You can specify size/depth of lattice frame (about the centrelines). Material for the frame and panes. The available materials in the model are listed and <default> and <no-pane> = open space between lattice framework. You can also keep the centrelines if needed (but why?).

      OK makes the lattice/window...

      If you want a window of a fixed size and you know that the frame will be 100mm make the outer rim/face and offset it by 50mm to get the centres of the edges: erase the outer parts, draw you subdivisions and group: then when the window lattice is made the size is as required...

      TIG

      1 Reply Last reply Reply Quote 0
      • E Offline
        Edson
        last edited by 18 Nov 2007, 22:29

        tig,

        thanks for taking the time to help me. you "tut" was good enough. it gave me the basics and i managed to build quite a few lattices from it.

        best wishes.

        edson
        lattice.jpg

        edson mahfuz, architect| porto alegre • brasil
        http://www.mahfuz.arq.br

        1 Reply Last reply Reply Quote 0
        • A Offline
          AcesHigh
          last edited by 18 Nov 2007, 22:30

          I still dont understand the purpose of the Latticizer.

          To create that same thing Edson did, wouldnt it be easier to draw the rectangles and push-pull them?

          poster-AcesHigh

          1 Reply Last reply Reply Quote 0
          • B Offline
            boofredlay
            last edited by 18 Nov 2007, 22:31

            Please post a link to this script.

            http://www.coroflot.com/boofredlay

            1 Reply Last reply Reply Quote 0
            • D Offline
              david_h
              last edited by 20 Apr 2010, 15:46

              I can't get Latticizer to work. I am using a group etc etc, The menu comes up but it doesnt do anything. What other Rubies does Latticizer require to function?

              D

              If I make it look easy...It is probably easy

              1 Reply Last reply Reply Quote 0
              • N Offline
                numbthumb
                last edited by 20 Apr 2010, 15:53

                @unknownuser said:

                Please post a link to this script.

                You can find it here ( and a "tutorial" also )
                http://forums.sketchucation.com/viewtopic.php?f=15&t=10720&hilit=latticizer

                Comfortably numb...

                1 Reply Last reply Reply Quote 0
                • D Offline
                  david_h
                  last edited by 20 Apr 2010, 16:24

                  Yeah. . .I 've been here. I don't know if there are some limits to the group it can do or what. Anyway. .. here's the skp.

                  My question remains. .. what "Sub Rubies" like Sketchup.rb, or others need to be working with Latticizer?

                  Like I said. . I get a menu. I just don't get a lattice!


                  WINDOW GRID.skp

                  If I make it look easy...It is probably easy

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    david_h
                    last edited by 20 Apr 2010, 16:56

                    on further investigation, it seems its the geometry that I have drawn there that doesn't make it perform. Latticizer works great on just a simple test. Is it too many lines? The circles in the squares? Any thoughts?

                    If I make it look easy...It is probably easy

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      TIG Moderator
                      last edited by 20 Apr 2010, 17:43

                      The geometry is complex with 'island' circles individual lines off and so on...
                      Grouping it into three bits without the circles works - you can add the circles as separate groups later...
                      The central section also failed to work BUT edit>cutting the lines/faces and edit>paste_in_place sorted it - the geometry seemed 'confused' - sometimes edges are 'reversed in the face' and cause unexpected glitches - the Ruby Console reports errors...
                      So, to recap - keep it a bit simpler - no 'island' faces and group parts if needed...
                      It was also on the small side scale up x10 and scale down afterwards to avoid very small faces...
                      Capture.PNG

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        david_h
                        last edited by 20 Apr 2010, 18:22

                        That's pretty much how I Figgered it. Thanks for looking at it TIG.

                        D

                        If I make it look easy...It is probably easy

                        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