- (Defun C:Pri (/)
- (Setvar "Cmdecho" 0)
- (Command "Opendcl")
- (Setvar "Cmdecho" 1)
- (Dcl_Project_Load "Pri.Odcl") ;加载对话框程序
- (Dcl_Form_Show Pri_Pressinfo) ;显示对话框界面
- (Princ)
- )
- (Defun C:Pri_Pressinfo_Oninitialize (/)
- (If (= (Vlax-Ldata-Get "Die-Info" "Bz-Mohao") Nil)
- (Dcl_Control_Settext
- Pri_Pressinfo_Mjbh
- (Vl-Filename-Base (Getvar "Dwgname"))
- )
- (Dcl_Control_Settext
- Pri_Pressinfo_Mjbh
- (Vlax-Ldata-Get "Die-Info" "Bz-Mohao")
- )
- )
- (If (= (Vlax-Ldata-Get "Die-Info" "Clhd") Nil)
- (Dcl_Control_Settext Pri_Pressinfo_Clhd "0.20")
- (Dcl_Control_Settext
- Pri_Pressinfo_Clhd
- (Vlax-Ldata-Get "Die-Info" "Clkd")
- )
- )
- )
- (defun c:pri_PressInfo_OK_OnClicked (/)
- (C:Pri_Pressinfo_Cencel_Onclicked)
- (vlax-ldata-put
- "Die-Info"
- "Bz-Mohao"
- (Dcl_Control_Gettext Pri_Pressinfo_Mjbh)
- )
- (vlax-ldata-put
- "Die-Info"
- "Clhd"
- (Dcl_Control_Gettext Pri_Pressinfo_Clhd)
- )
- (vlax-ldata-put
- "Die-Info"
- "Clkd"
- (Dcl_Control_Gettext Pri_Pressinfo_Clkd)
- )
- (vlax-ldata-put
- "Die-Info"
- "Mjbj"
- (Dcl_Control_Gettext Pri_Pressinfo_Mjbj)
- )
- (vlax-ldata-put
- "Die-Info"
- "Dkjx"
- (Dcl_Control_Gettext Pri_Pressinfo_Dkjx)
- )
- (vlax-ldata-put
- "Die-Info"
- "Tljx"
- (Dcl_Control_Gettext Pri_Pressinfo_Tljx)
- )
- (dcl_Form_Close pri_PressInfo)
- )
- (Defun C:Pri_Pressinfo_Cencel_Onclicked (/)
- (Dcl_Form_Close Pri_Pressinfo) ;关闭对话框界面
- )
|