Hello Martin, I think your logic is exact. The only problem that i faces trying to work with worksets through Dynamo is that Dynamo only retrieves some sort of numerical Id of the worksets. My way of working around this is:
-selecting a model element that is in the workset i’m interested in to retrieve the Id of this workset (circles in yellow in the image)
-I select and filter my elemets by parameter value (exactly as you said)
-I use the Id of the workset to set the parameter value of all the elements
there are probably more advances ways to do so but this is pretty simple and does the job. Hope it helps!
Firstly, apologies for not replying sooner - it’s been a crunch week and I’ve had no time to delve into Dynamo.
Thanks for the replies, I’ll read that other post Steven.
Mostafa, thanks for that - I can see the logic in that flow, I wasn’t sure on exactly how to use the BoolMask but that explains it. I hope to get some time this weekend to play around with the routine again.
I’ve canvased the office to get people to think about their Revit bottlenecks - particularly repetitive manual tasks so that we can identify the most productive areas to concentrate on.
I am literally trying to find walls with the Interior function and change them to a certain workset. This script seems to be written to do that, but I must be missing something since nothing is changing in my model
Getting the Wall Function parameter value doesn’t produce a string like you are comparing your values to with. I’m not sure how/if what was posted above was working for the users. See this thread here on the Wall Function parameter values:
Alternatively, you can collect all walls with the Function “Interior” using the Collector.OfInteriorWalls node from the Rhythm package, as shown in the image below