Results 1 to 4 of 4

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

  1. #1
    Member
    Join Date
    2011-06
    Posts
    28
    Login to Give a bone
    0

    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
    100 Club
    Join Date
    2004-09
    Posts
    104
    Login to Give a bone
    0

    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
    Login to Give a bone
    0

    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.

  4. #4
    100 Club
    Join Date
    2004-09
    Posts
    104
    Login to Give a bone
    0

    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: 12
    Last Post: 2017-02-27, 11:05 AM
  2. Erroneous "Cannot open central + local model" error message
    By Rustle in forum Revit Architecture - General
    Replies: 5
    Last Post: 2010-09-13, 04:54 PM
  3. "To freely edit this file in Demo/Viewer mode..." message
    By matt__w in forum Revit MEP - General
    Replies: 1
    Last Post: 2009-10-30, 05:40 PM
  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
  •