public void ShowModalForm() { ModalForm modalForm = new ModalForm(); Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(modalForm); }