Application.CloseDocument


Application.CloseDocument

Dynamo Hierarchy: Rhythm>Revit>Application>Application>Application.CloseDocument

Description:

This node will close the given document with the option to save. This is useful for getting elements from a non-visible opened file.

Inputs:

document : Autodesk.Revit.DB.Document

save : bool

Outputs:

result : result

Advertisements

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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.