Beispiel #1
0
        public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
        {
            Result result = Result.Succeeded;

            try
            {
                var app = new InsertTextLeader();
                app.Show();
            }
            catch (Autodesk.Revit.Exceptions.OperationCanceledException) { }
            catch (Exception ex)
            {
                message = ex.Message;
                result  = Result.Failed;
            }
            return(result);
        }
 public void Execute(UIApplication app)
 {
     InsertTextLeader.Insert(app);
 }