Exemplo n.º 1
0
        public void CatiaControlInnen()
        {
            CatiaConnection cc = new CatiaConnection();

            try
            {
                // Finde Catia Prozess
                if (cc.CATIALaeuft())
                {
                    // Öffne ein neues Part
                    cc.ErzeugePart();

                    // Generiere ein Profil
                    cc.ErzeugeProfilInnen(dat);
                }
                else
                {
                    MessageBox.Show("Laufende Catia Application nicht gefunden");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Exception aufgetreten");
            }
        }
Exemplo n.º 2
0
        public void CatiaControl()
        {
            CatiaConnection cc = new CatiaConnection();

            try
            {
                // Finde Catia Prozess
                if (cc.CATIALaeuft())
                {
                    // Öffne ein neues Part
                    cc.ErzeugePart();

                    // Erstelle eine Skizze
                    cc.ErstelleLeereSkizze();

                    // Generiere ein Profil
                    cc.ErzeugeProfil(dat);

                    // Extrudiere Balken
                    cc.ErzeugeDasNeueKreismuster(dat);
                }
                else
                {
                    MessageBox.Show("Laufende Catia Application nicht gefunden");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Exception aufgetreten");
            }
        }