Пример #1
0
        public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
        {
            UIDocument uidoc = commandData.Application.ActiveUIDocument;
            Document   doc   = uidoc.Document;

            using (Transaction t = new Transaction(doc, "Place connection"))
            {
                t.Start();

                ConnectionsManager.PlaceConnection(doc);

                t.Commit();
            }

            return(Result.Succeeded);
        }