sketchucation logo sketchucation
    • 登入
    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!
    🔌 Smart Spline | Fluid way to handle splines for furniture design and complex structures. Download

    [Plugin] Arc_Offset_True

    已排程 已置頂 已鎖定 已移動 Plugins
    22 貼文 11 Posters 20.9k 瀏覽 11 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • TIGT 離線
      TIG Moderator
      最後由 編輯

      TIG (c) 2012 - 2022
      All Rights Reserved.
      THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
      WARRANTIES,INCLUDING,WITHOUT LIMITATION,THE IMPLIED WARRANTIES OF
      MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

      Arc-offset_true.rb

      Usage:
      Adds a new 'Tool' menu item 'Arc_Offset_True'.
      Adds a new context-menu item 'Arc_Offset_True' if a single Arc is selected.
      Enter the required +ve/-ve offset distance in the dialog.
      Enter the required number of copies [if it's -ve and would zero/flip the
      copies its curtailed and a closing dialog tells you].
      It works on Arcs or Circles.
      Unlike the native Offset tool all offset-arcs are always made as 'Arcs' -
      whether they are faced/not-faced, or intersect with other geometry.

      Version:
      1.0 20120403 First issue.
      1.1 20120403 Now accommodates trimmed first/last segments properly, also
      traps for -ve offsets that would 'zero' or 'flip' the offset-arc, the
      selection now passes to the new offset-arc.
      1.2 20120403 Now has optional 'Number' in dialog to make arrayed offsets.
      Context-menu option added.
      1.3 20120403 Multiple offsets will now intersect with other geometry only
      AFTER they have ALL been formed.
      The native Offset tool's offset-arcs that are intersected become Curves,
      but this tool will make them as Arcs [albeit 'split'].
      Offset-arcs made from an Arc that bounds a face will become Curves in the
      native Offset tool; this tool produces similar results.
      1.4 20120403 With the native Offset tool offset-arcs made from an Arc that
      bounds a face will become Curves; however, this tool makes them as Arcs.
      1.5 20120402 Minor code tweak [you'd probably not notice - I will].
      1.6 20220619 Selection of new arc on completion fixed for newer Sketchup versions.

      Link Preview Image
      SketchUp Plugins | PluginStore | SketchUcation

      SketchUp Plugin and Extension Store by SketchUcation provides free downloads of hundreds of SketchUp extensions and plugins

      favicon

      (sketchucation.com)

      TIG

      1 條回覆 最後回覆 回覆 引用 0
      • TIGT 離線
        TIG Moderator
        最後由 編輯

        Version v1.1 http://forums.sketchucation.com/viewtopic.php?p=395769#p395769 now correctly mimics the original Arc's start/end segments if they were 'trimmed', it also stops you offsetting with a negative distance to 'zero' or beyond...

        TIG

        1 條回覆 最後回覆 回覆 引用 0
        • Wo3DanW 離線
          Wo3Dan
          最後由 編輯

          Tried it TIG, 👍 thanks.
          (I won't "complain" that the entered distance isn't the same as reflected by the distance between segments. And Jeff will be pleased)
          If I may suggest, maybe an arraynr._inputfield could be added to the dialog box, to do multiple offsets at once?
          And is it possible/safe to add the tool to the right click context menu?

          1 條回覆 最後回覆 回覆 引用 0
          • TIGT 離線
            TIG Moderator
            最後由 編輯

            Here's v1.2 http://forums.sketchucation.com/viewtopic.php?p=395769#p395769
            It now has an optional 'Number' in the dialog [which defaults to 1] to make arrayed offsets.
            A context-menu option has been added.

            TIG

            1 條回覆 最後回覆 回覆 引用 0
            • Wo3DanW 離線
              Wo3Dan
              最後由 編輯

              @tig said:

              It now has an optional 'Number' in the dialog [which defaults to 1] to make arrayed offsets.
              A context-menu option has been added.

              Great! I notice that no faces are create from new geometry. Not that it is an issue. But an original face is an obstacle!
              From experimenting with/without faces where the original arc is part of the boundary of the face, I notic that whenever a face is involved, the array operation stops at one and splits up the new arc into as many edges as there would be segments. (thus causing the array offset to stop at one, I guess)

              1 條回覆 最後回覆 回覆 引用 0
              • Z 離線
                ZFRPS
                最後由 編輯

                Great!Q1.jpgQ2.jpg

                sketchup is bim

                1 條回覆 最後回覆 回覆 引用 0
                • T 離線
                  Trogluddite
                  最後由 編輯

                  Works a treat, thanks TIG. 😄

                  1 條回覆 最後回覆 回覆 引用 0
                  • mitcorbM 離線
                    mitcorb
                    最後由 編輯

                    Thank you, TIG:
                    I estimate that you did this in about 4 hours judging from your last post in the "Inacurrate" thread until you came out with the first version. This is sorta Herculean 😉

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

                    1 條回覆 最後回覆 回覆 引用 0
                    • TIGT 離線
                      TIG Moderator
                      最後由 編輯

                      @wo3dan said:

                      @tig said:

                      It now has an optional 'Number' in the dialog [which defaults to 1] to make arrayed offsets.
                      A context-menu option has been added.

                      Great! I notice that no faces are create from new geometry. Not that it is an issue. But an original face is an obstacle!
                      From experimenting with/without faces where the original arc is part of the boundary of the face, I notic that whenever a face is involved, the array operation stops at one and splits up the new arc into as many edges as there would be segments. (thus causing the array offset to stop at one, I guess)
                      At the moment it offsets the arc and continues using the last one, if that's intersected you get a split result... I'll look at a fix.

                      TIG

                      1 條回覆 最後回覆 回覆 引用 0
                      • brookefoxB 離線
                        brookefox
                        最後由 編輯

                        Thank you, TIG.

                        Your attention to 'right' wrongs not right, even if right, if not without a fight, make no one uptight, and we appreciate it, a lot.

                        ~ Brooke

                        1 條回覆 最後回覆 回覆 引用 0
                        • jim smithJ 離線
                          jim smith
                          最後由 編輯

                          thanks TIG. I haven't tried it yet but have confidence it will be the answer to one of my SU-wish list items 😄

                          "Out of clutter find simplicity,
                          from discord find harmony,
                          In the middle of difficulty lies opportunity"
                          Albert Einstein

                          1 條回覆 最後回覆 回覆 引用 0
                          • pilouP 離線
                            pilou
                            最後由 編輯

                            Tig's plug don't give the same result than the Multiple Offests of Sdmitch
                            Each plug has it's own utility 😉

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

                            1 條回覆 最後回覆 回覆 引用 0
                            • TIGT 離線
                              TIG Moderator
                              最後由 編輯

                              Here's v1.3 http://forums.sketchucation.com/viewtopic.php?p=395769#p395769
                              Multiple offsets will now intersect with other geometry only AFTER they have ALL been formed.
                              The native Offset tool's offset-arcs that are intersected become Curves, but this tool will make them as Arcs [albeit 'split'].
                              Offset-arcs made from an Arc that bounds a face will become Curves in the native Offset tool; this tool produces similar results.
                              I think that now addresses the various issues...

                              TIG

                              1 條回覆 最後回覆 回覆 引用 0
                              • J 離線
                                jorge2011
                                最後由 編輯

                                excellent plugin.
                                a query.
                                is possible to make the plugin more interactive? not to use dialog. Use vcv Viewer?

                                thank you very much

                                1 條回覆 最後回覆 回覆 引用 0
                                • TIGT 離線
                                  TIG Moderator
                                  最後由 編輯

                                  Here's v1.4 http://forums.sketchucation.com/viewtopic.php?p=395769#p395769
                                  The final pieces of the jigsaw are hopefully in place...

                                  Unlike the native Offset tool, all offset-arcs are now always made as 'Arcs' - whether they are faced/not-faced, or intersect with other geometry.

                                  TIG

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • TIGT 離線
                                    TIG Moderator
                                    最後由 編輯

                                    Here's v1.5 http://forums.sketchucation.com/viewtopic.php?p=395769#p395769
                                    Includes a needed a minor code tweak... you'd probably not notice, but I will 😕

                                    TIG

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • jeff hammondJ 離線
                                      jeff hammond
                                      最後由 編輯

                                      ha! awesome.. this one immediately went to a shortcut assignment 😉

                                      the next challenge, if it's even possible, would be to allow us to select a string(?) of lines/curves/arcs then offset them.. say i had a straight line, then a tangent arc, then another straight line.. select all three and you could offset them at once.. only since there's an arc in there, your offset_true will recognize it and deal with it accordingly
                                      (as this is a scenario where vanilla offset will really flounder)

                                      dotdotdot

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • Wo3DanW 離線
                                        Wo3Dan
                                        最後由 編輯

                                        @tig said:

                                        ..Multiple offsets will now intersect with other geometry only AFTER they have ALL been formed....

                                        Thanks TIG, for all the changes you made with the speed of lightning.
                                        I used "isolate the problematic arc in a group" before multiple offsets. Then explode the result again.
                                        Out of curiosity, is this how you work around the intersect problem in the newest version?
                                        Thanks again.

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • TIGT 離線
                                          TIG Moderator
                                          最後由 編輯

                                          @wo3dan said:

                                          @tig said:

                                          ..Multiple offsets will now intersect with other geometry only AFTER they have ALL been formed....

                                          Thanks TIG, for all the changes you made with the speed of lightning.
                                          I used "isolate the problematic arc in a group" before multiple offsets. Then explode the result again.
                                          Out of curiosity, is this how you work around the intersect problem in the newest version?
                                          Thanks again.
                                          I now group the original arc [as a copy] and then scale it multiple times about its origin, then explode all of them when I'm done; that way, they only 'intersect' with everything else when it's all done...
                                          The way it gets around the issue of offsetting an arc that is bounding a face [that manifests itself as a new curve with the native tool] is to group the original arc AND all of its connected faces, then erase all of the edges in the group that are not part of the original arc. Then we have a grouped arc that can be scaled/exploded etc...
                                          Thus all 'true' offsets of an arc now always result in new arcs [unless of course it's a -ve offset, when some will not get made at all, if the inwards offset is <= arc.radius]
                                          🤓

                                          TIG

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • Rich O BrienR 線上
                                            Rich O Brien Moderator
                                            最後由 編輯

                                            Some errors in console when you run tool...

                                            offset_true.rb;130;in `new'
                                            C;/Users/Da Beast 2022/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/Arc-offset_true.rb;48;in `block (2 levels) in <module;Arc_Offset_True>'
                                            Error; #<TypeError; wrong argument type (expected Sketchup;;Entity or Array of Sketchup;;Entity)>
                                            C;/Users/Da Beast 2022/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/Arc-offset_true.rb;130;in `add'
                                            C;/Users/Da Beast 2022/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/Arc-offset_true.rb;130;in `new'
                                            C;/Users/Da Beast 2022/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/Arc-offset_true.rb;48;in `block (2 levels) in <module;Arc_Offset_True>'
                                            

                                            Download the free D'oh Book for SketchUp 📖

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement