Last active
August 29, 2015 14:16
-
-
Save alexschreyer/ab31f8e55cc6c6ce8b34 to your computer and use it in GitHub Desktop.
Drop selection to ground (z=0) in SketchUp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mod = Sketchup.active_model # Open model | |
ent = mod.entities # All entities in model | |
sel = mod.selection # Current selection | |
sel.each { |i| | |
vec = Geom::Vector3d.new 0,0,-(i.bounds.min.z) | |
t = Geom::Transformation.new vec | |
ent.transform_entities(t, i) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment