Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement