Announcements
Due to scheduled maintenance, the Autodesk Community will be inaccessible from 10:00PM PDT on Oct 16th for approximately 1 hour. We appreciate your patience during this time.
Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Revit 2021 crashes saving a file (UIDocument)

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
221 Views, 0 Replies

Revit 2021 crashes saving a file (UIDocument)

Since I started working with Revit in 2017 I have been encountering with an issue related to saving a file using the API. The problem happens when calling to “Save” and “SaveAs” methods. And it occurs randomly. When fails,

Revit throws an InvalidOperationException with the message "save failed". As a workaround, what I've been doing is calling the function repetitively until it saves successfully. This is the function I use:  

aoruesagasti_0-1635496312780.png

 

 

This solves the problem when you only have to save a single file for each execution. The problem is that I am now developing a project in which we need to open, edit and save more than 100 files in each execution and the saving process lasts half of the command’s execution time, which usually takes between 15 and 20 minutes. Moreover, from time to time Revit crashes at this same point without leaving any log. 

 

Does anyone know what may be happening?  

 

Thanks in advance 

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report