Пример #1
0
 public void InplaceReplacement(object sender, Autodesk.Revit.UI.Events.BeforeExecutedEventArgs arg)
 {
     UI.Info.Form_Warning.warningMsgHead = "Stop!";
     UI.Info.Form_Warning.warningMsgMain = "Are you trying to create an In-Place Component?";
     UI.Info.Form_Warning.warningMsgBody = "That is not usually the best practice.\n" +
                                           "I´m sure you that can use a loadable family instead!\n" +
                                           "Please reconsider your actions...";
     using (UI.Info.Form_Warning thisForm = new UI.Info.Form_Warning()) { thisForm.ShowDialog(); }
 }
Пример #2
0
 public void ImportReplacement(object sender, Autodesk.Revit.UI.Events.BeforeExecutedEventArgs arg)
 {
     UI.Info.Form_Warning.warningMsgHead = "Stop!";
     UI.Info.Form_Warning.warningMsgMain = "Are you trying to import a CAD?";
     UI.Info.Form_Warning.warningMsgBody = "That is not the best practice.\n" +
                                           "You should use 'Link CAD' instead!\n" +
                                           "Please reconsider your actions...";
     using (UI.Info.Form_Warning thisForm = new UI.Info.Form_Warning()) { thisForm.ShowDialog(); }
 }