sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Changing a DC axis

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    5 Posts 2 Posters 1.4k 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.
    • E Offline
      ericschimel
      last edited by

      So I have created a really complicated DC, several actually.

      After I spent MANY hours creating these DC's, I realized that I need to rotate it on the X axis to get them to glue to a vertical surface in the correct way.

      What this means is that I need to take every reference to Y and Z and switch them with each other. This is going to be a real pain, and take FOREVER. Does anyone know of a better way to do this? I have been told that a ruby script could be made for this, but I know just about nothing involving Ruby.

      I was thinking that there might be a way that I could export the DC attributes to some sort of text editor, where which I could use "Find and Replace" to switch everything en masse, and then copy the attributes back in.

      So far, I haven't been able to open a DC's attributes in any sort of external editor...

      -Eric
      http://plugin.sketchthis.net
      Sketchup Kitchen Design Plugin
      Custom Models

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

        Should be able to do this in-model without too much trouble. I can look at it later today if you can send an example, and if no one else wants to try.

        Hi

        1 Reply Last reply Reply Quote 0
        • E Offline
          ericschimel
          last edited by

          Try this DC

          Error 404 (Not Found)!!1

          favicon

          (sketchup.google.com)

          The problem with this one is that I wanted to get it to be able to glue to any surface. For that to work right, the front, or face of the door needs to be laying flat, looking up at the sky (or the blue axis)

          Right now, its back is facing the positive side of the X axis. When I set a glue plane for it, it is orientated wrong. Basically, I need to rotate it so the front is facing the positive side of the Green axis, and the front is facing the blue axis.

          That would require swapping around just about every formula in the DC. I've got this component, and about a dozen others that I need to do this too..

          Thanks for taking a look!

          -Eric
          http://plugin.sketchthis.net
          Sketchup Kitchen Design Plugin
          Custom Models

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

            Sorry Eric, I'm not having any luck - I keep getting errors when swapping attributes even in the simplest case. I've tried swapping them in-model, and also writing to disk, editing, and then re-applying the attributes from the file.

            Hi

            1 Reply Last reply Reply Quote 0
            • E Offline
              ericschimel
              last edited by

              Thanks for trying Jim... Just out of curiosity, how were you able to export any attributes from the DC?

              -Eric
              http://plugin.sketchthis.net
              Sketchup Kitchen Design Plugin
              Custom Models

              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