添加项目
This commit is contained in:
21
RevitAddin/Revit/Commands/Command.cs
Normal file
21
RevitAddin/Revit/Commands/Command.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user