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