Beispiel #1
0
        public static bool SetMaterial(Material Mymaterial)
        {
            IRobotLabel       material     = labelServer.Create(IRobotLabelType.I_LT_MATERIAL, Mymaterial.MaterialName);
            RobotMaterialData materialData = material.Data;

            materialData.Type     = IRobotMaterialType.I_MT_STEEL;
            materialData.E        = Mymaterial.YoungsModulas;
            materialData.NU       = Mymaterial.PoissionRatio;
            materialData.Kirchoff = Mymaterial.ShearModulas;
            materialData.RO       = Mymaterial.UnitWeight;
            materialData.LX       = Mymaterial.ThermalExpansion;
            materialData.DumpCoef = Mymaterial.DampingRatio;
            materialData.SaveToDBase();
            robotApp.Project.Structure.Labels.Store(material);
            return(true);
        }
Beispiel #2
0
        public static bool SetMaterial(Material Mymaterial)
        {
            robotApp.Interactive = 0;
            IRobotLabel       material     = labelServer.Create(IRobotLabelType.I_LT_MATERIAL, Mymaterial.MaterialName);
            RobotMaterialData materialData = material.Data;

            materialData.Type     = IRobotMaterialType.I_MT_STEEL;
            materialData.E        = Mymaterial.YoungsModulas;
            materialData.NU       = Mymaterial.PoissionRatio;
            materialData.Kirchoff = Mymaterial.ShearModulas;
            materialData.RO       = Mymaterial.UnitWeight;
            materialData.LX       = Mymaterial.ThermalExpansion;
            materialData.DumpCoef = Mymaterial.DampingRatio;
            materialData.CS       = Mymaterial.ShearReductionFactor;
            materialData.Default  = 1;
            materialData.RT       = Mymaterial.TensionLimitstress;
            materialData.RE       = Mymaterial.CharchteristicResistance;
            materialData.SaveToDBase();
            robotApp.Project.Structure.Labels.Store(material);
            robotApp.Interactive = 1;
            return(true);
        }