sketchucation logo sketchucation
    • Login
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Component Stretching Problem

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    11 Posts 3 Posters 1.9k Views 3 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.
    • J Offline
      Jim
      last edited by

      Hi there

      I don't see where you set the LenX of the Drawer component? The width (LenX in this case) needs to be set as a function of the width of the cabinet.

      Something like this:

      
      LenX; =parent!LenX - railA!LenX - RailB!LenX 
      
      

      Hi

      1 Reply Last reply Reply Quote 0
      • L Offline
        lucifer1101
        last edited by

        sorry i forgot to specify that the drawer is a sub component of the cabinet and will be affected by any changes made to it...

        EDIT1: Sorry i also missed your code, what does the rail a and b refer to?

        Some of my 3d

        1 Reply Last reply Reply Quote 0
        • L Offline
          lucifer1101
          last edited by

          just incase my problem isnt very clear i will upload the skp file for all to see, maybe it would get me some help thanks!.


          Base Cabinets.skp

          Some of my 3d

          1 Reply Last reply Reply Quote 0
          • L Offline
            lucifer1101
            last edited by

            does nobody know how to help me!

            i really would like to fix this so please let me know if you can help....

            Some of my 3d

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

              EDIT: ok, I see what your describing as the problem now. I'm looking into it...

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

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

                Your component rail6 needs to have a property thad defines its LenX.

                You know the way that you have defined the sides LenX as =1cm so that the sides don't get wider when it scales...well you need to apply that same idea to EVERY component in the model, or else they will stretch like you are seeing now. Pretty much just like Jim was saying.

                Is that enough to get you on your way?

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

                1 Reply Last reply Reply Quote 0
                • L Offline
                  lucifer1101
                  last edited by

                  yes but i do want those other ones to stretch, im making it so that the boards all have a 10mm thickness, the bottom of the draw isnt stretching all the way and the left side of the draw is being positioned off of where its meant to be...

                  there are no problems when its 12 inches wide but when i set it to 15,18,21 and 24 the stretching and placement gets more distorted as it gets higher...

                  as i see it setting the stretching like you say i should the i couldnt change the 12 inches to say 24 inches and it would be pointless....

                  Some of my 3d

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

                    Don't change EVERY component, just the ones you don't want to stretch. That means you have to think about each inner component and decide if it needs to stretch or not. For example, Rail6 shouldn't stretch I think. But there are others that should stretch.

                    Chris

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

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

                      Plus, you have a lot more work to do. You need to add position and length values for most of the components. You need to specify how much they stretch, and thier location based on how much stretching has been done.

                      Chris

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

                      1 Reply Last reply Reply Quote 0
                      • L Offline
                        lucifer1101
                        last edited by

                        Ok thankyou for all of your help..

                        what i just did to fix it was i repositioned the axis of a few components to get the side of the draw right and fix a few things so they dont cause anymore problems and for the bottom i set it to the length x of the back board minus 2..

                        ill will be fixing up everything else soon enough tho so thanks heaps...

                        Some of my 3d

                        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