Please search the Revit API discussion forum for `schedule calculated`. I see a number of solutions there: https://forums.autodesk.com/t5/revit-api-forum/bd-p/160. Please confirm that you found the right one. Thank you!
– Jeremy TammikNov 15 '22 at 09:14