I'm modeling a parametric gear tooth as a sketch (pic below). Currently, I'm driving the design from "global variables" but would prefer a solution where the driving data (number of teeth and module) are embedded within the sketch. This would then allow me to make copies of the sketch for different use cases, without needing to think of global overlaps.

Is this possible, within SolidWorks 2018?

I can provide dimensions for entities and derive others from them, but in this case the values are rather non-dimensional (well, module is dimensional but number of teeth isn't). Ideally, I'd like to have an "input field" something like shown here:

Any suggestions for locally driving design parameters are welcome. I'm still learning the possibilities of SolidWorks and want to learn the right work patterns from the beginning.

I think my question was a bit premature.

The "Equations" part of Equations manager has the formulas used in a sketch. Within the sketch (when you carefully exit Smart Dimension, and then click on a dimension), you get "Edit Equation...". It's worth noting the sigmas in front of your dimensions, telling they are derived from an equation.

Within the equations editor, I can also make equations within the sketch derive from each other (I think... yes, I can ).

Furthermore, I think my original thinking of even needing "local variables" was misguided. If I need a tooth, it needs to fit another tooth. Thus, these design inputs really come from a larger context than that of a sketch.

From my side, problem solved. Keeping the entry here in the hope that it helps someone find the way the tools' intended to be used.