• Login
sketchucation logo sketchucation
  • Login
ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

Multiple segment editor plugin

Scheduled Pinned Locked Moved Plugins
17 Posts 4 Posters 729 Views 4 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.
  • O Offline
    onzki
    last edited by onzki 26 Aug 2013, 08:52

    Hi, I'm curious if we have a plug in where the user can select multiple arc or circles and specify its segments at once?
    The native sketchup only allows one edit per selection via entity info (segments). The problem with this is the time factor, say if there's 20 circles or arcs- it would be better (IMHO) if the user can select them all and then specify the segments he wanted instead of selecting and editing one by one.
    Thanks! πŸ˜„

    http://img199.imageshack.us/img199/995/ymtb.png


    [/hr]Dell Alienware Area-51. SKU 2021 Pro. AutoCAD 2023. Landscape design firm

    1 Reply Last reply Reply Quote 0
    • M Offline
      mitcorb
      last edited by 26 Aug 2013, 15:06

      I am sure you are familiar with Fredo6's Bezier Spline suite. You did not mention if you were using it. If you right click on a selection and get Polyline Segmentor, or Polyline Divider, it may be simpler but not necessarily multi selection as you wish. Just thought I would mention, if it might help. There may be a creative way to use ThomThom's selection tool to accomplish this?

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

      1 Reply Last reply Reply Quote 0
      • O Offline
        onzki
        last edited by 28 Aug 2013, 02:06

        @mitcorb said:

        I am sure you are familiar with Fredo6's Bezier Spline suite.

        Thanks for the reply. Yes I have that one and it's very useful. However, like what you mentioned, it doesn't have the option that I'm currently looking for. Thanks again for the suggestion.


        [/hr]Dell Alienware Area-51. SKU 2021 Pro. AutoCAD 2023. Landscape design firm

        1 Reply Last reply Reply Quote 0
        • M Offline
          mitcorb
          last edited by 29 Aug 2013, 02:31

          Hi, onzki:
          I still think that this idea is very useful, and not so esoteric or specialized. The tool would still have to look at each separate entity one by one and perform the desired operation similar to an operation that simplifies a mesh- a polyreducer- or polymultiplier as the case may be.
          The difference is that the tool may be able to do it more quickly, since it is repetitive. A problem may arise if the entity is connected to other geometry. Just some thoughts. I am sure there may be reasons why not.

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

          1 Reply Last reply Reply Quote 0
          • P Offline
            pilou
            last edited by 29 Aug 2013, 08:26

            If I good understand that mean that each segment is resized ?

            So it's also separated object

            So make all separated group with Loose Geometry by Chris Fullmer

            Group to Component by Thomthom

            Then Axes tool by Thomthom for have Center of selection Box for each component

            rest to find the plug for a "relative resizing" πŸ˜„

            Seems Chris Fullmer has that πŸ˜„
            Scale and Rotate Multiple
            Et voilΓ  πŸ’š

            If it's for change the number of segments it's another story! πŸ˜„

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

            1 Reply Last reply Reply Quote 0
            • T Offline
              TIG Moderator
              last edited by 29 Aug 2013, 10:06

              Maybe http://sketchucation.com/resources/pluginstore?pln=TIG_equalsegs to draw them like that initially OR my http://sketchucation.com/resources/pluginstore?pln=ArcCurve_set_segments to fix them later ? It has a Ruby Console tool TIG.changearcsegments 64 using the new API method and a Plugins menu item in the newest version...

              TIG

              1 Reply Last reply Reply Quote 0
              • P Offline
                pilou
                last edited by 29 Aug 2013, 10:33

                About the number of segments
                Curiously only Ruby console works and only for the Arcs!
                Circles are ignored! 😲
                Menu makes nothing!
                (tested on V7 free)

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

                1 Reply Last reply Reply Quote 0
                • T Offline
                  TIG Moderator
                  last edited by 29 Aug 2013, 15:58

                  Works fine for me in both v8 & v2013.
                  From menu OR Console for both Arcs & Circles
                  Any Ruby Console errors?

                  It should change Arcs & Circles - BUT of course connected geometry can prevent changes being made - just like with Entity Info's limitations.

                  Try it on lone a lone unconnected Circle and report back...

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    pilou
                    last edited by 29 Aug 2013, 19:43

                    For one a several arcscircles selected : all works fine in the Ruby Console!

                    For one a several arcscircles selected nothing happen with the menu!

                    For one a several circles selected this error is happening with Ruby Console

                    Error: #<NoMethodError: C:/Program Files/Google/TGoogle SketchUp 7/Plugins/ArcCurve-set_segments=.rb:65:in set_segments=': undefined method is_polygon?' for #Sketchup::ArcCurve:0x1104e140>
                    C:/Program Files/Google/TGoogle SketchUp 7/Plugins/ArcCurve-set_segments=.rb:65

                    For one a several circles selected nothing happen with the menu!

                    All this is very curious because seems in the old past all worked fine πŸ˜„
                    Maybe the new API ? πŸ˜„

                    (Tested with Su 7 free)

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

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      TIG Moderator
                      last edited by 29 Aug 2013, 21:18

                      πŸ’­
                      .is_polygon?
                      was introduced in v8 ?
                      This checks if a looped curve is a polygon OR a circle...

                      I had made an API addition that was dropped when it became part of the new API...

                      So if you are trying to work on circles, then sadly it's >=v8 use only then...
                      UNLESS you also include this attached rb file in your <v8 Plugins folder!!!

                      [mod=:1cut554m]Removed the attachment - better version in next few posts...
                      TIG[/mod:1cut554m]

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        pilou
                        last edited by 29 Aug 2013, 23:32

                        with the new file test added
                        Must have the 2 rb files ArcCurve-set_segments=.rb and ArcCurveTests.rb installed ?
                        (it that I made)

                        2 circles and an arc-circle selected
                        Menu : Nothing happen

                        and with the ruby console
                        nothing change and this error message
                        TIG.changearcsegments 64
                        Error: #<ArgumentError: C:/Program Files/Google/TGoogle SketchUp 7/Plugins/ArcCurve-set_segments=.rb:61:in `is_loop?': wrong number of arguments(1 for 0)>
                        C:/Program Files/Google/TGoogle SketchUp 7/Plugins/ArcCurve-set_segments=.rb:61

                        for only an arc-circle selected
                        Menu : Nothing happen
                        same error message on the ruby console
                        TIG.changearcsegments 64
                        Error: #<ArgumentError: C:/Program Files/Google/TGoogle SketchUp 7/Plugins/ArcCurve-set_segments=.rb:61:in `is_loop?': wrong number of arguments(1 for 0)>
                        C:/Program Files/Google/TGoogle SketchUp 7/Plugins/ArcCurve-set_segments=.rb:61

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

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          TIG Moderator
                          last edited by 30 Aug 2013, 09:21

                          OK, another issue is .is_loop? is causing problems.
                          I've bodge up a new version - test it and report back...
                          It should now be compatible with this tool, other tools and v7 & other versions πŸ˜’


                          ArcCurveTests.rb

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • P Offline
                            pilou
                            last edited by 30 Aug 2013, 10:17

                            You were very efficicient! 😎

                            All is perfect! Menu or / and console πŸ‘
                            Works even you choose other things inside the selection! πŸ‘
                            (tested on SU 7 free)

                            Bravo! β˜€

                            http://blog.lesoir.be/saturdaywinefever/files/2013/07/Moet-Chandon-524x965.jpg

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

                            1 Reply Last reply Reply Quote 0
                            • T Offline
                              TIG Moderator
                              last edited by 30 Aug 2013, 10:21

                              I've now incorporated this updated ArcCurveTests.rb in the 'segemnt-setting' tool's PluginStore RBZ for the tool, as it works 'backwards' down to v7...

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • O Offline
                                onzki
                                last edited by 31 Aug 2013, 10:09

                                @tig said:

                                I've now incorporated this updated ArcCurveTests.rb in the 'segemnt-setting' tool's PluginStore RBZ for the tool, as it works 'backwards' down to v7...

                                Thanks a lot for looking at this post and sharing your time generously for another good plugin, what's the specific plug in name again? Thanks, cheers! πŸ‘


                                [/hr]Dell Alienware Area-51. SKU 2021 Pro. AutoCAD 2023. Landscape design firm

                                1 Reply Last reply Reply Quote 0
                                • T Offline
                                  TIG Moderator
                                  last edited by 1 Sept 2013, 12:55

                                  http://sketchucation.com/resources/pluginstore?pln=ArcCurve_set_segments

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • O Offline
                                    onzki
                                    last edited by 3 Sept 2013, 02:32

                                    @tig said:

                                    http://sketchucation.com/resources/pluginstore?pln=ArcCurve_set_segments

                                    I tried it.. wow, this is amazing. I can set it endlessly, from high to low and vice versa πŸ˜„ Thanks a lot!


                                    [/hr]Dell Alienware Area-51. SKU 2021 Pro. AutoCAD 2023. Landscape design firm

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

                                    Advertisement