I am trying to set the worksets in my project based on a shared Parameter, in my case is “NAME ID”, I have already defined the shared parameter in the project in all the elements that I want to separate by worksets. But I cannot get to change the worksets based on that parameter. To provide a bit of context we do sequencing and first we name all the elements, and after that we divide in workset to present in a meeting and turn on and off as the Construction team needs. I am attaching the Screenshot. I am a new user so I cannot attach the .dyn.
It sounds like you want to create a script which overrides the parameter-value of your element’s workset to match the parameter-value of its’ “NAME ID” parameter-value. If this is the case, try something like this:
Hello @Daan , that is exactly what I want to achieve, I run your script but in the workset By name node all the values are null. and in revit I do not see any changes in the worksets. It might be because I do not have the worksets with that name created in Revit, and I need to create the worksets with the paremeter “NAME ID” first?
Hello @bvs1982 I added the node create worksets and I have created all the worksets that I need. I did not understand what did you mean with the passthough node or if I applied correctly. The thing is that the worksets are still not getting renamed with the parameter value. What do you think it went wrong?
my goal is to rename the worksets, with the Parameter “Name ID” , in my office first we define the naming convention and after that we create the worksets. in this exercise I have 300 worksets that we use for sequencing.
I am attaching a view with the .dyn a bit more open.
To be honest i don’t think this is what Worksets
should be used for. Maybe it is better to re-think your workflow (instead if creating 300+ ! Worksets).
That being said.
If you want to stick to this workflow the Create Workset node might need a String as input?
In that I agree with you. But it is the procedure that the company follows and I did not want to change the procedures during my probation. I will try to get another approach
@AlexiMonge1987
It looks like it only works when you created ONE Workset manually first.
I guess that got something to do with the dialogue box you get the first time you create a Workset (so Worksets get enabled).
Well I really much appreciate the help and I will post The solutions if one day I actually solve it, I will let you know. Thank you very much for trying.