Automating the removal of geolocation from a model

My company has a huge library of component models that we use in our drawings. I am slowly but surely working through improvements in their use, and the next step in doing that is removing the geolocation from each model to prevent them from snapping to origin when importing.

To do this manually takes about 30-45 seconds per model, and I’ve got about 600 models to update. Is there a way to batch this?

Automating usually means “scripting”, because you need to instruct the computer precisely what to do (and click targets would not be unambiguous enough).

So this is a question about using the SketchUp Ruby API. To achieve this, you need to:

But did you think about the danger of automating away people’s jobs?


I for one welcome our new robot overlords!

Thanks for the help!

1 Like

I believe the model’s ShadowInfo data object has a few fields that also need to be cleared.

  • City
  • Country
  • Latitude
  • Longitude
  • TZOffset
  • North Angle
1 Like