See here: Did the Document.ProjectParameters (Clockwork) stop in Revit 2023 - #8 by Andreas_Dieckmann