Hello support & dev teams,

I'm creating a simple PythonPart that also needs to have the 'Standard' attributes such as:

  • 'Trade' (Attribute Nr. 209)
  • 'Calculation mode' (Attribute Nr. 120)
  • 'Quantity' (Attribute Nr. 201)

I can set the desired value to the 'Quantity' of the pythonpart through the node 'SetValueToAttribute' but...

Q1:
When I use the node 'SetValueToAttribute' to set the value of 'Trade' or 'Calculation mode' I see the following error message in the Trace window:

SetValueToAttribute: Parameter data type is different to the existing data type.

This makes sense since the data type which I can see in the Attribute Manager for these attributes is set to 'Enumeration'.
But is there any way around this such as converting an Int to another data type?

Q2:
Given that I use the English name of the attribute in the SetValueToAttribute-node, this also means that it can only be used while the language is set to English. Is there a way to set the attributes by their attribute number instead of attribute name?

Many thanks in advance!

Steven Maijinckx