示例#1
0
        //Ende I Profil


        //Hier Enden die Formprofile!!!



        // Hier beginnen die runden Profile!!!

        //Anfang RundHohlProfil!!

        internal void ErzeugeProfilRundHohlProfil(RundHohlProfil rundHohlProfil)
        {
            hspB1_catia_Profil.set_Name("RundHohlProfil");
            Factory2D factory2D = hspB1_catia_Profil.OpenEdition();


            //Setzen der Punkte/Kreise

            Point2D catpoint2D1 = factory2D.CreatePoint(0, 0);

            Circle2D catCircle2D1 = factory2D.CreateCircle(0, 0, rundHohlProfil.Durchmesser / 2, 0, 0);

            catCircle2D1.CenterPoint = catpoint2D1;

            Circle2D catCircle2D2 = factory2D.CreateCircle(0, 0, (rundHohlProfil.Durchmesser / 2 - rundHohlProfil.Wandstärke), 0, 0);

            catCircle2D2.CenterPoint = catpoint2D1;


            // Skizzierer verlassen
            hspB1_catia_Profil.CloseEdition();

            // Part aktualisieren
            hspB1_catiaPart.Part.Update();
        }
示例#2
0
        //Erzeugen der Extrusion für RechteckHohl
        internal void ErzeugeExtrusionRundHohlProfil(RundHohlProfil rundHohlProfil)
        {
            hspB1_catiaPart.Part.InWorkObject = hspB1_catiaPart.Part.MainBody;


            // Extrusion erzeugen
            ShapeFactory catShapeFactory1 = (ShapeFactory)hspB1_catiaPart.Part.ShapeFactory;
            Pad          catPad1          = catShapeFactory1.AddNewPad(hspB1_catia_Profil, rundHohlProfil.Länge);

            // Block umbenennen
            catPad1.set_Name("RundHohlProfil");

            // Part aktualisieren
            hspB1_catiaPart.Part.Update();
        }
示例#3
0
文件: ExcelApi.cs 项目: HSPB1/HSPB1
        public void ExcelRuHo(RundHohlProfil rundHohlProfil)
        {
            mySheet = (Excel.Worksheet)excelApp.ActiveSheet;


            mySheet.Cells[z, "A"] = i;
            mySheet.Cells[z, "B"] = "Rundhohl";
            mySheet.Cells[z, "C"] = "";
            mySheet.Cells[z, "D"] = "";
            mySheet.Cells[z, "E"] = rundHohlProfil.Durchmesser;
            mySheet.Cells[z, "F"] = rundHohlProfil.Wandstärke;
            mySheet.Cells[1, "G"] = "";
            mySheet.Cells[z, "H"] = rundHohlProfil.Länge;
            mySheet.Cells[z, "I"] = rundHohlProfil.QFläche();
            mySheet.Cells[z, "J"] = rundHohlProfil.Volumen();
            mySheet.Cells[z, "K"] = rundHohlProfil.WiederstandsMoment_Wy() / 1000;
            mySheet.Cells[z, "L"] = rundHohlProfil.WiederstandsMoment_Wz() / 1000;
            mySheet.Cells[z, "M"] = rundHohlProfil.FTM_Iy() / 10000;
            mySheet.Cells[z, "N"] = rundHohlProfil.FTM_Iz() / 10000;
            mySheet.Cells[z, "O"] = rundHohlProfil.FTM_Polar() / 10000;

            i++;
            z++;
        }