[Search tip detail and code files using keywords, tip number, author name, etc ]
 
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Delete Duplicate Vertices in a Polyline
Tip# 3190 By Douglas Lerner On 26-Apr-2009
0
Rated By 0 users Downloaded : 1022
Categories : Polylines
Software type : AutoCAD 2009
Rename File To : DelDupVertex.fas,__MACOSX/,__MACOSX/._DelDupVertex.fas
Douglas Lerner sent us this routine that will help you edit polyline vertices.

"DelDupVertex.fas deletes duplicate polyline vertices. It is intended to eliminate vertices that are so close they are indistinguishable. But tolerance setting can be any value and even visibly distinct vertices can be eliminated. Only new style, "lightweight" polylines are supported, not old style polylines.

Notes from Cadalyst Tip Patrol: Polylines are very useful objects. Sometimes vertices can get a little crazy for one reason or another. This routine will delete vertices whose distance falls inside the tolerance you provide. The default tolerance is so small that it will delete vertices that are on top of each other or very close. If you want to get rid of vertices that are five units apart, set the tolerance to 5. The routine will delete one of the two vertices. This is a nice routine if you are trying to hatch a closed polyline, but can’t because vertices are on top of each other and you can’t figure out where they are. This routine could help.

 

Average Rating:
0


User comments


Log In