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

Dynamic window frame -- how to?

Scheduled Pinned Locked Moved SketchUp Discussions
sketchup
9 Posts 6 Posters 379 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.
  • F Offline
    falk
    last edited by 22 Jul 2014, 05:01

    Hi all; maybe a dumb question about dynamic components, but how would I implement something like this window frame? I want to enter width and height parameters and have the frame resize itself accordingly.

    I figured out how to do it by splitting it into separate groups (rails and stiles) and setting all of their positions and sizes as functions of the width and height, but can this be done without breaking the frame into separate parts?

    Super bonus question: it would be really awesome if I could somehow scale the window by dragging its inner corners to match the hole I've cut in the wall, but I suspect the scale tool can't be made to work that way.
    frame.png

    1 Reply Last reply Reply Quote 0
    • F Offline
      falk
      last edited by 22 Jul 2014, 05:26

      (p.s. I'm thinking of writing a Ruby plugin instead.)

      1 Reply Last reply Reply Quote 0
      • C Offline
        cotty
        last edited by 22 Jul 2014, 05:44

        @falk said:

        but can this be done without breaking the frame into separate parts?

        I think it can't.

        @falk said:

        Super bonus question: it would be really awesome if I could somehow scale the window by dragging its inner corners to match the hole I've cut in the wall, but I suspect the scale tool can't be made to work that way.

        The scaling grips will always be on the outer bounding box...

        my SketchUp gallery

        1 Reply Last reply Reply Quote 0
        • F Offline
          falk
          last edited by 22 Jul 2014, 07:04

          @cotty said:

          @falk said:

          but can this be done without breaking the frame into separate parts?

          I think it can't.

          Yeah, that's what I figured. I already did a door that way, and since that's how windows are actually constructed maybe I'll just go ahead. Or maybe I'll take a crack at making a plugin.

          Thanks anyway.

          1 Reply Last reply Reply Quote 0
          • D Offline
            dedmin
            last edited by 22 Jul 2014, 08:05

            It is easier to use Fredo's Box Stretching.

            1 Reply Last reply Reply Quote 0
            • A Offline
              aarondietzen
              last edited by 22 Jul 2014, 15:32

              I tried for quite a while to make this happen without breaking the frame into pieces, and could not come up with anything. In our components, each frame is 8 pieces (Left, right, top, bottom, and a piece at each corner) with the lines between hidden. If you DO come up with a different way to make them (besides a new plugin) I would love to hear it!

              "Imagination is more important than knowledge..."
              - Albert Einstein

              1 Reply Last reply Reply Quote 0
              • J Offline
                JQL
                last edited by 22 Jul 2014, 22:41

                @aarondietzen said:

                ...with the lines between hidden.
                You shouldnt hide only the lines, try hiding the face as well. You'll still get a solid but you'll get less rendering artifacts...

                www.casca.pt
                Visit us on facebook!

                1 Reply Last reply Reply Quote 0
                • F Offline
                  falk
                  last edited by 24 Jul 2014, 05:32

                  Well, I'm trying to write a plugin now. Haven't figured out how to create a face with a hole in it.

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    pcmoor
                    last edited by 26 Jul 2014, 11:00

                    Here is one solution using DC

                    A cubic with two DC holes (cut2, includes the rim)

                    As for scaling, one requires the insert point to be on the outside otherwise to hard to calculate, therefore place the surround with toggle to inner (smaller) size, place and scale to suit opening then use interact finger to toggle to outer.

                    Cheers
                    Philip

                    PS
                    another method using four cubic components, would be to join them without worrying about hidden lines/ faces. But to incorporate a outer shell/ explosion at some point when happy with the object created. Then one can use "cutlist" or other for material takeoff, as shown in some of my other posts.
                    one can swap the childless component with its original if one need to amend it at some later point.


                    Frame Surround.skp

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

                    Advertisement