Preprocess schema conflict errors

Preprocess schema conflict errors

Anonymous
Not applicable
773 Views
3 Replies
Message 1 of 4

Preprocess schema conflict errors

Anonymous
Not applicable

I would like to hide all "Shema Conflict when Loading a File" messages and create a single message that gives a summary of all schema conflicts.

 

Currently I am unable to catch this error, because the error message is generated before the DocumentOpened event and I can't use Document.SetFailureHandlingOptions on the DocumentOpening event, because the Document is not generated yet here.

 

Is it possible to preprocess and hide the "Shema Conflict when Loading a File" messages and how can I do this?

0 Likes
774 Views
3 Replies
Replies (3)
Message 2 of 4

Revitalizer
Advisor
Advisor

Hi kay,

 

I've posted an answer in a different thread:

https://forums.autodesk.com/t5/revit-api-forum/capture-warning-message-during-the-save-with-a-revit-...

 

"I would suggest to look at the ErrorHandling sample in the Revit SDK, at the Command.cs file.

There is a FailuresProcessing event with the Application class (and also with the ControlledApplication class).

That means, independent of your own Transactions, you can intercept the FailuresProcessing in a general context."

 

I don't know if this may help you solving your problem, but it's a starting point...

 

 

Revitalizer

 




Rudolf Honke
Software Developer
Mensch und Maschine





Message 3 of 4

Anonymous
Not applicable

It seems like Application.FailuresProcessing and ControlledApplication.FailureProcessing do not catch the schema conflict failure.

These events are called once inbetween opening a project and the scheme conflict popup message, but there are no failure messages(failuresAccessor.GetFailureMessages()) and the event is also called when a project is opened without any conflicting schema's. 

0 Likes
Message 4 of 4

FlorisvdG
Advocate
Advocate

Any update on this? I'm running into the same problem. Schema Conflict errors are not caught by the FailureProcessors..

0 Likes