public const double?
Thanks! But I don't see how that will help me
can you share your code?
you need to change global variable programmaticaly from Line1@Assem1.Assembly to a new string?
Not sure if this will work for you.
1. you have to create Global Variable and set the default value VAR1="Line1@Assem1.Assembly"
2. I assume this equation index will be 0 (zero), otherwise you`ll have to determine index using swEqnMgr.GetCount
3. I use Functions to perform that action:
Private Function PushValue(ByVal var As String, ByVal ind As Integer, ByVal newVar as String) As Boolean
Dim swEqnMgr = swPart.GetEquationMgr
swEqnMgr.Equation(ind) = "" & var & "=" & newVar
4. So the call that changes Global Variable will look like:
PushValue("VAR1", 0, "Line2@Assem2.Assembly")
Hope this helps.
Thanks for answer!
No but basicly i wanna set the value to the equation(Gvar "Line1") and not as normally just a double.
For example i wanna set myDimension = Line1@Assem1.Assembly
There is no functions that i can find that support this and im not sure how i should do it
Dimension myDimension = default(Dimension);
myDimension = (Dimension)swModel.Parameter("D1@Sketch1@" + strComponentName);
myDimension.SystemValue = 33231.432;
myDimension.XXXXX = "= Line1@Assem1.Assembly";
I just want to put the D1 to relation with the GlobalVar Line1