get dimension value knowing the dimension name

hi guys,

How do i get the dimension value that i need for some calculation in VB macro that i have already written.

I have a helical curve.

The circle for the helical curve is created using reference with a line previously created and I control the line.

So the circle diameter changes for different models.

To provide the pitch of the helical curve, I need the circle diameter.

Now how do I get this particular value.

I saw getsystemvalue3. (Gets the value of the current dimension in system units in the named  configuration)

Dim instance As IDimensionDim WhichConfigurations As IntegerDim Config_names As ObjectDim value As Objectvalue = instance.GetSystemValue3(WhichConfigurations, Config_names)

Can I use this or do i need something else.
If i need to use getsystemvalue3, how do i change this for my use.
Dim ????????? as idimension
dim ????????? as integer
dim ????????? as Object
Dim circledia as object

value=??????.
GetSystemValue3(????????? , ????????? )

Now where do I give the name of the dimension...

I think now i am atleast in a position to search for some code..thanks to deepak and wayne...

Cheers

Ashwin
SolidworksApi macros