I have a cut extrude feature that cuts bodies generated by a linear pattern, I can change the dimensions in the sketch used in the cut extrude feature but cannot change the bodies to cut in the cut extrude feature that the sketch cuts. I think I should use "ModifyDefinition" but am not sure how to use it. I thought modifying an existing feature would be easy to do!
This is the code as far as I got, most of this is a recorded macro.
Any well documented code would be greatly appreciated.
Set swApp = Application.SldWorks Set swModel = swApp.ActiveDoc 'Set Part = swApp.ActiveDoc
'Change Cut Length Dimension Dim CutLength As Double CutLength = 70 Set swDim = swModel.Parameter("D2@FingerCut(Sketch)") swDim.ISetUserValueIn3 swModel, CutLength, swThisConfiguration