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

Programming and macros
User avatar
loeb
Posts: 70
Joined: Sun Jan 16, 2022 5:55 pm
Answers: 1
x 39
x 10

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

Unread post 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?



.
Attachments
image.png
User avatar
RonE
Posts: 32
Joined: Wed Nov 17, 2021 10:02 am
Answers: 4
Location: Germany
x 18
x 33

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

Unread post 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
retonny77
Posts: 19
Joined: Fri Sep 20, 2024 5:34 am
Answers: 0
x 1
x 6

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

Unread post 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
User avatar
loeb
Posts: 70
Joined: Sun Jan 16, 2022 5:55 pm
Answers: 1
x 39
x 10

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

Unread post 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?
User avatar
loeb
Posts: 70
Joined: Sun Jan 16, 2022 5:55 pm
Answers: 1
x 39
x 10

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

Unread post by loeb »

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