4 thoughts on “Application.CloseDocument

  1. Hello,
    I have been trying to create a node where it Open Revit document in the background (Rhythm) apply action on it and then the action followed by the close document. (believing the file will not close by itself after opening it and if I have to open 100’s of them then it creates load on the system) I am trying to create a series where open first file in the directory apply action and close following open next file and apply same action and close and so on. But, for some reason, my close node is not working. I dont know how to bypass the close node error “Warning: Application.CloseDocument operation failed. Close is not allowed when there is any open sub-transaction, transaction or transaction group.” Please let me know any thoughts. Thank you!

    1. I’m going to say that this is probably better suited to be wrapped into a c# node on its own. I experienced this myself with my Family Upgrade workflow. What are you doing in the files?

        1. Yeah, this definitely needs some further thought and implementation. You might be able to nest your whole workflow into a custom node, that way it will step through each file. Definitely a tough task in Dynamo, but might be doable by those means.

Comments are closed.