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

    Scripting or Extension question

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    3 Posts 2 Posters 739 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.
    • D Offline
      danhuh
      last edited by

      Hi, I'm modeling a small city and need to find an automated solution to a problem I've encountered. I have a topo model from Sketchup's geolocation and all of the buildings modeled from a GIS database that was imported into Sketchup via a plug-in.

      The building models are generated automatically, which is a huge timesaver, but all of the buildings sit on a single flat plane. So I installed the Drop GC extension, which automatically places objects on a sloping surface. Each building is it's own group (good), but the group's axis origin is set to the world 0,0,0 point (bad). Consequently, when I use the DropGC plugin, it buries the building too far into the ground.

      So I explode the group and redefine it as a component, with an axis origin point that is located at the base of the building (instead of world 0,0,0). DropGC works fine and places the building at the right Z height. Easy to do with a few buildings but my model has at least a thousand buildings. So my question is... is there an extension or script that will automatically explode a group and create a component, a thousand times? Or maybe something like Actions for Photoshop?

      I've attached an image of the model but it doesn't really help describe the problem. Any advice would be appreciated, thanks in advance!

      https://i.imgur.com/wi7Xr9T.png

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

        Thomthom's Axes tool will let you reset them all.
        http://sketchucation.com/forums/viewtopic.php?p=267844#p267844

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

          Thanks Box, that worked perfectly!

          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