Is there a way to modify the depth of a cosmetic thread which was created by the hole wizard? Currently i tried this way: (Code from C#, but doesn't work also not in a similiar way under vba)
Feature hlwzrd = (Feature)swSelMgr.GetSelectedObject6(1, -1);
WizardHoleFeatureData2 FeatureData = hlwzrd.GetDefinition();
FeatureData.AccessSelections(modelDoc, null);
FeatureData.ThreadDepth = value / 1000;
boolResult = swFeat.ModifyDefinition(FeatureData, modelDoc, null);
FeatureData.ReleaseSelectionAccess();
I end always with boolResult = FALSE. Every other step works. (GetDefinition, modifying featureDate)
Thanks
SolidworksApi macros