cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to add threading to a hole using toolkit?

Highlighted
Level 1

How to add threading to a hole using toolkit?

Hi All:

I have created hole with a counterbore and a countersink. Now I want to add threading to it. I will have to use these two API's (as they are mandatory).  PRO_E_HLE_THREADSERIES and  PRO_E_HLE_SCREWSIZE are both of the type PRO_VALUE_TYPE_INT. But the problem is there are no enumerated values given. I am finding it little difficult on how to use these API's. I have tried using


PRO_E_HLE_THREADSERIES = ISO.

This gives the error of undeclared identifier.

thread.png

thread3.png

thread4.png

Can anyone help?

Regards

Prem

4 REPLIES 4

Re: How to add threading to a hole using toolkit?

hole_api.png

HIH.

Feliks.

Re: How to add threading to a hole using toolkit?

Hi Reliks: Thanks for replying. I will check it.

Re: How to add threading to a hole using toolkit?

Hi

it seems that the above mentioned APIs are not helpful in setting up threadseries and screwsize. They are only used only to update the incumbent value. But to set Threadseries as ISO and Screwsize as any particular size (eg M25x1.5) this is not helpful. I hope PTC takes the note of it.

Thanks

Prem

Re: How to add threading to a hole using toolkit?

Hi all,

Prem - please take a look at the attached video clip:

Microsoft OneDrive - Access files anywhere. Create docs with free Office Online.

this should clear up the issue. You have to build a

valid element tree with valid thread series and screw size  elements set to 0 or whatever valid values you choose before using functions in question...

HIH.

Feliks.