Hi everyone
Today, I like to share a script that will help you make simple edge flanges.

I've borrowed the base of the script from one of Michael Gibson's scripts named "RotateAndExtrudeFace2". Thanks Michael for all your helps :)
https://moi3d.com/forum/lmessages.php?webtag=MOI&msg=8126.38
You can get two types of edge bend: rounded and segmented.
By default bending radius will be equal to 1/2 of the edge thickness, But, It is possible to change the radius manually.
You can use these shortcut keys while script is running.
Press 'f' to Flip flange direction
Press 's' to toggle Segmented flange
Also, It is possible to run the script with different parameters.
examples:
edgeFlange 5 true false 4 Auto 1 false false /* Rounded edge flange with 5 degree angle constraint and auto radius*/
edgeFlange 5 true true 4 Manual 0.6 false false /* Segmented edge flange */
edgeFlange 5 true true 1 Manual 0.51 false true /* 1 segment flange without extrude */
Command parameters:
Param 0: Angle Constraint ( number )
Param 1: Disable Objects Snaps ( boolean )
Param 2: Segmented ( boolean )
Param 3: Segments ( number ) // Only takes effect if Segmented set to true
Param 4: Radius Type ( Auto - Manual )
Param 5: Inner Bending Radius ( number ) // Only takes effect if radius type set to Manual
Param 6: Keep Rail ( boolean )
Param 7: Disable Extrude ( boolean )