• Login
sketchucation logo sketchucation
  • Login
๐Ÿค‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Snapping point of components

Scheduled Pinned Locked Moved SketchUp Discussions
sketchup
14 Posts 3 Posters 801 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.
  • P Offline
    peweuk
    last edited by 29 Dec 2008, 12:04

    I have a need to set a snapping point for a component which is 'outside' of the component.

    The image below shows the panel component (the dark panel) and how it needs to be placed in relation to the white block behind it.
    panel1.jpg

    Here is a close up of showing the position of the panel component more closely - inset from the block corner on the X and Z axis.

    panel2.jpg

    I managed to achieve this by creating the panel component with the axis offset outside of the panel on the X and Z axis, and when it is placed from the component library the snapping position is correct and it is placed where it needs to be (image 2 above).

    However the problem I am having is that as soon as I try to move the panel component, the 'move tool' is snapping to the corner of the panel, and not to a point set away from it (as was the case when the component was first placed from the library). This means that if I move the panel for any reason (say to another block somewhere else in the model) it's snapping point is no longer correct and the panel corner snaps to the block corner and to position it correctly requires further adjustment.

    I hope this explanation makes sense and wonder if anyone can suggest the best way to achieve what I need?

    1 Reply Last reply Reply Quote 0
    • W Offline
      Wo3Dan
      last edited by 29 Dec 2008, 15:50

      @peweuk said:

      I have a need to set a snapping point for a component which is 'outside' of the component.....
      ...it's snapping point is no longer correct and the panel corner snaps to the block corner and to position it correctly requires further adjustment.

      As you mentioned, first time you 'bring in' a component its grip is its local origin.
      Once you moved a component in the model its latest handled point to relocate it will be used as the new grip for a next same component 'brougth in' straight from the components browser.

      To overcome this new grip location just double click and close again an existing same component in the model. This will reset the grip (snapping point) to the local origin.

      Wo3Dan

      1 Reply Last reply Reply Quote 0
      • P Offline
        peweuk
        last edited by 29 Dec 2008, 18:33

        Thanks Wo3Dan, but if I understand your guidance correctly - it does not seem to be the case.

        If I place the component in the scene it uses the correct 'grip'. I then move it by selecting the opposite (top right) corner. When I bring the next component in (same one) from the component browser, it still has the grip in the correct position, bottom left.

        But my problem is with moving it within the scene after it is brought in.

        For example, I have two blocks in the scene, one at 90 degrees to the other.
        I bring in the panel component and 'snap' it to the front of the first block (which is oriented to the red axis). No problem.
        I bring in a second panel, but this has to be 'snapped' to the front of the second block which is now in the green axis direction. So I have to drop the panel on the floor, then rotate it 90 degrees and move it on to the front of the second block. But now the 'grab' point is no longer at the '0.0.0' of the panel component, it is now at the corner of panel itself.

        1 Reply Last reply Reply Quote 0
        • W Offline
          Wo3Dan
          last edited by 29 Dec 2008, 19:57

          @peweuk said:

          If I place the component in the scene it uses the correct 'grip'. I then move it by selecting the opposite (top right) corner. When I bring the next component in (same one) from the component browser, it still has the grip in the correct position, bottom left.

          %(#0000FF)[But my problem is with moving it within the scene after it is brought in.

          For example, I have two blocks in the scene, one at 90 degrees to the other.
          I bring in the panel component and 'snap' it to the front of the first block (which is oriented to the red axis). No problem.
          I bring in a second panel, but this has to be 'snapped' to the front of the second block which is now in the green axis direction. So I have to drop the panel on the floor, then rotate it 90 degrees and move it on to the front of the second block. But now the 'grab' point is no longer at the '0.0.0' of the panel component, it is now at the corner of panel itself.]

          %(#FF0000)[What I stated before is correct. However, if you decide to move the component (after just having placed it) by grabbing it somewhere on an edge or on a face you will not relocate the grip (snap point).
          If it was an endpoint or midpoint that you moved it by then it will most certainly relocate the snap point for the next component from the browser.
          Please try again.]

          %(#0000FF)[But I see your problem has a slightly different angle.
          There are at least two ways to achieve what you are after.

          1. place some geometry at the exact location of the local components origin. This can be anything as long as it has an endpoint right there. (a lines end- or midpoint, a constructionpoint, whatever) and assign this 'dummy' geometry to a layer that you can hide (uncheck this layer) after your finished 'place'(+move and/or rotate) operation.
          2. use the option 'Glue to: Any' when you create your component.
            This allows you to place the component flat (glued) on any face with its local origin on a corner. There is no need for the rotate operation that you mentioned.
            But you need to locate the (free spaced) local origin at the right location within the component. Corrections are possible though. As long as you use the 'Glue to:..' option.]

          Wo3Dan

          1 Reply Last reply Reply Quote 0
          • P Offline
            peweuk
            last edited by 29 Dec 2008, 23:12

            @unknownuser said:

            If it was an endpoint or midpoint that you moved it by then it will most certainly relocate the snap point for the next component from the browser.

            Sorry, I maybe was not very clear in my response - but there is no problem with the 'snap point' of new components brought in from the browser, even after moving any already placed - it was only trying to move them after they were brought in where the grip on the component being moved was lost.

            I take your point about not having to rotate them when bringing them in - which is what I wanted, but having tried with various settings in the component 'glue' options I still could not get them to work - but I will try again following your suggestions and see what I can do.

            Thanks again for your responses and patience.

            1 Reply Last reply Reply Quote 0
            • W Offline
              Wo3Dan
              last edited by 30 Dec 2008, 00:57

              peweuk,

              hopefully attached file will explain both methods.


              CompInsertionPoint.skp

              1 Reply Last reply Reply Quote 0
              • P Offline
                peweuk
                last edited by 30 Dec 2008, 09:57

                Thanks for that Wo3dan.
                I followed your example making a test panel and it seems to work (don't understand what I was missing before!!!)

                I now have to re-address my existing components to set the gluing plane and axis.

                These are quite complex dynamic components so I was wondering if there is any way to edit the component to change the gluing plane/axis settings without 'exploding' the component and re-making it - as I'll have to re-input all the attributes for them if I have to re-make them.

                (I did a search and seem to be able to find only references to setting these attributes when a component is first made.)

                1 Reply Last reply Reply Quote 0
                • G Offline
                  Gaieus
                  last edited by 30 Dec 2008, 11:29

                  Hi Peweuk,

                  In the component browser, you can right click a component and go to > Properties where you can change gluing/cutting attributes.

                  Then you can right click on a component in the model and choose "Change axes" to do what it says. The red and green component axes will define the gluing plane while the blue axis will be "X-ed out"

                  Gai...

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    peweuk
                    last edited by 30 Dec 2008, 12:37

                    Thanks Gaieus.

                    I already looked in there - but

                    The 'properties' dialog only shows the file location, instances etc, but nothing that can be altered.
                    If I select the component and select the 'edit' tab, it shows the 'Glue to' option, but it is greyed out and cannot be changed โ—

                    That's what was puzzling me - hence my question. I thought that perhaps the option to change the 'Glue to' state would only be available if a 'Glue to' state had been entered when the component was created - but it is greyed out on one that is set to 'Glue to : any' as well.

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      Gaieus
                      last edited by 30 Dec 2008, 12:42

                      Well, if (in the component browser) you select the edit tab (SU 7), everything is grayed out. But if (still in the component browser) you right click on the component and select the Properties item from the context menu, it will still put you to the same edit tab but now the options aren't grayed out but you can change them (Windows version).

                      Quite annoying and I'd even call it as a bug but at least there's a workaround.


                      Edit: now I tried a couple of times again and nothing was grayed out. :was nothing to edit.shock:


                      Edit2: My bad... In the first case I didn't even selected the component in the comp browser to edit. ๐Ÿ˜ณ Sure it was grayed out - there was nothing to edit ๐Ÿ˜’

                      Gai...

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        peweuk
                        last edited by 30 Dec 2008, 13:51

                        I found the problem โ˜€
                        I am running Vista, and the only way to see the 'Edit' tab when using 'properties' is to open Su with 'run as administrator' ๐Ÿ‘Š

                        Who'd have thought it โ“

                        1 Reply Last reply Reply Quote 0
                        • P Offline
                          peweuk
                          last edited by 30 Dec 2008, 14:51

                          Oh no ๐Ÿ˜ฎ

                          I thought I had found the answer, but after editing a component and saving it the Edit box is greyed out again. ๐Ÿ˜ 

                          1 Reply Last reply Reply Quote 0
                          • P Offline
                            peweuk
                            last edited by 31 Dec 2008, 00:44

                            Sorted it now. I found the only time the 'edit' window allows changes is if I open the file in which I created the component.

                            However a new issue has arisen which I need to look into. I had an 'animate' attribute set in the original component, but having now changed the gluing axis it is doing weird things.

                            1 Reply Last reply Reply Quote 0
                            • G Offline
                              Gaieus
                              last edited by 31 Dec 2008, 09:35

                              Well, note that may of the attributes of DC's are set to the axes so when it comes to working with DC's, it is more important to watch the axes than ever.

                              Gai...

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

                              Advertisement