Select Revit Elements from a List of Names and Assign to Workset

use this concept to set workset instead of selecting in revit