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
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?")
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.
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.