Can i convert rebar constraints from host face to rebar cover by Revit API?

Hi every one
I need to set rebar constraints to rebar cover like below picture by Revit API.

Thank a lot.