Related to this topic, I tried to insert a set of attributes as feature reference expression. With the code you provided, I was only able to insert one expression. Assuming, there is also an attribute3, how can I produce a model like this:
You proceed much the same way, except instead of starting with a FeatureReferenceExpression you start with an OperatorExpression with the operator set to Comma.
Say attribute_1, attribute_2, and attribute_3 are analogous to @Martynas_Strazdas 's example, meaning we basically start with
Then to set attribute_2 = (attribute_1, attribute_2) you do
# attribute_1 = ... get the attribute element ...
# attribute_2 = ... get the attribute element ...
# attribute_3 = ... get the attribute element ...
# Proceed as before, but create an appropriate OperatorExpression
feature_expr = attribute_2.feature_value_member
_, member_element = feature_expr.set_member_element(
syside.OperatorExpression
)
member_element.operator = syside.ExplicitOperator.Comma