sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Convert dashed lines to regular lines

    Scheduled Pinned Locked Moved Developers' Forum
    12 Posts 3 Posters 1.4k Views 3 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.
    • K Offline
      Kenny
      last edited by

      I know there is a dashed lines script to convert regular lines to dashed lines, but is there anything that does the opposite, i.e. convert dashed lines to regular lines?

      I have a large site plan where I've imported the survey which defines the edge of the site with a dashed fence line. I'd like to avoid laboriously joining each line together piece by piece and instead be able to automatically extend each line so it joins to the next, with the ultimate aim of having an ubroken edge to the site so I can fill the face denoting the site area. If there isn't a script then how easy would it be to write one?

      Kenny

      http://www.townscapesolutions.co.uk/

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

        Perhaps the Rick W's ExtendCLosestLines will do what you want.

        Etaoin Shrdlu

        %

        (THERE'S NO PLACE LIKE)

        G28 X0.0 Y0.0 Z0.0

        M30

        %

        1 Reply Last reply Reply Quote 0
        • T Offline
          todd burch
          last edited by

          Kenny, you can SHOW HIDDEN GEOMETRY, select the whole fence line and UNHIDE the hidden portions. Then, you can use repair_broken_lines.rb to join it all back together.

          Todd

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

            Thanks for the ideas but I've tried both scripts and neither works. Attached is an extract of the dashed line I'm talking about.

            Kenny


            dashed line example.skp

            http://www.townscapesolutions.co.uk/

            1 Reply Last reply Reply Quote 0
            • T Offline
              todd burch
              last edited by

              Oh, it's a dashed line not made by the DashedLines script. In that case, running CloseOpens is what you want. You'll get one extraneous line at the end, but otherwise, you'll be good to go.

              Todd


              dashed%20line%20example.skp

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

                Thanks for the reply Todd. I don't know what I'm doing wrong but when I run CloseOpens only one or two lines join, the majority refuse to join together. I've tried it with and without the option of saving. I also have 'progress bar' installed and it doesn't show either.

                Kenny

                http://www.townscapesolutions.co.uk/

                1 Reply Last reply Reply Quote 0
                • T Offline
                  todd burch
                  last edited by

                  I suspect your dashed line is part of a larger model. In that case, are you only selecting those lines which make up the dashed lines or are you running it against your whole model? Can you send me the model?

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

                    Todd, Yes it is part of a larger model but I'm not sure what difference that would make. I've tried running the script on all the dashed lines in the whole model but still no success.

                    I've attached the model here. One file is my working model, the other is the original survey. You'll see the original survey has the dashed line as a block. Before importing it into my working file I saved it as a 2D DWG to ensure it was flattened. I also deleted the small lines running at right angles between the dashes.

                    Thanks

                    Kenny


                    Dashed line models.zip

                    http://www.townscapesolutions.co.uk/

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      todd burch
                      last edited by

                      Seems to work perfect for me. Can you do a short "tutorial", showing (with still captures and naratives) the steps you are taking?

                      Todd

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

                        Thanks for your patience on this Todd. On closer examination, when I run it, it will join 2 lines together, but only 2 whether I select 2 lines or 200. My steps are as follows:

                        1. Select all the required lines
                        2. Go to plug ins and select Close Opens
                        3. Answer yes or no to saving it (makes no difference)
                        4. Click Ok

                        It will then join 2 dashed lines only and that's it. I've also tried it on my laptop with the same result. I've also attached screen captures of the above steps

                        Kenny


                        Close Opens Screen capture.zip

                        http://www.townscapesolutions.co.uk/

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          todd burch
                          last edited by

                          Wow. Can you capture the summary dialog box that tells how many lines were drawn?

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            todd burch
                            last edited by

                            I just imported the .dwg file. The "dasd lines" are coming in as components. Try this - select everything, right click, and Explode. Then, try close opens as you did before.

                            Todd

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

                            Advertisement