using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using UIFrameworkServices;
namespace TestAddIn2013
{
[Transaction(TransactionMode.Manual)]
public class IsDemoModeCommand : IExternalCommand
{
public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
{
bool isDemoMode =
InfoCenterService.ProductSerialNumber.Equals("000-00000000");
TaskDialog.Show("Is demo mode", string.Format("Is demo mode: {0}", isDemoMode));
return Result.Succeeded;
}
}
}