Results 1 to 2 of 2

Thread: IExternalApplication ?? Modal

  1. #1
    Member
    Join Date
    2013-04
    Posts
    16
    Login to Give a bone
    0

    Default IExternalApplication ?? Modal

    Hi All,

    I am creating a IExternalApplication plugin for Revit.
    When I run this it locks Revit functions out. (after clicking message box)

    It's as if there is a dialogue box open.
    I have no problem registering events etc.. but why is my code not returning to a usable state ?

    Is this normal ? am I using the correct approach ?

    Thanks in advance


    Code:
      
        class Example: IExternalApplication {
         public Result OnStartup(UIControlledApplication application) {
          try {
           MessageBox.Show("onstartup");
          } catch (Exception) {
           return Autodesk.Revit.UI.Result.Failed;
          }
          return Autodesk.Revit.UI.Result.Succeeded;
         }
         public Result OnShutdown(UIControlledApplication application) {
          try {
           MessageBox.Show("on shutdown");
          } catch (Exception) {
           return Autodesk.Revit.UI.Result.Failed;
          }
          return Autodesk.Revit.UI.Result.Succeeded;
         }
        }
    Last edited by John Allan; 2015-10-02 at 12:23 PM.

  2. #2
    Member
    Join Date
    2013-04
    Posts
    16
    Login to Give a bone
    0

    Default Re: IExternalApplication ?? Modal

    I have found the Events samples in the SDK which will be very helpful.
    C:\Revit 2014 SDK\Samples\Events

Similar Threads

  1. Non-Modal dialogs
    By revit.wishlist1942 in forum Revit Architecture - Wish List
    Replies: 1
    Last Post: 2012-08-06, 03:25 PM
  2. modal and seismic analysis
    By mecheil2000 in forum Robot Structural Analysis
    Replies: 6
    Last Post: 2011-10-12, 08:58 AM
  3. Replies: 2
    Last Post: 2010-09-14, 12:07 PM
  4. Non-Modal Form dissapearing
    By B_Roche in forum VBA/COM Interop
    Replies: 0
    Last Post: 2009-08-28, 05:16 PM
  5. Non-modal dialog boxes
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2006-01-31, 01:08 AM

Posting Permissions

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