ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
DBDave Branco03/03/2015

I am trying to create a macro that will change the selected holewizard feature to the "remove thread" option (as opposed to cosmetic thread or tap drill diameter).  Here is some pseudo code I have that I can use to change other aspects of the holewizard feature

Dim mywizholefeatdata As WizardHoleFeatureData2

Dim swfeat As Feature

Set mywizholefeatdata= swfeat.GetDefinition

mywizholefeatdata.CosmeticThreadType = swCosmeticThreadNone

boolstatus = swfeat.ModifyDefinition(mywizholefeatdata, swModel, Nothing)

But I cannot figure out how to change the type to be "Remove Threads".

A side note:

mywizholefeadata.Type=swTapBlindRemoveThread   - also did not work.

Thanks