Set dimension to global variable C#

Hello!

Dimension myDimension = default(Dimension);

myDimension = (Dimension)swModel.Parameter("D1@Sketch1@" + strComponentName);

myDimension.SystemValue = 0;

I want to link the value to a global variable as you normaly do in solidworks "="Line1@Assem1.Assembly".

not retrieving the value from the global variable, then if i change the model i must change the value by code again.

Anyone could help me? would really appreciate it!

I might not need help with the code, just an explination how to do it

Best regards

Daniel

SolidworksApi macros