Creating custom dynamic shapes like pie?

There is an existing stencil that draws a pie with dynamic shape. Can someone suggest how I could make something like this but for an angle? IE, I just want an arc of custom angle, rather than pie