Message 1 of 5

Not applicable
04-29-2015
03:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,everyone
I have parameter A, parameter B, and Parameter C of a element
first I need to set parameter A or B to value (Yes) or (No) as it needs.
and use the new parameter value to do the following if statements to set Parameter C.
But somehow I can never obtain the updated parameter.
If parameter A value was set to "No" when I select the element. The value will states the same even after I set to "Yes" and get the parameter again.
Is there anyway to update the parameter value of and selected element within the code?
Thanks
Parameter pA = e.get_Parameter("A");
Parameter pB = e.get_Parameter("B");
Parameter pC = e.get_Parameter("C");
pA.Set(0);
pb.Set(0);
Parameter npA = e.get_Parameter("A");
Parameter npB = e.get_Parameter("A");
string ParaA = npA.AsValueString();
If(npA == "Yes" || npB == " Yes")
{
ParaC.Set(1);
}
If(npA == "No" && npB == " No")
{
pC.Set(0);
}
Solved! Go to Solution.