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

    Help With Creating A Scaling Dynamic Component

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    8 Posts 5 Posters 5.1k 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.
    • S Offline
      Se7ven
      last edited by

      I am trying to create a concrete block wall that is scalable as a dynamic component and unsure how best to go about it. I want this component to be able to scale along the 3 axes and generate new wall sections as it does so. I tried playing around with the attributes section of dynamic components but have been unsuccessful for now. I have seen other dynamic components being created by others and tried to follow their examples but it seems that the uniqueness of each component takes one so far. I am uploading a copy of the file in its raw format (i.e., no changes have been made to the component's attributes) and hoping that a helping hand is available.


      ConcBlkWall.skp

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        I think that you can do this in DC code - although it's not my expertise.
        Look at examples of DC picket-fences etc, when scaled in length they add extra posts etc.
        In your case you start with a DC containing a full block and half-end block.
        As the length increases extra bloc/half blocks are repeated as needed ?
        It can only increment in whole pieces ?

        In the height you add an offset row [course] to suit the height...

        It's not easy BUT there are examples...
        https://3dwarehouse.sketchup.com/search.html?q=dc+fence%26amp;backendClass=entity
        https://3dwarehouse.sketchup.com/model.html?id=8a97a7ff65d55ffc8095ba2080357053

        The second example does what you want - albeit with out the finer detailing - which is geometry intensive with little benefit ?

        TIG

        1 Reply Last reply Reply Quote 0
        • TrixtaT Offline
          Trixta
          last edited by

          I found these to be very helpful: https://www.youtube.com/playlist?list=PLB2E3D606F6763D97

          Win7 & SU14 Pro

          1 Reply Last reply Reply Quote 0
          • T Offline
            twdant
            last edited by

            Will this wall be scaled in only whole- and half-block increments, or do you want the blocks to be cut at different lengths besides half-blocks?

            1 Reply Last reply Reply Quote 0
            • T Offline
              twdant
              last edited by

              Here's a version with component options for width, length, and height. All options measurements are in centimeters, and the dimensions must be rounded to whole block intervals. When deciding the length, use whole block intervals plus 15 cm (for the width of the front wall).

              One interesting thing I stumbled upon while working on this component: The length wall is a copy of the width wall, and the formula to determine length is the same as width, but minus the thickness of the front wall. So, for the LenX attribute of the length wall, I subtracted 15 from the user input option. For example, If the end length should be 93 cm, including the 15 cm thickness of the front wall, my length formula for the side wall is 93-15. I kept getting an extra copy of the whole block in all instances inside the side wall. The only fix I found was to change the format of the user inputs from cm to decimal numbers. I've never run into this problem before, but I usually model in inches. I wonder if Sketchup is written to use inches by default, and the conversion is a tad off.


              ConcBlkWall.skp

              1 Reply Last reply Reply Quote 0
              • Q Offline
                quantj
                last edited by

                Try this, I rushed it, but you use the scale tool and it'll add as many it needs to fit the scale. Only X and Y so far. but you can see how it's done, and use the same functions/formulas for Z axes, but do it neater than my sloppy naming


                ConcBlkWall_T.skp

                1 Reply Last reply Reply Quote 0
                • TrixtaT Offline
                  Trixta
                  last edited by

                  Ok. After 48 hours of downloading 25 x DC models, scouring every dark recess of the internet, I'm still not getting it right. Maybe it's just time to accept my intellect level and ask.

                  I have created this wall Unit from scratch, added all the DC elements to make it scalable on the horizontal, including the second door that appears after extending it more than 600mm.

                  Now I need to extend it on the z axis but.....I also needs to add shelves of equal spacing once the spacing between the shelves exceed 300mm

                  Any help would be greatly appreciated.


                  Wall Unit.skp

                  Win7 & SU14 Pro

                  1 Reply Last reply Reply Quote 0
                  • TrixtaT Offline
                    Trixta
                    last edited by

                    Never mind. I figure it out for myself. πŸ‘Š

                    Eric Schimelpfenig eat your heat out. πŸ˜‰

                    P.S The doors extend down past the cabinet to cover the 16mm light shield. I's not a mistake. πŸ˜„


                    Wall Unit.skp

                    Win7 & SU14 Pro

                    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