22 lines
560 B
C#
22 lines
560 B
C#
|
|
using System;
|
||
|
|
using System.Reflection;
|
||
|
|
using Autodesk.Revit.Attributes;
|
||
|
|
using Autodesk.Revit.DB;
|
||
|
|
using Autodesk.Revit.UI;
|
||
|
|
|
||
|
|
namespace RevitAddin.Revit.Commands
|
||
|
|
{
|
||
|
|
[Transaction(TransactionMode.Manual)]
|
||
|
|
public class Command : IExternalCommand
|
||
|
|
{
|
||
|
|
public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elementSet)
|
||
|
|
{
|
||
|
|
UIApplication uiapp = commandData.Application;
|
||
|
|
|
||
|
|
System.Windows.MessageBox.Show(uiapp.Application.VersionName);
|
||
|
|
|
||
|
|
return Result.Succeeded;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|