Ejemplo n.º 1
0
 //替换模板工作台部分参数
 private void ReplaceWorktable(Worktable worktable, Ballscrew ballscrew)
 {
     _content = _content.Replace("<param>WorktableQuality</param>", worktable.Mass.ToString());
     _content = _content.Replace("<param>WorktableScrewPitch</param>", ballscrew.Pitch.ToString());
     _content = _content.Replace("<param>WorktableNutDymanicload</param>", worktable.DynamicLoadRating.ToString());
     _content = _content.Replace("<param>WorktableContactStiffness</param>", worktable.ContactStiffness.ToString());
     _content = _content.Replace("<param>WorktableScrewPretighteningEfficience</param>", worktable.TighteningEfficiency.ToString());
 }
Ejemplo n.º 2
0
 //替换模板滚珠丝杠部分参数
 private void ReplaceBallscrew(Ballscrew ballscrew, Worktable worktable)
 {
     _content = _content.Replace("<param>ScrewDiameter</param>", ballscrew.Diameter.ToString());
     _content = _content.Replace("<param>ScrewModulusofElasticty</param>", ballscrew.ModulusofElasticty.ToString());
     _content = _content.Replace("<param>ScrewShaftDistance</param>", ballscrew.ShaftDistance.ToString());
     _content = _content.Replace("<param>ScrewPitch</param>", ballscrew.Pitch.ToString());
     _content = _content.Replace("<param>ScrewLength</param>", ballscrew.Length.ToString());
     _content = _content.Replace("<param>ScrewDensity</param>", ballscrew.Density.ToString());
     _content = _content.Replace("<param>ScrewShearModulusofElasticty</param>", ballscrew.ShearModulusofElasticty.ToString());
     _content = _content.Replace("<param>ScrewCampingCoefficient</param>", ballscrew.CampingCoefficient.ToString());
     _content = _content.Replace("<param>ScrewWorktableQuality</param>", worktable.Mass.ToString());
 }
Ejemplo n.º 3
0
 //替换模板工作台部分参数
 public void ReplaceWorktable(Worktable worktable,Ballscrew ballscrew)
 {
     content = content.Replace("<param>WorktableQuality</param>", worktable.Mass.ToString());
     content = content.Replace("<param>WorktableScrewPitch</param>", ballscrew.Pitch.ToString());
     content = content.Replace("<param>WorktableNutDymanicload</param>", worktable.DynamicLoadRating.ToString());
     content = content.Replace("<param>WorktableContactStiffness</param>", worktable.ContactStiffness.ToString());
     content = content.Replace("<param>WorktableScrewPretighteningEfficience</param>", worktable.TighteningEfficiency.ToString());
 }
Ejemplo n.º 4
0
 //替换模板滚珠丝杠部分参数
 public void ReplaceBallscrew(Ballscrew ballscrew,Worktable worktable)
 {
     content = content.Replace("<param>ScrewDiameter</param>", ballscrew.Diameter.ToString());
     content = content.Replace("<param>ScrewModulusofElasticty</param>", ballscrew.ModulusofElasticty.ToString());
     content = content.Replace("<param>ScrewShaftDistance</param>", ballscrew.ShaftDistance.ToString());
     content = content.Replace("<param>ScrewPitch</param>", ballscrew.Pitch.ToString());
     content = content.Replace("<param>ScrewLength</param>", ballscrew.Length.ToString());
     content = content.Replace("<param>ScrewDensity</param>", ballscrew.Density.ToString());
     content = content.Replace("<param>ScrewShearModulusofElasticty</param>", ballscrew.ShearModulusofElasticty.ToString());
     content = content.Replace("<param>ScrewCampingCoefficient</param>", ballscrew.CampingCoefficient.ToString());
     content = content.Replace("<param>ScrewWorktableQuality</param>", worktable.Mass.ToString());
 }