Dynamo script not working

Please I need help to make this dynamo script work in revit 2022. This is short of warning in dynamo. The dynamo script is for detailing purposes.