Open thumDer opened 2 years ago
It seems similar to #35 but it is still a bit different.
I think the main issue here is that app.OpenDocumentFile()
throws a CorruptModelException
which is not really an exception in this case, because actually it can be handled through a dialogbox if opening the file manually (elements can be deleted).
RBP handles all such exceptions in the same way, but this specific case
Some families have become unusable. Reload the families, or delete them from the model. - (GUID: 12266a1d-dc76-4477-8520-4a2f6474eec7)
could be handled differently, but I don't know if it is possible. It might be an API restriction I believe...
Hi @thumDer
I did a quick google on this and found the below thread which outlines from the Autodesk dev team that this is a Revit problem, rather than a RBP problem
https://forums.autodesk.com/t5/revit-api-forum/opendocumentfile-corruptmodelexception/td-p/8278426
Does the below suggested fix work for you?
This would be in the addin manifest for RBP in the Revit version you are trying this task in, e.g. BatchRvtAddin2022
Let me know how you go
Cheers, Pete
Will try, and get back to you, thanks!
We've tried changing the VendorId for RBP to ADSK and also to our inhouse addin's VendorId but unfortunately it didn't solve the problem. I'm afraid there is nothing we can do about it at the moment :/
We've found an error / failure which is not handled as the most of them on opening, and it breaks the whole process. The preferred resolution would be to delete the elements.
Here are the details about the failure: