mprathap Posted January 1, 2009 Posted January 1, 2009 Hello All, Please take a look at the attachment where I have a drawing that has several polyline segments. I want to join them together to form one big polyline, which I can do using the JOIN command. But I also want to chamfer off the joined segments at the corners to form triangle like structures. (I have done this for a few segments in the left most corner of the drawing to illustrate my requirement) I can do it one by one using the CHAMFER command. My question is, is there a way to do it in one go? i.e. join them while chamfering them at the edges. I have several line segments and everytime I generate this drawing from another software, i do not want to do it manually since it will take a lot of time to do it. Thanks a lot. Prathap to_join.dxf Quote
eldon Posted January 1, 2009 Posted January 1, 2009 You should be able to have nice corners just by joining all segments with a polyline. There is no need to chamfer or fillet. Something is going on and upon inspection, as well as the line segments, there are also polylines of zero length at each corner (they must have been created by the other software). If you now use PEDIT, and instead of using a window selection (which would include the corner dots) pick each line segment, then the resulting polyline has nice corners. What you need is some function (or lisp) which can select and delete zero length polylines, then your troubles are over Quote
totzky Posted January 1, 2009 Posted January 1, 2009 Originally posted by Eldon Something is going on and upon inspection, as well as the line segments, there are also polylines of zero length at each corner (they must have been created by the other software).Before joining the lines get rid of those "zero length polylines" by quick selecting lines of zero lengths and erasing them. Quote
totzky Posted January 1, 2009 Posted January 1, 2009 No need for LISP Eldon, Quick Select or filter will do the trick. Quote
mprathap Posted January 1, 2009 Author Posted January 1, 2009 The Matlab script I was using to generate the DXF file had a small error and that was creating 2 entries for each point and it showed up as a point in the DXF file. I fixed the problem and it works like magic. Thanks a lot for your help guys. I really appreciate it. BTW, if I want to have rounded edges rather than sharp ones when I join them, what should I do? Prathap Quote
eldon Posted January 1, 2009 Posted January 1, 2009 To give rounded corners, make the width of the Polyline zero, and make the Lineweight to be 2 Quote
Tankman Posted January 1, 2009 Posted January 1, 2009 Hello All, Please take a look at the attachment where I have a drawing that has several polyline segments. Prathap Nice exercise. Following advice below, worked great. Thanks again to the smarter forum members! Welcome to the forums and, have a Happy New Year! Quote
Belianis Posted January 3, 2009 Posted January 3, 2009 You can do it semi-automatically with APlus plugin (which you can download forum http://www.cadaplus.com Here's how it works: Instructions: 1. You can select objects of specified length (zero-length for example) with SELLEN command. Just select object (or objects) of length you wish to select, press Space bar/Enter button to confirm and then specify search area. Objects of specified length will be selected. You may ERASE them (just as I did in example above... however some of nearly zero-lenght lines at right side of a picture were not selected, propably because they have different length) 2. To join objects into polyline use JJ command. Alternatively you may use WELDD command to weld objects into polyline which aren't actually sharing end points (you will be asked for distance to search for possible connections) You may also chamfer polyline with CHAPL command: or FILLET polyline with FPL command: Hope that helps! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.