FamilyInstance.ByCoordinateSystem only works after running 3 times

not sure if its a bug or if I’m doing something wrong. But when I run my script to place instances on coordinate systems. The first time I run the script it places the instances slightly off.
Disconnecting a node places them where they should be (without that node connected) and reconnecting the node places them at the right spot.



Is there anyone who could help me understand this. Or maybe help me with a work arround?

Sounds like a transaction issue, but we can’t help without the full graph and dataset to reproduce. I recommend building a VERY simple version of what you are after - say making 3 instances of a family near the origin in a new template - as a starting point.

thank you for your comment. I’ll try and make it simpeler when I have some spare time to understand CoordinateSystems some better. for now I have found a quick work around by setting the element location afterwards.

this seems to help for now.