An Elements Workset visibility by view

I am trying to find what workset an element is assigned to then using that workset find out what the visibility setting is for a view.
I can’t seem to bridge the gap between the elements workset and the required workset id. I can get it working if I use archilabs worksets node but I need this to change depending on the element I have selected.

I am using Archilab, Rhythm & Clockwork nodes.
Any thoughts?

Use GetParameterValueByName instead. This will return the Workset Id directly.


Ah thank you kindly.