errors message dialog show when rollback

errors message dialog show when rollback

VP_CB
Contributor Contributor
470 Views
3 Replies
Message 1 of 4

errors message dialog show when rollback

VP_CB
Contributor
Contributor

Hi,

 

i have to delete an element during transaction, it's just temporary delete so i call rollback for transaction. The problem is that Revit is showing errror dialog with some errors. I need to hide this dialog. I try to use IFailuresPreprocessor but i can delete just warning.

 

do you have any advice for this problem?

 

thanks

Vitezslav

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

matthew_taylor
Advisor
Advisor

Hi @VP_CB,

You will have to be much, much more specific, and much, much more descriptive.


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
0 Likes
Message 3 of 4

VP_CB
Contributor
Contributor

Hi,

 

no problem 🙂

I have to delete door, when i'm deleting it in Revit, Revit show dialog with 9 errors about "Constrains are not satisfied" etc.

In API i'm using ReferenceIntersector and I need to find references without the door so i delete the door in Transaction and use ReferenceIntersector again afterer Regeneration. It works fine, the problem is that when I call RollBack transaction the same dialog with error like in Revit environment shows up. User can hit cancel button and the program continue fine. But this dialog confuse the clients and i need to remove it. 

 

It only show when I call Regenerate method. I tried to use IFailuresPreprocessor to discard the dialog but with no success.

 

Hope it's now clearer

 

Vitezslav

 

 

0 Likes
Message 4 of 4

matthew_taylor
Advisor
Advisor

Hi @VP_CB,

A little. Smiley Wink

Can you clarify that you are calling warnings and errors by their correct notation?

Can you show dialog screenshots?

Have you set FailureHandlingOptions for your transaction.

Have you tried ProceedWithRollback when handling the failures? http://help.autodesk.com/view/RVT/2014/ENU/?guid=GUID-52A45CC1-3BB4-48B4-BFC7-F6F8666C2AA4


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
0 Likes