Assign Workset based on Type Name

HI All, I would just like to know it is possible to Get the type name of an element; say a door or pipe, create a worksets based on that TypeName and assign that to the element as well.

I am able to create the workset name based on the type name but i cannot assign it to the element.

Hello @Revit_Noob …try something probably could work :wink:

Actually that is what I am doing but I am getting null values in the Workset.ID

EDIT :

It worked. I replaced the Workset.Id node from Zhukoven.Revit package with the OOTB.
I didn’t realized am using the wrong node.

Thanks @sovitek

I am trying the same method with System Pipes, am getting an error in the SetParameterValue .ByName

The Parameter is Read-Only

Nevermind… I managed to get it worked