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!
🚨 Skimp | 25% Off until March 30 Buy Now
How to use the Defined axis move?
-
Excuse me
How to use the Defined axis move?
#------------------------------------------
require('sketchup.rb')
unless file_loaded?(FILE)
UI.menu("Edit").add_separator
UI.menu("Edit").add_item("move Y"){ move }
end
def move
model = Sketchup.active_model
entities = model.active_entities
ss = model.selection
vector = [10,0,0]
tr = Geom::Transformation.translation(vector)
entities.transform_entities(tr, ss.to_a)
end
#------------------------------------------
Advertisement