Page 1 of 1

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

Posted: Sun Oct 27, 2024 9:08 pm
by loeb
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

Code: Select all

swWizHole.CosmeticThreadType = swCosmeticThreadWithoutCallout
to disable the "With thread callout" check box

I would expect a statement like

Code: Select all

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?



.

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

Posted: Wed Oct 30, 2024 9:36 am
by RonE
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/englis ... class.html

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

Posted: Thu Oct 31, 2024 10:51 am
by retonny77
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

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

Posted: Thu Nov 07, 2024 8:26 am
by loeb
retonny77 wrote: Thu Oct 31, 2024 10:51 am 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

Code: Select all

swWizHole.ThreadClass = "2B" 'Note that this doesn't seem to enable the "Thread class" check box.
Are you getting different results?