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

    Question: keeping origin when scaling?

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    8 Posts 2 Posters 1.5k Views 2 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.
    • T Offline
      toddbg
      last edited by

      Hi!

      Thanks for all the advice in my other posts.
      I think I am very close to having this fence taken care of, I just need to figure one issue.

      When I scale the Fence component, each of the sub components seems to move differently rather than scale correctly in relation to one another.

      I only want the fence to be able to scale in the LenX direction.

      I've attached the file so you guys can take a look.

      Can someone help me out/point me in the right direction?

      Thanks!


      Fence_dynamic.skp

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

        Update:
        I'm much closer now.

        I think I have the origin issue taken care of, and most everything scales as expected.

        However the sub-component Lattice now scales a bit bigger than it should.

        Try this new model and let me know what you think.

        Thanks again!


        Fence_dynamic.skp

        1 Reply Last reply Reply Quote 0
        • J Offline
          Jim
          last edited by

          I don't know if this is the best way, but here's one way I found worked.

          I added a reference Group in the DC. It can be hidden when ready. The purpose of the reference Group is to control the scaling. For that to work, all other components must be kept within the bounds of the reference (in this case, only the X axis matters.)

          The Reference also lets us snap the scaling to convenient intervals.

          2014-06_62.png

          make sure the Post stays within the Reference!LenX

          2014-06_63.png

          Then the LenX of the bottomFrame can be tied to the position of the Post.

          LenX: =fencePost!X - Fence!postWidth/2

          The topFrame LenX is set equal to the bottomFrame LenX

          Finally, the lattice LenX can be set to the top or bottom Frame LenX.

          I also reset all the scaling attributes of the sub-components. Only the top-level component can be scaled anyway. Although I'm not positive, but I think that cleared up a weird behavior.


          Fence_dynamic(2).skp

          Hi

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

            @jim said:

            Then the LenX of the bottomFrame can be tied to the position of the Post.

            LenX: =fencePost!X - Fence!postWidth/2

            The topFrame LenX is set equal to the bottomFrame LenX

            Hey Jim - That works awesomely!

            One more question for you.

            I realized that I made one mistake in the file.
            The lattice needs to be moved over 0.75" so that it touches the face of the Fence post.
            Then the topFrame and bottomFrame would need to decrease in width by 0.75".

            I'm reading through the component attributes but it is a little confusing on how to make this simple change.

            Can you fill me in?

            Thanks!

            1 Reply Last reply Reply Quote 0
            • J Offline
              Jim
              last edited by

              All you would need to do is move the fencepost X position a further -3/4". The dimensions of the other components are based on the position of the fencepost and so will adjust accordingly.

              Hi

              1 Reply Last reply Reply Quote 0
              • J Offline
                Jim
                last edited by

                I found some situations where the Fence broke, so here's what I hope is a more stable version.

                Just a note - this DC could be simplified by better positioning of the axis. The current axes are making things slightly more complicated than necessary.


                Fence_dynamic(3).skp

                Hi

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

                  @jim said:

                  Just a note - this DC could be simplified by better positioning of the axis. The current axes are making things slightly more complicated than necessary.

                  Thanks Jim -
                  In what way could the axes be better positioned.
                  I'm mor than happy to clean this up so that it becomes a useful model.

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    Jim
                    last edited by

                    @toddbg said:

                    Thanks Jim -
                    In what way could the axes be better positioned.
                    I'm mor than happy to clean this up so that it becomes a useful model.

                    Actually, it looks good. Not sure what I meant at the time... and thanks to you I learned some new tricks playing with this DC.

                    Hi

                    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