Change cosmetic thread size via API?

Hi there,

I've got a single part model that is driven by the API and 'm trying to find out how to change cosmetic thread sizes.

What I'm trying to do is this (this is a simplified version of events)

The VBA prompts the user to enter size(s)

It then opens an existing file

It modifies the dimensions according to the users input

It then saves the part under a different name

One of the features is a simple revolved cylinder which has a cosmetic thread applied. I can drive the diameter and length of the cylinder easily but can't find a way to update the thread.

For example, if my original model has a 16mm diameter cylinder with M16 cosmetic thread, I can change the cylinder diameter to 27mm but the cosmetic en inspected is still M16.

I've searched on the web and can't find any reference that is useful. Can anyone shed any light on this?

Thanks

Rory

SolidworksApi macros