Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
xiaodong_liang
in reply to: meck

Hi Mike,  

 

The syntax of this method is

 

Feature.SetThread("featurename", "thread type", "thread designation", "thread class")

 

While it looks you specified the third argument as ‘Thread Type’?

 

In addition, you need to make sure the designation and class are valid with a thread type.  e.g. from Thread dialog, you can see the designation and class that are available with a type.

 

I simply tried with the code below, it works well.

 

currentType = Feature.ThreadType("Thread1")

MessageBox.Show(currentType, "Title")

Feature.SetThread("Thread1", "GB Metric profile", "M7x0.75", "6H")

 

 

 aa.jpg