ScheduleView.CreateSchedule - Change category

You can have a look in this thread.

I think you have to make a small change in your graph to make Dynamo calculate over again.

https://forum.dynamobim.com/t/dynamo-scripts-not-updating-output-functions-when-a-change-is-made-in-revit/14218