Revit二次开发闪存

速记一些小知识点。
常用代码段

[Transaction(TransactionMode.Automatic)]
[Regeneration(RegenerationOption.Automatic)]
public class HelloWorld : IExternalCommand
{
    
public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
    {
        UIApplication uiApp 
= commandData.Application;
        Document doc 
= uiApp.ActiveUIDocument.Document;
        Selection sel 
= uiApp.ActiveUIDocument.Selection;
    }
}

end

posted @ 2011-03-30 14:30  大气象  阅读(1541)  评论(25编辑  收藏  举报
http://www.tianqiweiqi.com