Results 1 to 4 of 4

Thread: handle warnings/Errors in the Revit API

  1. #1
    Member
    Join Date
    2009-04
    Posts
    6
    Login to Give a bone
    0

    Default handle warnings/Errors in the Revit API

    hi,
    I want to handle the Warnings that pop up. Is it possible through Revit API to handle these warnings. I want to catch these errors/warnings and save them in the seperate File.
    Journal file contain these errors and warnings but to iterate through them is tedious job.
    I wan to handle them through API instead of the Going through the journal file.

    Thanks,
    KK

  2. #2
    I could stop if I wanted to Danny Polkinhorn's Avatar
    Join Date
    2003-12
    Location
    San Francisco, CA
    Posts
    448
    Login to Give a bone
    0

    Default Re: handle warnings/Errors in the Revit API

    Yes, there's an "OnDialogBox" event on the Application class that allows you to handle dialogs. The OverrideResult function can dismiss the dialog. Look at the API help file and Developer Guide in the SDK for more info.

    HTH,

  3. #3
    Member
    Join Date
    2009-04
    Posts
    6
    Login to Give a bone
    0

    Default Re: handle warnings/Errors in the Revit API

    Quote Originally Posted by Danny Polkinhorn View Post
    Yes, there's an "OnDialogBox" event on the Application class that allows you to handle dialogs. The OverrideResult function can dismiss the dialog. Look at the API help file and Developer Guide in the SDK for more info.

    HTH,
    hi,
    Is there any other way by which I can handle the errors directly without using 'OnDialogBox'
    So as soon as the Error occurs I can make its entry some where say text file.

    KK

  4. #4
    Active Member
    Join Date
    2005-09
    Posts
    69
    Login to Give a bone
    0

    Default Re: handle warnings/Errors in the Revit API

    In 2010 you can find the text on the dialog, but the technique is similar to the one described by Danny (Autodesk have introduced some new methods and classes)
    Look at TaskDialogShowingEventArgs and MessageBoxShowingEventArgs.

Similar Threads

  1. Autocad 2005 "Errors & Warnings" while plotting....
    By jroseeng389213 in forum AutoCAD General
    Replies: 1
    Last Post: 2011-12-29, 04:31 PM
  2. WARNINGS ERRORS..INSTEAD OF DELETE CHECKED
    By FOUTJM in forum Revit Structure - Wish List
    Replies: 0
    Last Post: 2009-01-29, 06:41 PM
  3. Revit Warnings
    By ajayholland in forum Revit - Platform
    Replies: 20
    Last Post: 2008-03-24, 04:29 PM
  4. Revit Warnings...
    By jrichardson in forum Revit Structure - General
    Replies: 1
    Last Post: 2006-10-13, 07:51 PM
  5. Replies: 9
    Last Post: 2006-04-28, 08:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •