How to Change Sketch Dimension (C#)

Hello, I have a template part set up. I want to be able to open the template part, change sketch dimensions and save as to create the various new parts from information in a text file. I'm having trouble setting the new dimensions. Does anyone know how to do the c# equivalent of this VBA code recorded in SolidWorks?

Dim myDimension As Object

Set myDimension = Part.Parameter("Offset@HoleSketch")

myDimension.SystemValue = 0.1016

SolidworksApi macros