• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

Dynamic component

Scheduled Pinned Locked Moved Dynamic Components
sketchup
8 Posts 2 Posters 2.5k 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.
  • G Offline
    gazbart
    last edited by 13 Sept 2015, 14:45

    Can somebody please help me, wanting to draw a wine rack as a dynamic component. I have worked out how to keep the sizes in scaling but I want to be able to resize so it looks as in the image


    wine rack


    wine rack image

    1 Reply Last reply Reply Quote 0
    • P Offline
      pcmoor
      last edited by 14 Sept 2015, 08:46

      Hi

      To get the distance required to be divided we use the current("") formula. However this only works for inches so need to multiply by 2.54 for metric. So use current("LenX")*2.54 for width of the wine rack and current("LenZ")*2.54 for the height.

      To get the number of bays one would divide the total distance minus the first post width by the centers (space plus width). It’s recommended that one converts this to an integer, however Copies will accept the formula as a float.

      Create a post or stile within the component giving the inner group or component a meaningful name rather than just accepting the default, add Copies to this stile, position and lengths. Copies will equal the result of the previous division. Then to space the copies we use the special variable called copy, this is an integer that refers to the particular copy made. So for X distance, equals copyspacing,
      copy=0, X=0
      spacing = 0
      copy=1, X=1spacing = spacing
      copy=2, X=2
      spacing = 2 of spacing
      etc.
      Do similar for the rails. It is possible to make a multi dimension array of these. However as centers alternate either side of the posts and greater processing power / file size is directly proportional to copies, it is probably better to create groups of rails and copy these across.

      The attached file should work, though I haven't fully tested it. The front and back stile are copied separately so that adjustment to depth of the cabinet can be made. The rails are group as determined before. I made a fixed position option as well as a scale option to the cabinet height and width


      wine rack.skp

      1 Reply Last reply Reply Quote 0
      • G Offline
        gazbart
        last edited by 14 Sept 2015, 13:53

        wine rack 1.skpThank you very much pcmoor that is exactly what I needed to do, but there is a problem which is more on my part in the original drawing. I've added it to the model, when scaling up the dimensions don't work as they should. Maybe I should have just used one bay to start with?

        1 Reply Last reply Reply Quote 0
        • P Offline
          pcmoor
          last edited by 15 Sept 2015, 11:06

          I need some confirmation on the design requirements. From the layout you show the first cube as 135 wide x 138 high. The next row up is 215, a difference of 77, then 97 there after.then 96, 95, 95, 98, 97, 95, 97
          Assume 97 ?
          Is 77 correct?

          The general difference on the width is 114, 114, 113, 114, 114, 114, 114, 115, 115. I assume that these should be 114?

          1 Reply Last reply Reply Quote 0
          • G Offline
            gazbart
            last edited by 15 Sept 2015, 12:55

            example.jpgThank you for your persistence in this matter, the measurements are what have been confusing me also. the width and height sizes are a maximum. So a rack with a maximum width of 818mm and a maximum height of 503mm has 7 bays of equal spacing wide and 5 bays of equal spacing high, so really each time a bay is resized the others are spaced equally between the measurements hope you can understand it. I have included a example picture

            1 Reply Last reply Reply Quote 0
            • P Offline
              pcmoor
              last edited by 16 Sept 2015, 11:40

              The solution attached is much more simpler than the first proposal

              works for examples given, for larger models decrease the approx spaces to check alternatives

              cheers


              wine rack.skp

              1 Reply Last reply Reply Quote 0
              • G Offline
                gazbart
                last edited by 16 Sept 2015, 13:06

                Thanks again. but from the 5th measurement in either direction i.e 503 high and 590 wide the extra bay is not added in. So a rack that is 598h x 704w still only has 5x5 instead of 6x6 and the same with the rest of the larger sizes always a bay less

                1 Reply Last reply Reply Quote 0
                • G Offline
                  gazbart
                  last edited by 16 Sept 2015, 20:22

                  Ignore my last post ive worked it out, by taking 2cm off the v a_space_H and the a_space_V I can now get the correct number of bays required
                  I am very deeply indebted for your assistance
                  Thanks again

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

                  Advertisement