Element.GetParameterValueByName and Element.Parameters outputs? :-S


#1

Hi,
Can anyone tell me why I get two different results from Elemment.Parameters (Workset : Workset1) and Element.GetParameterValue (Workset : 0) ? :-S Is it a bug or am I missing something?


#2

The difference between Element.Parameters and Element.GetParameterByName is that the latter get the parameter value as number, text,element etc. and the first is using AsValueString() to get a readable value.

0 is perhaps the WorksetId of Workset1.


#3

Thanks! First time I run into this problem.

elements = UnwrapElement(IN[0])
parameter = IN[1]
OUT = [elm.LookupParameter(parameter).AsValueString() for elm in elements]