替换此函数 就可以 只加了一句显示幻灯片
- ;;;***select shaft shaft_type be used "shaft"
- ;;;选择轴段结构函数
- (defun shaft_stype ()
- (if (not (new_dialog "stype" dia))
- (exit)
- )
- (shaft_vslide "sh1" "D:\\ZHOU\\S1.SLD" 0)
- (shaft_vslide "sh2" "D:\\ZHOU\\S2.SLD" 0)
- (shaft_vslide "sh3" "D:\\ZHOU\\S3.SLD" 0)
- (shaft_vslide "sh4" "D:\\ZHOU\\S4.SLD" 0)
- (shaft_vslide "sh5" "D:\\ZHOU\\S5.SLD" 0)
- (shaft_vslide "sh6" "D:\\ZHOU\\S6.SLD" 0)
- (shaft_vslide "sh7" "D:\\ZHOU\\S7.SLD" 0)
- (shaft_vslide "sh8" "D:\\ZHOU\\S8.SLD" 0)
- (shaft_vslide "sh9" "D:\\ZHOU\\S40.SLD" 0)
- (action_tile "sh1" "(setq shaft_type 1)")
- (action_tile "sh2" "(setq shaft_type 2)")
- (action_tile "sh3" "(setq shaft_type 3)")
- (action_tile "sh4" "(setq shaft_type 4)")
- (action_tile "sh5" "(setq shaft_type 5)")
- (action_tile "sh6" "(setq shaft_type 6)")
- (action_tile "sh7" "(setq shaft_type 7)")
- (action_tile "sh8" "(setq shaft_type 8)")
- (action_tile "sh9" "(s_gear) (setq shaft_type 40)")
- (action_tile "fan" "(done_dialog 7)")
- (action_tile "help" "(do_help)")
- (action_tile "accept" "(done_dialog 0)")
- (setq what1 (start_dialog))
- (if (= what1 7)
- (sfanye)
- )
- (type_act)
- (if (or (= shaft_type 40) (= shaft_type 45) (= shaft_type 46))
- (progn
- (set_tile "shaft_D1" (rtos d1 2 1))
- (set_tile "chamfer_B" (rtos b 2 1))
- (setq d0 (* sca d0)
- d1 (* sca d1)
- b (* sca b)
- )
- )
- (progn
- (shaft_vslide "shaft_image" (strcat "D:\\ZHOU\\S" (itoa shaft_type) ".SLD") 0)
- )
- )
- )
-
|