Im trying change the Workset of multiple elements but get an error when using the “Element.SetParameterByName” Node. The error reads
“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”
Is there something wrong with the way i’m trying to set it? if so what should I be doing? Any feedback is greatly appreciated! Thanks!
You will just need to plug in your “Worksets” node into the archilab node “Workset.Id” which will give you the id of the workset. The id of the workset is the value that is used to set the workset of an element. Notice that in the warning it says “(Autodesk.Revit.DB.Parameter, double)”. This tells us that a double is the expected value type for the workset parameter, so any other type of input will not work.
Best of luck with your script!
Thanks for the quick response, worked like a charm!