Workset Assigned to elements by category

hi all

am trying to get elements by category to be assigned to Worksets, but it doesnt seem to work.
can some one till me what am i doing wrong here?

thank you

Capture

when am working on this, i found out that value needs a (var) input, not an (int)
it could be that

but i have no idea how to convert the (int) to (var)

It works using Element.SetParameterByName, Dynamo Version 1.3.2 Revit 2016:

Workset

“Bearbeitungsbereich” is german for workset

2 Likes

thanks alot
this is exactly what am looking for :wink: