I have a problem with my script please have a look at the attachement. My problem is whenever I close my script and open it again all the selections and nodes showed null. I really can’t understand what is going wrong, the surprising thing is I need to replace all nodes again starting from “categories”, “all elements of categories” and “list first ittem” any tips to solve this issue are much appreciated.
Might be the obvious answer… But have you run your graph after reopening it?
Dynamo does not “save” the information in each node when closed, this will have to be run again to populate the nodes.
Thank you for comment. I did run the script definitely the scripts was working just fine a couple of weeks ago but at the moment–it won’ twork unlessl I replace all nodes with new ones. However, even by doing that the script will fail to run if I close Dynamo workspace and re-open it again. I am just overwhilmed by it.
If it is a ScopeIf node (not an If), then a part of your graph (the one not corresponding to the condition you are testing with the node) will not be evaluated.
Anyway, try to set the script on Manual and hit the Run button, see if it works that way.
What i can think of:
open your Revit file with the audit button ticked so your file gets checked/repaired. this might be a good thing to do once per month.
If there is any corruption in the Revit file (like missing Project Information and the button gets greyed out) (seen it, been there)
make sure you check on a copy of the model.
Thank you for your comments, I tired your solutions but it didn’t work, i couldn’t figure it out. I just re-written my whole script again and it is working just fine now.