I have created Dynamo graph to ‘Find & Replace’ specific text from revit model.
If I run Dynamo graph, then it is showing proper output/result but in revit text value does not change.
I want to change text value from ‘5001’ to ‘X1010’.
Please advise.
Your Dynamo graph just made a list of strings, you haven’t put it back onto the text notes. Try using the SetText node to change the text of the text note.
Your graph is all kinds of confusing with how it is organized. Can you clean up the layout so wires aren’t crossing behind a bunch of different nodes and it is easier to read and show the outputs of each node?
I think your problem is that the list of texts has been filtered a few times for which ones have “REMOVED” vs “REMOVE” but you never filtered the elements to the same mask. So instead of changing the text for the elements whose text has “REMOVE”, you are replacing the first 4 elements in All Elements of Category node.
Try adding a List.FilterByBoolMask using the same mask and use the All Elements of Category as the list input.
The method you used was fine. The problem was that you did not filter the elements alongside the text. Just add a separate filter process using the elements as the input and the same mask that you used for the text.
I don’t have the package you used and the Revit file so I can’t test it out but something like this, the green group:
I think you are misunderstanding your problem. The problem has nothing to do with that side of the graph. Don’t change anything you have right now.
What you need to do is just add the green group alongside what you have.
Please read this carefully and if you do not understand let me know: In your graph you filter the text inside the text notes to only find text that has “REMOVE”, not “REMOVED”. This works fine, do not change that.
But what this means is that the original list of text (not the text notes, just the text) has been filtered. In addition to this, you also must filter the actual text notes using the same filter you applied to the text. That is what the green group does.
And you have checked inside the Revit file that the text notes still say REMOVE instead of REMOVED? Like I said before, the output of the SetText node is supposed to be null, that should mean it was successful.
I’ve been trying something that would allow me to remove all of the “.” from our abbreviated word in our drafting views, e.g. TYP. = TYP, STRUCT. = STRUCT, etc. Would I be able to use this to accomplish this?