Convert dashed lines to regular lines
-
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
-
Perhaps the Rick W's ExtendCLosestLines will do what you want.
-
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
-
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
-
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
-
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
-
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?
-
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
-
Seems to work perfect for me. Can you do a short "tutorial", showing (with still captures and naratives) the steps you are taking?
Todd
-
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:
- Select all the required lines
- Go to plug ins and select Close Opens
- Answer yes or no to saving it (makes no difference)
- 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
-
Wow. Can you capture the summary dialog box that tells how many lines were drawn?
-
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
Advertisement