Generate Polyline with all corners as arc with specific radius

Generate Polyline with all corners as arc with specific radius

vkpunique
Advocate Advocate
1,221 Views
2 Replies
Message 1 of 3

Generate Polyline with all corners as arc with specific radius

vkpunique
Advocate
Advocate

i am writing code to generate 2d reinforcement drawing. so i need rounded corner for all of polylines used for reinforcement. 

Is there any generic code which allows me to generate polyline with rounded corner using fix radius. this is similar to drawing polyline and then applying fillet to all corners manually. 

 

0 Likes
1,222 Views
2 Replies
Replies (2)
Message 2 of 3

vkpunique
Advocate
Advocate

found 1 extension method for this, tested it and it's working so far. 

Solved: How to apply fillet to lwpolyline with C#? - Autodesk Community - AutoCAD

 

If anyone have any other solution, please let me know.

0 Likes
Message 3 of 3

_gile
Consultant
Consultant

Hi,

 

The Polyline.FilletAll method is part of GeometryExtension library.

 

Another way could be using the Editor.Command method.

ed.Command("_.fillet", "_polyline", "_radius", radius, plineId);

 



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes