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
#------------------------------------------
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginAdvertisement