AnsweredAssumed Answered

How to Change Sketch Dimension (C#)

Question asked by Jason Taylor on Jan 31, 2016
Latest reply on Jan 31, 2016 by Viktor Bovzdarenko

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

Outcomes