Hi @dale,
I am running into the same issue in other parts of my code.
I interpret this line:
if scriptcontext.doc.Objects.ModifyAttributes(id, source_attr, True):
in the definition of rs.MatchObjectAttributes() in object.py as if the objects’ Attributes should be modified, rather than returning a new reference. Also the documentation doesn’t mention that another reference is created.
I have a workaround now, but I still think rs.MatchObjectAttributes() shows unintended behavior. Could you have another look at it? I have another isolated example that demonstrates the unintended behavior if that helps.
Thanks,
Tim