How to enable "Thread class" in Hole Wizard Property Manager

I am trying to edit the definition of an existing hole wizard hole. I can figure out how to change all the settings in the following image, except I can’t figure out how to enable/disable the check box before “Thread class”
image.png
For example, I use the statement

swWizHole.CosmeticThreadType = swCosmeticThreadWithoutCallout

to disable the “With thread callout” check box

I would expect a statement like

swWizHole.ThreadClass = true

would check the “Thread class” box, but it doesn’t (I just made up that property)

Any ideas how I can enable the “Thread class” check box?



.

ThreadClass Property (IWizardHoleFeatureData2) requires a string value:
One of the following thread classes:
1B
2B
3B
This property is relevant only for the ANSI inch standard.
see https://help.solidworks.com/2024/english/api/sldworksapi/solidworks.interop.sldworks~solidworks.interop.sldworks.iwizardholefeaturedata2~threadclass.html

I totally understand your frustration. To enable the “Thread class” checkbox in the Hole Wizard Property Manager, you might want to try using the swWizHole.ThreadClass property

Thanks, retonny77. Here’s a snip of my code

swWizHole.ThreadClass = "2B" 'Note that this doesn't seem to enable the "Thread class" check box.

Are you getting different results?

I still have not been able to make this work (2023 SP5). Hoping someone else knows something I don’t. Thanks.