Results 1 to 4 of 4

Thread: Message Box -msgBox("where is my message box")

  1. #1
    Member
    Join Date
    2011-06
    Posts
    27
    0 Did you find this post helpful? Yes

    Default Message Box -msgBox("where is my message box")

    Working in Revit 2013 - Structure.

    I decided to start playing around with the API- I think that was my first mistake....

    Anyways, I have a very SIMPLE problem to solve. Anytime I try to create a message box, i get an error...

    msgBox is not declared

    How to get message boxes in SharpDevelop?


    Matt

  2. #2
    Active Member
    Join Date
    2004-09
    Posts
    99
    0 Did you find this post helpful? Yes

    Default Re: Message Box -msgBox("where is my message box")

    I'm not familiar with SharpDevelop, but I think you need to capitalize it:

    MsgBox("where is it?")

  3. #3
    All AUGI, all the time
    Join Date
    2006-05
    Posts
    836
    0 Did you find this post helpful? Yes

    Default Re: Message Box -msgBox("where is my message box")

    Might be better to use a Revit Dialog box.

    Make sure you reference Autodesk.Revit.UI;

    TaskDialog.Show("Revit","this is an example");

    this will get you working and Task Dialog has "options" to allow you to add buttons and make those buttons do things as you work, as opposed to .NET options.
    AJS
    BIMM Consultant
    www.GHD.com

  4. #4
    Active Member
    Join Date
    2004-09
    Posts
    99
    0 Did you find this post helpful? Yes

    Default Re: Message Box -msgBox("where is my message box")

    I wouldn't argue with TaskDialog, but I think it is useful to be able to do either.

    For MsgBox, check to make sure you have the System.Windows.Forms namespace in your Imports section.

Similar Threads

  1. Error message "Element's internal join data is corrupt"
    By wilcoXL in forum Revit Architecture - General
    Replies: 11
    Last Post: 2012-11-21, 05:52 PM
  2. "To freely edit this file in Demo/Viewer mode..." message
    By mattw in forum Revit MEP - General
    Replies: 1
    Last Post: 2009-10-30, 05:40 PM
  3. "Constraints are not satisfied" message when making grid lines equal
    By rachaelferrill in forum Revit Architecture - General
    Replies: 1
    Last Post: 2009-09-04, 09:13 AM
  4. "Central File locked" message pops up when no one else is working on the model
    By Steve Mintz in forum Revit - Worksharing/Worksets/Revit Server
    Replies: 8
    Last Post: 2006-08-08, 03:47 AM
  5. Replies: 3
    Last Post: 2005-10-11, 06:59 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
  •