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: 

IUpdater Cancellable?

1 REPLY 1
Reply
Message 1 of 2
leslief
343 Views, 1 Reply

IUpdater Cancellable?

I found that the older event args have a 'cancellable' property, but don't see a way to do this for the IUpdater.  Is there any way to cancel an IUpdater while it's running?

1 REPLY 1
Message 2 of 2
cshha
in reply to: leslief

As far as I know, it's not cancellable with a property that can be set in the way you're thinking.

 

However, you can cancel it by using the Failure API and posting a failure with a severity level of error at any time during the IUpdater.  This will undo any changes made during the IUpdater as well as the action that triggered it.

 

See this post for more info: http://thebuildingcoder.typepad.com/blog/2011/11/lock-the-model-eg-prevent-deletion.html


Colin Stark
BIM Specialist & Software Developer
H.H. Angus & Associates Ltd.
Toronto, Canada

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community