1 Reply Latest reply on Jan 31, 2016 5:24 PM by Viktor Bovzdarenko

    How to Change Sketch Dimension (C#)

    Jason Taylor

      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