[Transaction(TransactionMode.Manual)] //类特性,必须在方类前面声明 设计工具箱
public class Commandfamily : IExternalCommand //接口
{
static string path = typeof(CsAddPanel).Assembly.Location;
static string pro = Path.GetDirectoryName(path);
public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
{
Document doc = commandData.Application.ActiveUIDocument.Document;
string title = doc.Title;
TaskDialog.Show("DC助手", title);
return Result.Succeeded;
}
}
revit API 获取族标题
最新推荐文章于 2022-07-21 17:27:45 发布