《Visual_LISP课件》-公开课件.pptVIP

  • 12
  • 0
  • 约2.66万字
  • 约 74页
  • 2019-12-21 发布于广西
  • 举报
;定义变位系数编辑框的活动的函数 (defun f_x(/ xx ) (setq xx(atof $value)) (if (or ( xx -1)( xx 1)) (progn (setq xx (get_tile s_x)) (setq xx(atof xx)) (setq bwxsh(* 0.01 xx)) (set_tile $key (rtos bwxsh 2 2)) ) (progn (setq bwxsh xx) (setq xx(* 100 xx)) (set_tile s_x (itoa xx)) ))) ;定义齿轮加工的函数 (defun makegear() (setq chlzhx (0 0));齿轮中心 (setq ylj (* pi (/ ylj 180.0)));度转换为弧度 (setq chgao (* msh (+ chdgaoxsh bwxsh)));齿高=1 (setq fdybj (* 0.5 (* msh chsh)));分度圆半径 (setq dybj (+ fdybj (* msh (+ chdgaoxsh bwxsh))));齿顶圆半径 (setq kbj (* 0.25 dybj));轮孔半径 (setq lm1 (list (-

文档评论(0)

1亿VIP精品文档

相关文档