Jump to content

Chamfering Multiple Polyline Segments


Recommended Posts

Posted

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

Posted

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 :D

Joined.jpg

Posted

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.
Posted

No need for LISP Eldon, Quick Select or filter will do the trick.

Posted

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

Posted

To give rounded corners, make the width of the Polyline zero, and make the Lineweight to be 2

Posted
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! :)

Posted

You can do it semi-automatically with APlus plugin (which you can download forum http://www.cadaplus.com

 

Here's how it works:

 

forum_sellen_jj.gif

 

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:

 

forum_chapl.gif

 

or FILLET polyline with FPL command:

 

forum_fpl.gif

 

Hope that helps!

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...