• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[Plugin] Script selects the line or face.(UPDATED 15/02/16)

Scheduled Pinned Locked Moved Plugins
26 Posts 15 Posters 21.5k Views
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.
  • S Offline
    sahi
    last edited by sahi 15 Jun 2012, 04:52

    The script selects the line or face.

    The first icon >> click on it - and only the lines stand out >> again click on it >> disables script

    The second icon >> click on it - and distinguished only by persons >> again click on it deactivates the script >>


    It selects only the face or edge or hidden lines

    1 Reply Last reply Reply Quote 0
    • topic:timeago-later,6 months
    • R Online
      Rich O Brien Moderator
      last edited by 12 Dec 2012, 16:53

      I added a tutorial to this plugin as I think it is an essential tool in SketchUp. πŸ‘

      Download the free D'oh Book for SketchUp πŸ“–

      1 Reply Last reply Reply Quote 0
      • D Offline
        dtrarch
        last edited by 12 Dec 2012, 22:21

        Sahi

        Just a killer app and thank you very much

        dtr

        1 Reply Last reply Reply Quote 0
        • M Offline
          mitcorb
          last edited by 13 Dec 2012, 02:56

          Great concept. Congratulations, sahi. And thank you, Rich, for that video.

          Now, a real trick would be to select only vertices. πŸ’š

          I take the slow, deliberate approach in my aimless wandering.

          1 Reply Last reply Reply Quote 0
          • E Offline
            Edson
            last edited by 13 Dec 2012, 19:50

            sahi,

            great plugin! I suggest you change the title of this topic to reflect the exact name of your plugin. otherwise people will have a hard time find it, as was my case. something like [Plugin] selection_edge would work nicely. by the same token, why does the name of the plugin reflect what it does? selection_edge does not tell one that it also select faces.

            best regards.

            edson mahfuz, architect| porto alegre β€’ brasil
            http://www.mahfuz.arq.br

            1 Reply Last reply Reply Quote 0
            • M Offline
              mitcorb
              last edited by 13 Dec 2012, 23:43

              How about Plugin: Select/Isolate Edge or Face.
              How about Plugin: Discrete Selection Edge or Face.

              Either one is all yours-- or none of the above.

              I take the slow, deliberate approach in my aimless wandering.

              1 Reply Last reply Reply Quote 0
              • S Offline
                sahi
                last edited by 15 Dec 2012, 22:00

                @rich o brien said:

                I added a tutorial to this plugin as I think it is an essential tool in SketchUp. πŸ‘

                Hi!
                Thanks Rich O Brien

                PS:I do not speak English so it's hard to explain all the functions of the plug

                1 Reply Last reply Reply Quote 0
                • topic:timeago-later,about a month
                • I Offline
                  irwanwr
                  last edited by 27 Jan 2013, 19:59

                  [Edited]
                  Got it. Can see the difference between this plugin with TT Selection Toys.
                  Thank you Sahi, for this one, Axes Comp and Krug. I think this should be one of my "must have" plugin πŸ˜„

                  1 Reply Last reply Reply Quote 0
                  • topic:timeago-later,3 months
                  • C Offline
                    cityblueskyz
                    last edited by 25 Apr 2013, 02:16

                    Thank you very much for sharing
                    It really is a very convenient plug-in πŸ‘

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      pilou
                      last edited by 25 Apr 2013, 06:49

                      This sort of selection don't yet existing in another plugins ? ( Selection Toys etc...)

                      Frenchy Pilou
                      Is beautiful that please without concept!
                      My Little site :)

                      1 Reply Last reply Reply Quote 0
                      • topic:timeago-later,11 months
                      • S Offline
                        snakeysnape
                        last edited by 7 Mar 2014, 19:52

                        Hi All,

                        I wonder if anybody else is experiencing it, but this plug-in don't work for me when I use it with SU 2014. Previously in SU8 with select face toggled on even if I triple click a model only face would be selected as expected but for SU2014 edges are included in the selection.
                        I hope this gets resolved, as its been a real helpful plugin for me.

                        1 Reply Last reply Reply Quote 0
                        • sdmitchS Offline
                          sdmitch
                          last edited by 9 Mar 2014, 16:39

                          I have experienced the same results. Works perfectly in SU8 but fails in SU2014 with no errors reported in the Ruby Console.

                          Nothing is worthless, it can always be used as a bad example.

                          http://sdmitch.blogspot.com/

                          1 Reply Last reply Reply Quote 0
                          • cottyC Offline
                            cotty
                            last edited by 9 Mar 2014, 17:36

                            @snakeysnape said:

                            I hope this gets resolved, as its been a real helpful plugin for me.

                            Until then, you can use Thomthoms selections toys as an alternative for this task.

                            my SketchUp gallery

                            1 Reply Last reply Reply Quote 0
                            • sdmitchS Offline
                              sdmitch
                              last edited by 9 Mar 2014, 17:51

                              The code

                              edges=sel.grep(Sketchup;;Edge); sel.clear; sel.add edges
                              

                              works in SU2014 but causes a stack error that crashes SU8.

                              Nothing is worthless, it can always be used as a bad example.

                              http://sdmitch.blogspot.com/

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                driven
                                last edited by 9 Mar 2014, 19:45

                                @sdmitch said:

                                The code...
                                works in SU2014 but causes a stack error that crashes SU8.

                                on mac both

                                sel=Sketchup.active_model.selection
                                edges=sel.grep(Sketchup;;Edge).to_a; sel.clear; sel.add edges
                                
                                sel=Sketchup.active_model.selection
                                edges=sel.grep(Sketchup;;Edge); sel.clear; sel.add edges
                                

                                work in v8 and v2014

                                learn from the mistakes of others, you may not live long enough to make them all yourself...

                                1 Reply Last reply Reply Quote 0
                                • sdmitchS Offline
                                  sdmitch
                                  last edited by 9 Mar 2014, 20:08

                                  Apparently my v8 is different because it still crashes with that addition.

                                  Nothing is worthless, it can always be used as a bad example.

                                  http://sdmitch.blogspot.com/

                                  1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    driven
                                    last edited by 9 Mar 2014, 20:12

                                    my test file had less than 2000 edges so is it a limit?
                                    john

                                    learn from the mistakes of others, you may not live long enough to make them all yourself...

                                    1 Reply Last reply Reply Quote 0
                                    • sdmitchS Offline
                                      sdmitch
                                      last edited by 10 Mar 2014, 00:00

                                      No I was using a small sample consisting of 3 or 4 faces.

                                      I did find a solution that works in both SU8 and SU2014 and that was to remove the observer before processing the selection and add it back after while using the selection processing code previously posted.

                                      	def onSelectionBulkChange(selection)
                                      		Sketchup.active_model.selection.remove_observer self
                                      		get_selection_edge(selection) if(@select_edge)
                                      		# get_selection_edge_smooth(selection) if(@edge_smooth)
                                      		get_selection_face(selection) if(@select_face)
                                      		Sketchup.active_model.selection.add_observer self
                                      	end
                                      
                                      

                                      Nothing is worthless, it can always be used as a bad example.

                                      http://sdmitch.blogspot.com/

                                      1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        snakeysnape
                                        last edited by 10 Mar 2014, 09:33

                                        Hi Sdmitch,

                                        Sorry but can you post the fixed plugin in here? I am confused as to where to put the selection code.

                                        thanks

                                        1 Reply Last reply Reply Quote 0
                                        • sdmitchS Offline
                                          sdmitch
                                          last edited by 10 Mar 2014, 14:03

                                          @snakeysnape said:

                                          Hi Sdmitch,

                                          Sorry but can you post the fixed plugin in here? I am confused as to where to put the selection code.

                                          thanks

                                          With apologies to Sahi.


                                          selection_edge.rb

                                          Nothing is worthless, it can always be used as a bad example.

                                          http://sdmitch.blogspot.com/

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

                                          Advertisement