Grids/Levels To Shared Levels and Grids

Trying to place all grids and levels on the workset “Shared Levels and Grids”. I attempted to follow other posts about this but keep getting an error. See workflow below:

Any ideas?

can you expand the error and let us know what it is telling you? Also can you post the full DYN here? Will be easier to help.

The message says:

Warning: Element.SetParameterByName operation failed.
The best overloaded method match for ‘Revit.Elements.InternalUtilities.ElementUtils.SetParameterValue(Autodesk.Revit.DB.Parameter, double)’ has some invalid arguments