• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

[Plugin] 2D Tools

Scheduled Pinned Locked Moved Plugins
785 Posts 178 Posters 462.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.
  • T Offline
    TIG Moderator
    last edited by 25 Nov 2009, 16:43

    @juan974 said:

    hello tig,
    great plugin,

    • but line weight are locked in inch and i m drawing in millimeter, it s possible to have for example a 0.1 weight of the unit you use?
    • pattern works fine
    • drawing on selected plane could be fine too, on rotated plane, or select the plane with 3 points
      i m thinking to not renew my autocad lt licence.
      big thank you
      Juan974 (reunion island)

    I took the decision to set the line widths in fractions and multiples of an inch because lines only need 'relative' proportional thicknesses...
    After all 1/4"=~6mm 1/2"=~12mm 1"=~1", 2"=~50mm 4"=~100mm etc
    I originally had a set in mm to mimic the old 'Rotring' pens mm thickness 0.13,0.18,0.25,0.35,0.50,0.75,1.0,1.5,2.0,3.0,4.0,6.0,8.0 etc with x10 and x100 versions, but I eventually thought not to do it ...
    IF there is enough pressure to introduce a 'mm' version I can do it [with a bit of tweaking] - it's easy to find the model's units and set to " or mm...
    [Yo tomé la decisión de fijar el ancho de las líneas en las fracciones y múltiplos de las pulgadas ['inches'], porque sólo las líneas necesidad de espesores proporcional relativa ...
    Después de todo 1/4"=~6mm 1/2"=~12mm 1"=~1", 2"=~50mm 4"=~100mm, etc
    Originalmente tenía una serie en mm para imitar las viejas plumas 'Rotring' en 'mm' 0.13,0.18,0.25,0.35,0.50,0.75,1.0,1.5,2.0,3.0,4.0,6.0,8.0 etc con las versiones x10 y x100, pero finalmente he decidido no hacerlo...
    Si no hay suficiente presión para introducir una versión de 'mm' puedo hacerlo [con un poco de ajustar] - es fácil encontrar unidades del modelo y se puso a las pulgadas o 'mm'...]

    TIG

    1 Reply Last reply Reply Quote 0
    • P Offline
      Pixero
      last edited by 26 Nov 2009, 07:21

      Millimeters please. I have no idea on how inches and fractions and multiples work. Using that would be purge guess work for me.

      Heavy pressure here. 💚

      1 Reply Last reply Reply Quote 0
      • T Offline
        TIG Moderator
        last edited by 26 Nov 2009, 11:26

        Here's v4.3 http://forums.sketchucation.com/viewtopic.php?p=185760#p185760

        The 2D Line-Style Dialog now has Inch OR mm Widths displayed, depending on the Model's Units being Imperial or Metric. The Help htm files have also been updated to suit.

        TIG

        1 Reply Last reply Reply Quote 0
        • B Offline
          Bep
          last edited by 26 Nov 2009, 12:53

          Damm Tig your fast!!!! 👍 👍 👍

          Bep

          "History is written by the winners"

          1 Reply Last reply Reply Quote 0
          • J Offline
            juan974
            last edited by 26 Nov 2009, 18:52

            i try last version, for line weight i can t go under 1 mm because of the size of the screen, so i try whit the arrow key, same problem, i ll try on office tomorrow ...

            juan974 (Réunion island)
            website : http://sketchucation.com/click.php?url=http://www.tarn.us

            1 Reply Last reply Reply Quote 0
            • J Offline
              juan974
              last edited by 1 Dec 2009, 15:25

              hello,
              i can't go under 1 mm for line weight ...


              Clipboard02.jpg

              juan974 (Réunion island)
              website : http://sketchucation.com/click.php?url=http://www.tarn.us

              1 Reply Last reply Reply Quote 0
              • T Offline
                TIG Moderator
                last edited by 1 Dec 2009, 17:08

                Juan974

                You can't make a line under 1mm wide because that's the minimum size in metric that's set in the script !
                For imperial it's 0.05" == 1.27mm = even worse !!!

                A line 1mm wide doesn't display very well at most expected 'scalings' of the view anyway - that's why there are no narrower options... why'd want a line that's so thin it's barely visible as it's often < 1 pixel ?

                If you want thinner options then open and edit the 2DLineStyle.rb Ruby file in NotePad and find the two places where there a list of possible metric widths and add yours at the start - say 0.5... so
                ["1|2|4|5|8|10|20...
                becomes
                ["0.5|1|2|4|5|8|10|20...
                or whatever thinner line settings you want...
                From there on in you'll have lines that are so thin you won't be able see them ! ☀

                TIG

                1 Reply Last reply Reply Quote 0
                • B Offline
                  brookefox
                  last edited by 6 Dec 2009, 19:44

                  Since I haven't found a smarter way, I spent a long while tracing raster contours into a model and found the Z set and line tool to be good friends in that context.

                  Two items: 1. it would be nice to have a step-back, undo the last segment (only) that could be invoked without exiting the routine, and 2. that curious unwanted mini-segment that keeps inserting itself on occasion while drawing a series of connected 2d lines, perhaps that result of something I'm doing but such is not apparent.

                  ~ Brooke

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    TIG Moderator
                    last edited by 6 Dec 2009, 22:32

                    @brookefox said:

                    Since I haven't found a smarter way, I spent a long while tracing raster contours into a model and found the Z set and line tool to be good friends in that context.
                    Two items: 1. it would be nice to have a step-back, undo the last segment (only) that could be invoked without exiting the routine, and 2. that curious unwanted mini-segment that keeps inserting itself on occasion while drawing a series of connected 2d lines, perhaps that result of something I'm doing but such is not apparent.

                    No need for such manually intensive work?
                    A quick way to make one "contour line" is to make a very large flat rectangular face, much bigger than the terrain, and then group it.
                    Move it in the Z so it's at the right height for the contour - perhaps drawing some guide lines to help.
                    Now edit the face-group and select the face, right-click and choose 'Intersect with Model'.
                    The intersecting terrain will now make lines on the face.
                    You can edit the unneeded perimeter of the rectangle and any other faces.
                    Now you have a group containing the contour lines without having to draw any of it.
                    Explode the group to add the contour onto the terrain... BUT it might be best if it's kept separate...
                    It can be even easier - my ContourMaker.rb script does all of this automatically for you, making a set of contours at given heights above the Z=0... all collected inside one group: note that the terrain needs to be a group itself that is pre-selected, to do this...
                    I take it you are referring to the Freehand Tool in the glitch report - try the Line Tool [Polyline] instead...

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      brookefox
                      last edited by 6 Dec 2009, 23:34

                      I'm not sure why you couldn't make those suggestions before I revealed my ignorance.., but thanks very much for them. I'm going to have to do some of that job over just for the joy of feeling the depth of it.

                      Alas, I was going from an imported JPG with 2d contours and creating a 3d model (I need a vectorizer). I think your tips assumed I was wanting to generate 2d contours from a 3d model.

                      @unknownuser said:

                      I take it you are referring to the Freehand Tool in the glitch report - try the Line Tool [Polyline] instead...
                      I was not clear here either: I was using the 2d line tool (which is the pline tool?) as I assumed the freehand would be more memory hungry, esp when the contours being created were 'sandboxed.'

                      ~ Brooke

                      1 Reply Last reply Reply Quote 0
                      • I Offline
                        IAGDint
                        last edited by 14 Dec 2009, 17:31

                        THANKS!
                        Will try out this rb.

                        Merry Christmas to all!

                        1 Reply Last reply Reply Quote 0
                        • R Offline
                          rpaul
                          last edited by 16 Dec 2009, 05:19

                          I seem to be having a problem with the line style tool. If I draw 2d lines or a 2d circle and then try to apply a line style, I get some line artifacts that are part of the group. The style width was set to 5 in the attached jpg, but I get these artifacts with other settings as well. Any workaround to this issue? It is not a display issue as the extraneous line segments are real.2D_Lines.jpg

                          1 Reply Last reply Reply Quote 0
                          • M Offline
                            madhav
                            last edited by 16 Dec 2009, 06:43

                            Thank you very much. Will be handy for quick details inside sketchup.

                            1 Reply Last reply Reply Quote 0
                            • T Offline
                              TIG Moderator
                              last edited by 16 Dec 2009, 09:11

                              @rpaul said:

                              I seem to be having a problem with the line style tool. If I draw 2d lines or a 2d circle and then try to apply a line style, I get some line artifacts that are part of the group. The style width was set to 5 in the attached jpg, but I get these artifacts with other settings as well. Any workaround to this issue? It is not a display issue as the extraneous line segments are real.
                              This is the first report of this. I cannot reproduce it. Please give details of your setup e.g. PC, Vista, version of SUp etc... If possible can you send me a problem skp [by PM] so I can see if it's reproducible and work out what to do to stop it...

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • A Offline
                                amo
                                last edited by 22 Dec 2009, 18:28

                                I have made a hatch using the PATT_AR-BRSTD file. I named it PATT_AR-HRDWD, I modified the file in Photoshop and saved it. When I use it to hatch a face it looks to be compressed to the size of the PATT_AR-BRSTD. I have the new PATT_AR-HRDWD file attached. I would like to use this as a hatch since it is a wood floor hatch. Any help on why it is compressed in size when used in Sketchup would be greatly appreciated.


                                PATT_AR-HRDWD.jpg

                                1 Reply Last reply Reply Quote 0
                                • T Offline
                                  TIG Moderator
                                  last edited by 22 Dec 2009, 18:42

                                  @amo said:

                                  I have made a hatch using the PATT_AR-BRSTD file. I named it PATT_AR-HRDWD, I modified the file in Photoshop and saved it. When I use it to hatch a face it looks to be compressed to the size of the PATT_AR-BRSTD. I have the new PATT_AR-HRDWD file attached. I would like to use this as a hatch since it is a wood floor hatch. Any help on why it is compressed in size when used in Sketchup would be greatly appreciated.

                                  The imported pattern is 'square'.
                                  Use your image editor and copy the pattern till it's ~square... then it should 'tile' OK 💭
                                  Keep the pixel size ~ the same and 'square'...

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • OxerO Offline
                                    Oxer
                                    last edited by 23 Dec 2009, 14:46

                                    Hello!!
                                    The first Thanks! for your marvellous plugin. I'm spanish user of SU, i have seen that the last version include spanish translation, my problem is that if i push on the help icon into SU, no it appears the help, i don't know why, i work in Mac, in the 2Dtools folder there is a file with this name "~$toolsHelp.htm" its contents is: "TIGTIG The Grants$(^±¤ï˜|ì*,%"
                                    Can be the problem this? is a problem in the characters codification in Mac?
                                    Waiting your answer, advanced Thanks!!

                                    "The result is the end what is important is the process" by Oxer
                                    [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      TIG Moderator
                                      last edited by 23 Dec 2009, 15:23

                                      @oxer said:

                                      Hello!!
                                      The first Thanks! for your marvelous plugin. I'm Spanish user of SUp, i have seen that the last version include Spanish translation, my problem is that if i push on the help icon into SUp, no it appears the help, i don't know why, i work in Mac, in the 2Dtools folder there is a file with this name "~$toolsHelp.htm" its contents is: "TIGTIG The Grants$(^±¤ï˜|ì*,%"
                                      Can be the problem this? is a problem in the characters codification in Mac?
                                      Waiting your answer, advanced Thanks!!

                                      Somehow a 'rogue' htm temporary file has got left in the zip file [unnoticed] - however, it's not needed at all and its existence shouldn't cause a problem. There should also be a file called 2DToolsHelpES.htm and a matching folder of images etc, this is the Spanish help file that should load for you on clicking the help-button or picking the equivalent menu item. I've reattached it all of them in a zip file, to see if it helps.
                                      Put everything [htm and folder] into the ../Plugins/2DTools/ folder
                                      Can you open the Spanish htm file 'manually' - double-click on it - when outside of SketchUp ?
                                      If you cannot then there is something that is not working properly in the 'help' file lookup.
                                      Can you also copy/paste this line of text into the Ruby Console and report back what the result is...
                                      Sketchup.get_locale.upcase
                                      It will be fixable...

                                      De alguna manera un fichero 'truhán' temporal del htm se ha ido en el archivo 'zip' [inadvertido] - sin embargo, no es necesario en absoluto, y su existencia no debe causar ningún problema. También debería existir un archivo llamado 2DToolsHelpES.htm y una carpeta de la adecuación a las imágenes, etc, este es el archivo de la ayuda española que debe cargar para que al presionar el botón de ayuda o de recoger el elemento de menú equivalente. He de volver a colocar todo en un archivo zip, para ver si ayuda.
                                      Ponga todo [htm y carpeta] en el carpeta ../Plugins/2DTools/
                                      Si no puede entonces hay algo que no funciona correctamente en la 'ayuda' de búsqueda de archivos.
                                      ¿Puede también copiar/pegar esta línea de texto en la Consola de Ruby e informar de lo que el resultado es ?...
                                      Sketchup.get_locale.upcase
                                      Se puede arreglar...

                                      PutInto2DToolsFolder.zip

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • R Offline
                                        romain210
                                        last edited by 31 Dec 2009, 15:27

                                        thanks!

                                        1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          TIG Moderator
                                          last edited by 2 Feb 2010, 10:31

                                          Here's v4.4 http://forums.sketchucation.com/viewtopic.php?p=185760#p185760
                                          Main change = LineStyle Tool, rare glitch, some dot patterns with 'spare' dot trapped:
                                          also a glitch in Edit fixed [inch v. mm].
                                          Some potential errors trapped in VCB input for some tools - these were so rare it was never reported.
                                          🤓

                                          TIG

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 8
                                          • 9
                                          • 10
                                          • 11
                                          • 12
                                          • 39
                                          • 40
                                          • 10 / 40
                                          • First post
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement