sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Selection

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 308 Views 2 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.
    • R Offline
      rcrill
      last edited by

      How in Ruby can I select everything (as it now stands I have to use the mouse)?

      Where can I find a general overview of groups, models, components and entities?

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        Sketchup.active_model.selection.add(Sketchup.active_model.entities)

        or ....active_entities)

        .

        TIG

        1 Reply Last reply Reply Quote 0
        • R Offline
          rcrill
          last edited by

          Thanks for the reply, but I still can't get it to work.

          #This works when I select everything with a mouse
          #I have the transform "t" defined elsewhere
          model = Sketchup.active_model.selection Sketchup.active_model.active_entities.transform_entities t,model

          ......

          #I tried this to select everything without the mouse, but it does nothing
          model = Sketchup.active_model.selection.add(Sketchup.active_model.entities)
          Sketchup.active_model.active_entities.transform_entities t,model

          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