Exemplo n.º 1
0
        public void one()
        {
            try
            {
                _CONNECTION c = new _CONNECTION();

                REINFORCE_command program = new REINFORCE_command(ref c);

                try
                {
                    program.run();

                    c.ed.WriteMessage("\n[DONE]");
                }
                catch (DMTException de)
                {
                    c.ed.WriteMessage("\n" + de.Message);
                }
                catch (Exception ex)
                {
                    c.ed.WriteMessage("\n[ERROR] Unknown Exception");
                    c.ed.WriteMessage("\n[ERROR] " + ex.Message);
                    c.ed.WriteMessage("\n[ERROR] " + ex.TargetSite);
                }
                finally
                {
                    c.close();
                }
            }
            catch
            {
                _SWF.MessageBox.Show("\n[ERROR] Connection to BricsCad/AutoCad failed.");
            }
        }
Exemplo n.º 2
0
        public void info()
        {
            try
            {
                _CONNECTION c = new _CONNECTION();

                try
                {
                    string version = String.Format("{0}", System.IO.File.GetLastWriteTime(System.Reflection.Assembly.GetExecutingAssembly().Location).ToShortDateString());
                    c.ed.WriteMessage("\nDMT armeerimis programmi versioon: " + version + "\n");
                    c.ed.WriteMessage("\n[DONE]");
                }
                catch (Exception ex)
                {
                    c.ed.WriteMessage("\n[ERROR] Unknown Exception");
                    c.ed.WriteMessage("\n[ERROR] " + ex.Message);
                    c.ed.WriteMessage("\n[ERROR] " + ex.TargetSite);
                }
                finally
                {
                    c.close();
                }
            }
            catch
            {
                _SWF.MessageBox.Show("\n[ERROR] Connection to BricsCad/AutoCad failed.");
            }
        }
Exemplo n.º 3
0
 public CSV_command(ref _CONNECTION c)
 {
     _c = c;
 }
Exemplo n.º 4
0
 public DIMLAYER_command(ref _CONNECTION c)
 {
     _c = c;
 }
Exemplo n.º 5
0
 public FINDREPLACE_command(ref _CONNECTION c)
 {
     _c = c;
 }
Exemplo n.º 6
0
 public VIIDE_command(ref _CONNECTION c)
 {
     _c = c;
 }
Exemplo n.º 7
0
 public DIMCOLOR_command(ref _CONNECTION c)
 {
     _c = c;
 }
Exemplo n.º 8
0
 public CENTER_command(ref _CONNECTION c)
 {
     _c = c;
 }
Exemplo n.º 9
0
 public TABLE_command(ref _CONNECTION c)
 {
     _c = c;
 }
Exemplo n.º 10
0
 public _SETUP(ref _CONNECTION c)
 {
     _c = c;
 }
Exemplo n.º 11
0
 public REINFORCE_command(ref _CONNECTION c)
 {
     _c = c;
 }