« ADN Revit 2015 API Training Material | Main | Exchange Apps Webinar Recording and Resources »

May 28, 2014

Comments

Hi Jeremy,

I have to do some silent task(like AutoCAD pushDBMode, popDbmod), on opening the revit project file. I meant to say that save confirmation dialog should not occur, because of my task.

Is it possible to do like this?

S.Kamalanathan

Dear S. Kamalanathan,

Yes, of course this is possible.

Here is a whole bunch of discussions on topics related to detecting and handling dialogues and failures:

http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.32

Cheers, Jeremy.

Hi Jeremy,

Thank you so much for the quick reply.

Sorry my words are not clear, I think so.

Please refer the following case in AutoCAD:
1. Open the drawing.
2. On Document_Created event do the following task.
PushDbMod -> do some task -> popDbMod.
3. If the close the drawing, No confirmation will be asked, also the drawing will not saved.
I mean, the "upgrade" task done by us, will be hidded to user.

Is the above case possible(Because in recommended posts will suppress the dialogs or save the drawing)?

So Sorry, If I am wrong.

Regards,
S.Kamalanathan.

Dear S. Kamalanathan,

Thank you for the clarification.

Revit does not provide an equivalent of the AutoCAD DBMOD variable.

In order to modify the Revit model, you need to at least start and commit a transaction.

That will mark the database as modified, and there is no way to suppress that.

Please be aware of the deep and far-reaching paradigm differences between Revit and AutoCAD:

http://thebuildingcoder.typepad.com/blog/2012/10/porting-an-autocad-application.html

Cheers, Jeremy.

Hi Jeremy,

I understood. Thank you so much for the clarification.

Regards,
S.Kamalanathan.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

Jeremy Tammik

AboutTopicsIndexSource