The "MS:FLANGE" command allows you to draw flanges (also in this case the definition is reductive because the primitive can also be assimilated to a pulley).

The rotation angle is defined by the current work plane on which we are drawing.