sketchucation logo sketchucation
    • Login
    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!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    How to use the Defined axis move?

    Scheduled Pinned Locked Moved Plugins
    1 Posts 1 Posters 2.1k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • X Offline
      xyhcwu
      last edited by

      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
      #------------------------------------------

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Buy SketchPlus
      Buy SUbD
      Buy WrapR
      Buy eBook
      Buy Modelur
      Buy Vertex Tools
      Buy SketchCuisine
      Buy FormFonts

      Advertisement