sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    Copy axes

    Scheduled Pinned Locked Moved Newbie Forum
    sketchup
    14 Posts 8 Posters 1.7k Views 8 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.
    • genma saotomeG Offline
      genma saotome
      last edited by

      The problem I see is when you do a -1 scale function on a component or group -- to mirror it -- its axis does not stay as oriented as it was... it mirrors as well. That causes me big problems later on after I export the model out of SU.

      What I need is a simple way to get the axis of the mirrored component to revert back to the way it was -- normally identical to the axis of the model.

      I've looked at the axe_tool and while it will be nice to use in other situations it does not change the orientation, only it's location.

      So what I am hoping to find is a function (or plug-in) that will copy the axis orientation of the model and apply it to a component using the fewest number of mouse clicks... really tight... something like click on component whose axis needs to be reset, invoke function, done... nothing else required.

      @wo3Dan: Is your idea more than just seeing an example of what the axis should look like?

      1 Reply Last reply Reply Quote 0
      • Dave RD Offline
        Dave R
        last edited by

        There are extensions that can set the axes to align to the model axes. Search through the Sketchucation Plugin Store using the word Axis as a search term.

        But, if you change the axes on the mirrored instance of the component, the original instance will get its axes changed and you'll be right where you started. So you'll first have to make each instance unique thus breaking the relationship with the other instances. Is that alright?

        Etaoin Shrdlu

        %

        (THERE'S NO PLACE LIKE)

        G28 X0.0 Y0.0 Z0.0

        M30

        %

        1 Reply Last reply Reply Quote 0
        • genma saotomeG Offline
          genma saotome
          last edited by

          @dave r said:

          There are extensions that can set the axes to align to the model axes. Search through the Sketchucation Plugin Store using the word Axis as a search term.

          I'll look again.

          @dave r said:

          But, if you change the axes on the mirrored instance of the component, the original instance will get its axes changed and you'll be right where you started. So you'll first have to make each instance unique thus breaking the relationship with the other instances. Is that alright?

          Yes, I'm aware of that and so I do make the mirrored component unique and from that give it it's final name. Tedious but necessary. A quick fix to the axis will save me from having to explode each component and rebuilding it, something that occasionally causes problems from lines intersecting when I'd rather they did not.

          1 Reply Last reply Reply Quote 0
          • BoxB Offline
            Box
            last edited by

            i'm not quite sure of the result you need, but Tig's Originate Component Axes will move all axes to the origin and make the components unique in one go.
            http://sketchucation.com/pluginstore?pln=TIG_originatecomponnetsaxes


            Orig.gif

            1 Reply Last reply Reply Quote 0
            • genma saotomeG Offline
              genma saotome
              last edited by

              I can think of a few situations where relocating the origin would be handy, but that's not what I'm looking for right now.

              Some pictures:
              m1.jpg
              The component on the right is the original one. That on the left was created with a copy/paste plus make unique, plus scale -1. It's origin is in the correct location but is incorrect because it was flipped.

              m2.jpg
              Here the axis has been corrected. I used a plugin I found the other day called Center of Component -- it worked -- but I find it pretty easy to get confused over which was is right or left, near or far... it's not always obvious. If it had one more function -- Match orientation of model -- w/o moving the axis, it would be perfect for all situations.

              Same issue with another one I looked at, Axes Tools -- straightforward choices (I know I'll use it when I need the axis on bottom center) but when your in the middle of things knowing right from left, again, isn't always obvious. Again, a choice to simply reset it the model orientation, where it is at present, is what I'd like to see.

              Both are good, just not as sure-fire simple as I'm hoping to find.

              1 Reply Last reply Reply Quote 0
              • BoxB Offline
                Box
                last edited by

                Perhaps it's me but I can't see any difference in your two images.

                1 Reply Last reply Reply Quote 0
                • S Offline
                  slbaumgartner
                  last edited by

                  Like Box, I can't see any difference between your two images. But I think I understand what you want?

                  Screen Shot 2016-01-17 at 11.15.23 AM.png

                  The problem is that the component axes are what define the locations of the geometry within the ComponentDefinition. When you place a ComponentInstance, you apply a Transformation to the ComponentDefinition, which takes those locations and places, scales, and orients them in the surrounding context. SketchUp shows you the transformed version of the axes because they are still what defines the locations inside the ComponentDefinition. To preserve the orientation of the axes with respect to the surrounding context, you have to also transform the locations of all the entities in the ComponentDefinition so that they are correct with respect to the new Axes orientation. That's what Change Axes does.

                  So, it shouldn't be terribly difficult to create a plugin that does what you want as an alternative version of "Flip Along" or perhaps a constrained version of Change Axes, but I don't know of any existing one that does so.

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

                    After using Make Unique.
                    With the component-instance selected, context-menu, Reset Axes.
                    Use the guide-line and inference tools to locate the component's axes back where it was, and then with a reversed Red and Blue axes [or whatever is needed - depends on your original flip/handing/rotation operation !]

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • genma saotomeG Offline
                      genma saotome
                      last edited by

                      Ahhh, so it is need to retain the relative values of the points that causes the axis to flip when you scale... that makes a lot of sense.

                      Here's an example of my situation: This is the underframe of a freight car -- think spine & rib cage. Everything is mirrored left to right and many things are mirrored A end to B end.
                      su01.jpg
                      This pattern of mirroring continues on everything else that I'll be adding to this model, from 50 foot sides to 1 inch rivets.

                      OK then, no extant plug-in that does exactly what I need... manually messing with the axis always depends on being able to see the model's axis (seldom occurs) so that's no good for me. I suppose I'm stuck exploding the component and building it new. Sigh... that'll work in many situations but it does expose the drawing elements to other drawing elements, creating the risk of interaction (I have requirements to strictly avoid that).

                      Thank you everyone for your answers, it helped me understand why this is occurring; absent someone creating a specifically for this situation I guess I'll just continue as I have.

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        driven
                        last edited by

                        I've been watching this thread and have a dilemma in my understanding of your pursuit...

                        simple flipping and scaling of components helps keep the file size down in a skp...

                        so any diversion from that principle only makes the skp larger and harder to work with...

                        is this desire for an 'on export' conversion, as that's a completely different thing that is available for some formats already...

                        if it's for export, why not say which format you need this for?

                        john

                        learn from the mistakes of others, you may not live long enough to make them all yourself...

                        1 Reply Last reply Reply Quote 0
                        • genma saotomeG Offline
                          genma saotome
                          last edited by

                          @driven said:

                          I've been watching this thread and have a dilemma in my understanding of your pursuit...

                          simple flipping and scaling of components helps keep the file size down in a skp...

                          so any diversion from that principle only makes the skp larger and harder to work with...

                          Yes, I am aware of that.

                          @driven said:

                          is this desire for an 'on export' conversion, as that's a completely different thing that is available for some formats already...

                          if it's for export, why not say which format you need this for?

                          john

                          I did not think it was relevant but since you asked, .s format. It was designed by KUJU for the 2001 game sold by Microsoft -- Train Simulator. While that game lingers on some 15 years later there is an Open Source replacement called Open Rails that will read the .s files and display those models and textures in-game. My work is for use in Open Rails and I use only Sketchup for 3dcad. An example:
                          Intersection of Powell and Hollis, Emeryville CA, as it looked .ca 1950; All architecture derrived from Sanborn maps of the era, historical photos, area visits.

                          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