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

    [Plugin] TIG-Smart_offset

    Scheduled Pinned Locked Moved Plugins
    143 Posts 55 Posters 164.8k Views 54 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.
    • pilouP Offline
      pilou
      last edited by

      Tahnks for the gift before the end of world ! 😎

      Seems marvellous but...(maybe I miss something 😳
      The bow tie must not be disapear ?
      (Normal Offset = Native Offset, Nothing = TIG_Smart_Offset )
      Sorry for the inconvenience ! πŸ˜„

      Cool_but.jpg


      cool_but.skp

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

      1 Reply Last reply Reply Quote 0
      • pilouP Offline
        pilou
        last edited by

        Bon courage! πŸ‘

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

        1 Reply Last reply Reply Quote 0
        • K Offline
          kargall
          last edited by

          Works very well. Merry Xmas to you too. Thanks πŸ˜‰

          1 Reply Last reply Reply Quote 0
          • D Offline
            driven
            last edited by

            undefined methodsuitable?' for TIG::Smart_offsetter:ModuleError Loading File TIG-Smart_offset.rb
            undefined method suitable?' for TIG::Smart_offsetter:Module
            but worked to a degree, the new border and face are separate and I can't seem to get them to merge with the original face?

            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
            • TIGT Offline
              TIG Moderator
              last edited by

              @driven said:

              undefined methodsuitable?' for TIG::Smart_offsetter:ModuleError Loading File TIG-Smart_offset.rb
              undefined method suitable?' for TIG::Smart_offsetter:Module
              but worked to a degree, the new border and face are separate and I can't seem to get them to merge with the original face?

              john
              Strange there is a method called that ?
              It checks selection for suitability and affects how the menu, toolbar and context-menu items display/enabled...
              Are you on MAC ?
              Was there a line number with that error ?
              I'm about to issue v1.1 to resolve Pilou's tolerance issue...
              I'll swap some code around to see if making that method earlier fixes it for you...
              Let me know whatever you can... πŸ˜•
              If it's still an issue a sample SKP might help...

              TIG

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

                Here's v1.1 http://sketchucation.com/forums/viewtopic.php?p=446462#p446462
                It's been made more robust.
                It now works on Pilou's problem shapes!Capture.PNG

                TIG

                1 Reply Last reply Reply Quote 0
                • D Offline
                  driven
                  last edited by

                  Hi Tig,
                  I'll try the new one but something really odd is going on, and yes I'm on a mac.
                  2012-12-21 01.06.32 am.png
                  I used SU to instal, and had line numbers then, so I removed it from 'plugins' to do again, but
                  this has been uninstalled, moved to trash, emptied trash, restarted computer, but it still there and it works, as well as it did, although sketchup can't find the file.... it's crazy, I don't have hidden files either.

                  I'll over write with the new
                  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
                  • D Offline
                    driven
                    last edited by

                    found it, a new 'finder. replacement doesn't update instantly... bin that
                    ok no errors. menu cmd works, context cmd work, toolbar cmd dosen't do anything

                    It works if I split if the validation proc
                    cmd2=UI::Command.new('TIG.Smart_offset'){self.dialog()} cmd2.small_icon=File.join(dir, 'TIG-Smart_offset.png') cmd2.large_icon=File.join(dir, 'TIG-Smart_offset.png') toolbar=UI::Toolbar.new('TIG.Smart_offset') toolbar.add_item(cmd2)

                    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
                    • Mistro11M Offline
                      Mistro11
                      last edited by

                      You have no idea how many times I got frustrated doing an offset and have to get in there and clean up the shape. Thanks TIG!

                      i7-4930k @3.4/3.7GHz, 32Gb RAM, NVidia GTX 980Ti 6Gb, Windows 7 Pro 64bit
                      Structural Integrity is Not Just Physical...It's in the Design and Purpose

                      1 Reply Last reply Reply Quote 0
                      • jeff hammondJ Offline
                        jeff hammond
                        last edited by

                        i'm all greyed out (on two separate computers with different OS & different versions of sketchup on them).. will investigate more tomorrow

                        (skindigo toolbar as reference to what the blue/blacks should look like)

                        dotdotdot

                        1 Reply Last reply Reply Quote 0
                        • N Offline
                          notareal
                          last edited by

                          Merry Christmas to you too!

                          Welcome to try [Thea Render](http://www.thearender.com/), Thea support | [kerkythea.net](http://www.kerkythea.net/) -team member

                          1 Reply Last reply Reply Quote 0
                          • J Offline
                            Jim
                            last edited by

                            in cmd.set_validation_proc (and other places) you want to give the full scope of the suitable? method since it is being called from SketchUp outside the scope of your module.

                            Also, combine the MF_ bits.

                            
                            cmd=UI;;Command.new('TIG.Smart_offset'){self.dialog()}
                            if TIG;;Smart_offsetter.suitable?()
                            MF_ENABLED
                            else
                            MF_DISABLED | MF_GRAYED
                            end
                            
                            

                            Hi

                            1 Reply Last reply Reply Quote 0
                            • cottyC Offline
                              cotty
                              last edited by

                              Nice gift! Thank you and Merry Christmas! (Are we allowed to use it before 24.12.?)

                              my SketchUp gallery

                              1 Reply Last reply Reply Quote 0
                              • pilouP Offline
                                pilou
                                last edited by

                                Yeeeeeeees! Works like a charm now! πŸ‘
                                You are the Ruby's king! 😎

                                And lucky because I can't more test your tricky plugin before the next year! πŸ˜„

                                Super_TIG.jpg

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

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

                                  @jim said:

                                  in cmd.set_validation_proc (and other places) you want to give the full scope of the suitable? method since it is being called from SketchUp outside the scope of your module.

                                  Also, combine the MF_ bits.

                                  
                                  > cmd=UI;;Command.new('TIG.Smart_offset'){self.dialog()}
                                  > if TIG;;Smart_offsetter.suitable?()
                                  > MF_ENABLED
                                  > else
                                  > MF_DISABLED | MF_GRAYED
                                  > end
                                  > 
                                  

                                  Thanks, knew it was obvious... This only affected MACs though ???
                                  This was collecting dust on a virtual dust, until Pilou reminded me that I'd written it, so sometimes things get 'forgotten'... πŸ˜’

                                  TIG

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

                                    Here's v1.2 http://sketchucation.com/forums/viewtopic.php?p=446462#p446462
                                    Further robustness in enabling/disabling/graying and suitable? tests [thanks to Jim!].
                                    Seems to be especially for MACs πŸ˜„

                                    TIG

                                    1 Reply Last reply Reply Quote 0
                                    • J Offline
                                      Jim
                                      last edited by

                                      @tig said:

                                      This only affected MACs though ???

                                      I am not sure - it was just a guess and I don't have a Mac. Did you try it? πŸ˜†

                                      Hi

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

                                        I don't have a MAC either. πŸ˜•
                                        Driven's reported issue was on a MAC and Jeff had other issues on a MAC too...
                                        Hopefully this recent v1.2 [...20121221b.rbz !] will address the suitable? check and MF_ issues with the menus/toolbar...
                                        It still works fine on a PC, but then v1.1 did too πŸ˜• πŸ˜„

                                        TIG

                                        1 Reply Last reply Reply Quote 0
                                        • elmerE Offline
                                          elmer
                                          last edited by

                                          Nice Christmas gift Tig, thanks a lot, it works perfectly on my Mac.

                                          1 Reply Last reply Reply Quote 0
                                          • alvisA Offline
                                            alvis
                                            last edited by

                                            Thanx TIG

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 6 / 8
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement