Face seal on a cylindrical surface.
Got it. I'm doing something similar at this time.
My case is easier, since the face is spherical, resulting in a planar O-ring groove.
Is your part molded or machined? A machined part will probably be easier, since you won't need to incorporate draft.
For a machined part, I would try wrapping a curve for the groove centerline or edge. Then use the wrapped curve as a guide for a sweep cut. The section for the sweep should be on a datum plane made especially for the purpose using
normal to curve, constrained normal to the guide. The section sketch should be constrained w.r.t. the guide curve with a
pierce constraint.
For a molded part, start like one would for a machined part, then add features to provide draft as needed. there is a way to do this with a single sweep, but it is too much to explain here.
I could be the world's greatest underachiever, if I could just learn to apply myself.
-SolidWorks API VB programming help