Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public void Execute(UIApplication app)
 {
     InsertTextLeader.Insert(app);
 }