Suppress and Unsuppress a feature in a part model using API

Hi all,

I would like to suppress and unsuppress a feature in a solidworks part model using API. I am a newbee and using Visual basic.

I have modelled using the GUI. But for the user to enter the model details, I have created a simple VB form with drawings.

So I need to insert this suppress feature into the vb form.

Where do I find the code for this.

I went through the API help and found EditSuppress2.

But it requires the feature to be selected in the part model. Cant I control it from VB as I am sure on the feature that should be suppressed or unsuppressed.

I would like to know how to access a driven dimension from the part model into the VB program.

Eagerly awaiting for a help.

Thank you all in advance.

Ash

SolidworksApi macros