Modify Duct Accessory and Get New Duct Coordinates

Hello, the script below changes the length of duct accessories from 100mm to 200mm, however, the Element.GetLocation node does not report the new duct coordinates (screenshot 1). If i run the script twice, I get the desired coordinates (screenshot 2). I was wondering if it is possible to change the length of duct accessories and acquire the new duct coordinates without running the script twice. Thanks

Try using a Transaction node instead of a passthrough.

1 Like

Thank you, the transaction node worked!