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

    [Plugin] 2D Tools

    Scheduled Pinned Locked Moved Plugins
    785 Posts 178 Posters 462.6k Views 177 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.
    • Dave RD Offline
      Dave R
      last edited by

      What is the radius of the fillet set to?

      Etaoin Shrdlu

      %

      (THERE'S NO PLACE LIKE)

      G28 X0.0 Y0.0 Z0.0

      M30

      %

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

        It shouldn't erase any lines 😕 , except to trim them back to the arc of the radius specified.
        The default radius is 0, this effectively makes the tool a trim/extend tool, entering a +ve radius will fillet any two coplanar edges that you click on, adding a guide-point at the new arc's center. Selected edges are trimmed/extended to suit.
        The only time it might play up is if you pick two lines that are all-but-parallel and apply a large radius, but even then the lines should get replaced by the arc ?
        Can you confirm your entered radius setting for the fillet [remembered with each SKP as the last used value] and perhaps post a simple example SKP of some lines that will fail for you, so we can test what's happening...
        Because 'chamfer' is working OK, then I suspect you are misconstruing the fillet radius input option?
        To change the number of segments you type Ns (+<enter>) where N might be 24 ... 24s; to enter the radius type a number (+<enter>) e.g. 123 which becomes the radius in the current Model Units, e.g. 123mm.
        To enter a radius in units other that the current Model Units - e.g. you are working in 'm' but you want to type the fillet in 'mm' you just need to use a units suffix on the entered value - so typing 123mm (+<enter>) will make the radius 0.123m automatically... You could even model in ft/ins but type in some radii in 'mm' this way ! 😒

        TIG

        1 Reply Last reply Reply Quote 0
        • bagateloB Offline
          bagatelo
          last edited by

          Here you have my example file who works fine for Chamfer but not for fillet.
          Yes, I not use zero cm for chamfer or fillet.


          FILLET FAIL.skp

          While the cat's away, the mice will play

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

            Fillet success for me. Four times, four different radii.

            FILLET FAIL.png

            Hmmm.....

            Is it possible there's a conflict with another plugin? Perhaps one of those known to cause problems?


            FILLET FAIL.skp

            Etaoin Shrdlu

            %

            (THERE'S NO PLACE LIKE)

            G28 X0.0 Y0.0 Z0.0

            M30

            %

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

              Good point. ☀
              If you have SketchyPhysics loading disable it, restart and retry fillet...
              The current version of SP messes with some of the native API group manipulation tools [needed by this and many other tools to separate geometry during processing]... and thereby some legit scripts that are innocently expecting the API code to work as it should can fail***. I understand SP is undergoing a long overdue revamp and this issue WILL then hopefully be fixed...
              Other 'suspects' include DrivingDimensions, Matchbox, SunPosition, some versions of Podium etc...

              However since 'Chamfer' uses similar processes why is that working OK while 'Fillet' fails ??

              ***Do you get any Ruby Console error messages ?

              TIG

              1 Reply Last reply Reply Quote 0
              • bagateloB Offline
                bagatelo
                last edited by

                @dave r said:

                Fillet success for me. Four times, four different radii.
                Is it possible there's a conflict with another plugin? Perhaps one of those known to cause problems?

                Now works for me...
                I empty my plugins folder, and I left "2D tools" alone.

                Now I have to discover what is the plugin who make this problem.

                Thanks!

                While the cat's away, the mice will play

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

                  See my list - I suspect SP... 😒

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • bagateloB Offline
                    bagatelo
                    last edited by

                    @tig said:

                    See my list - I suspect SP... 😒

                    SketchyPhysics
                    That's the problem
                    Thanks...

                    While the cat's away, the mice will play

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

                      Here's v5.3 http://sketchucation.com/forums/viewtopic.php?p=185760#p185760
                      The 2dFillet Tool has been recoded to avoid a rare splat, reported the other day, which occurs if another script in loaded that uses an EntitiesObserver.

                      The new BuildingEdgePlan tools being the 'culprit' that has revealed this issue.
                      So any tool can innocently use the API's currently ill-mannered EntitiesObserver class [although even the API advises that a ToolsObserver would be preferable solution to avoid crashes, but then they assume crashes when certain operations occur within that class's methods, but this is not correct - crashes occur because the class is loaded, even if it has no active methods whatsoever...].
                      Its use can thereby cause another script to crash unexpectedly - when it is doing the most innocent unconnected thing, like a doing a group.erase! on a temporary group shortly after making and copying it [incidentally the 'avoidance fix' is to use group.entities.clear!, which then auto-erases that now empty group when the model.commit_operation closes the block of code - splat-free].

                      This tool is now fixed but if any other tools display unexpected Bugsplats then please contact their author through the tool's thread, with details of what happens, it might be that other tools innocently fall victim to this too...

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        Mental
                        last edited by

                        Great tool! Thanks TIG

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

                          Has anyone had trouble with this plugin on their Mac? All others I've tried have worked perfectly but this one does not show in the Tools menu. I don't get any error messages either. It's just not there. Works great on my PC at work. Any suggestions?

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

                            It works fine for me on my Mac. When plugins don't work it is nearly always either due to incorrect installation or lack of read and write permissions for the Plugins folder and the folders inside the Plugins folder. Make sure you have set all permissions for the Plugins folder to "Read and Write" and that you've actually got the files installed correctly. Post a screen shot of your Mac's Plugins folder if you still can't get it.

                            Etaoin Shrdlu

                            %

                            (THERE'S NO PLACE LIKE)

                            G28 X0.0 Y0.0 Z0.0

                            M30

                            %

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

                              What Dave said.

                              However, before you jump into checking permissions etc...
                              Does it have a '2D Toolbar' to be activated ?
                              If so the it has been successfully installed.
                              I note that you say that it does not appear in your 'Tools' menu.
                              This is understandable, because it actually appears in the 'Draw' menu, in a submenu called '2D Tools...' - as explained in the tool's notes.
                              Perhaps it's as simple as you needing to look in the right place... 😒

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • B Offline
                                baluman
                                last edited by

                                Hello!!

                                This seems like a great tool. However i was having difficulties to extrude / push the 2d area made by the plugin, is it my mistake or it is impossible??
                                Is there any wasy way to draw on a locked 2d plane and then be able to extrude this area??

                                Thanks in advance

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

                                  It could be any number of problems and most likely something you are doing. Without an example, it is difficult to say. If I had to guess, I'd say you didn't have any face to extrude. You could post the SKP file so we'd have some hope of helping you.

                                  Etaoin Shrdlu

                                  %

                                  (THERE'S NO PLACE LIKE)

                                  G28 X0.0 Y0.0 Z0.0

                                  M30

                                  %

                                  1 Reply Last reply Reply Quote 0
                                  • B Offline
                                    baluman
                                    last edited by

                                    Ok, i send you a blank file with different shapes made by the plugin in this link : https://dl.dropbox.com/u/82810005/2dlinesTest.skp
                                    When i select a shape (directly or selecting one line an then "select all conected") i am unable to push/ pull. Any help is greatly appreciated. My sketchup is v. 8.0.1515.

                                    @dave r said:

                                    It could be any number of problems and most likely something you are doing. Without an example, it is difficult to say. If I had to guess, I'd say you didn't have any face to extrude. You could post the SKP file so we'd have some hope of helping you.

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

                                      Push/Pull requires faces. You haven't made any. 😒 Drawing shapes with the 2D tools in empty space creates only the edges but no faces. If you want to draw shapes in empty space and get the faces, too, just use the native tools. Or, go back with the native Line tool and trace an edge of your shapes to get the faces to be created as I did in the attached.


                                      2dlinesTest.skp

                                      Etaoin Shrdlu

                                      %

                                      (THERE'S NO PLACE LIKE)

                                      G28 X0.0 Y0.0 Z0.0

                                      M30

                                      %

                                      1 Reply Last reply Reply Quote 0
                                      • MatteM Offline
                                        Matte
                                        last edited by

                                        Hi TIG,
                                        Thanks for an AWESOME tool! How would I go about taking an ACAD Patt file and make a JPEG out of it so I could add it to your (line image) folder with the useable JPEGS. I noticed there are 15-20 images that comes with your tool.....We have over 100 "pat" files I wold like to also use.
                                        Thanks,
                                        Matte

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

                                          @Matte
                                          There should be a subfolder of additional PATs too...
                                          You just need to make a jpg image.
                                          It needs to 'tile' - that is the images need to repeat when placed next to each other in X & Y.
                                          Use an existing PAT file for clues on size and 'tiling'... lines on the right side need to match up with lines on the left side, and lines on the top side need to marry up with lines on the bottom side...
                                          If you make some new ones, then please consider sharing them with everyone else... 😄

                                          TIG

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

                                            @topaz505 said:

                                            Tig, I have been trying, off and on, for several months to get the hang of applying Styles to Lines. I just don't get it !
                                            1st question: can you apply 2D Line Styles to native SU lines ?
                                            2nd question: I assume that if you set a 2D Line Style that the next (and subsequent) 2D Lines that you draw will be in this style ?
                                            3rd question: can you give the keystrokes to apply a new 2D Line Style to an existing line ?

                                            • ancilliary question: can you keep on changing the Style of a line ? (My experience suggests that you can only do this once - but that's probably me.)

                                            A request: would it be possible to create a version with fewer colours and widths ?
                                            My application is more engineering drawing than "art" drawing or architecture. I really need a few bold colours, continuous, dashed and dotted lines and a few thicknesses, (the colour menu especially is just bewildering).
                                            PS I have read the Help file and watched the Video - many times, but the plug-in's charms are avoiding me as yet, but I hope to get there.
                                            Thanks in advance.
                                            You pick/select any Sketchup 'Line' and 'Style' it - it replaces the Line with a colored face group, which is then editable later as it's recognized as a Styled-Line - the original line is kept and moved onto a hidden Layer - it can't be erased as it might be needed by a face.
                                            You assumption is wrong... all 2d-lines are just lines/edges like in SketchUp's native tools. You apply a Style to line AFTER they are created, once Styled they are editable [context-menu]...
                                            If you want to make a shortcut key that's straightforward... Use the Preferences shortcut key and navigate to the 2dtools submenu item...
                                            There are some tricks to using a long list...
                                            If you want to customize the color list then you must edit the code...
                                            I think this was already discussed for the 2dtext tool etc...
                                            http://sketchucation.com/forums/viewtopic.php?p=263662#p263662
                                            To make your own list of colors etc do something like this: use Notepad.exe to edit the file ../Plugins/2DTools/2DlinestyleTool.rb
                                            Assuming you are 'metric'... find the line #158 reading:
                                            widths=["1|2|4|5|8|10|20|25|30|40|50|60|70|75|80|90|100|125|150|175|200|250|300|400|450|500|600|700|750|800|900|1000|1200|1500|1800|2100|2400|2700|3000|3300|3600"]
                                            These are in 'mm', remove the ones you don't want within the " ". It must start and end with a number and each in the list is separated by a '|' symbol.
                                            So for a limited range of 1mm to 100mm you would use something like:
                                            widths=["1|2|5|10|25|50|75|100"]
                                            If you are expecting to work in 'inches' change line #156 instead.
                                            For the colors, find lines #163..#165.
                                            colors=[]; materials.each{|m|colors.push(m.display_name)} colors=colors+(Sketchup::Color.names.sort!) colors.uniq!; colors=colors.join("|")
                                            IF you just want a few colors you can leave the code above unchanged, BUT then add a line immediately afterwards saying this:
                                            colors=["Black|White|Red|Orange|Yellow|Green|Blue|Violet|Brown|Gray"]
                                            that will redefine the 'colors-list' just to those few [always include at least 'Black' to avoid it tripping up]...

                                            TIG

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 22
                                            • 23
                                            • 24
                                            • 25
                                            • 26
                                            • 39
                                            • 40
                                            • 24 / 40
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement