- 积分
- 955
- 明经币
- 个
- 注册时间
- 2012-5-10
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
(defun c:A4H( )
(setq p0 '(0 0) p1 '(25 205) p2 '(292 205) p3 '(292 5) p4 '(25 5) p5 '(0 210) p6 '(297 210) p7 '(297 0) p8 ' (280 23.75) p9 '(235 5) p10 '(165 49) P11 '(139 31) P12 '(0 300))
(command "zoom" "a")
(command "layer" "n" "MAIN" "c" "7" "MAIN" "")
(command "layer" "n" "CENTER" "c" "1" "CENTER" "")
(command "layer" "n" "DIM" "c" "5" "DIM" "" )
(command "layer" "n" "HIDD" "c" "3" "HIDD" "" )
(command "layer" "n" "2" "c" "2" "2" "" )
(command "layer" "l" "hidden2" "HIDD" "" )
(command "layer" "l" "center2" "CENTER" "" )
(command "regen")
(command "layer" "s" "2" "")
(COMMAND "OSNAP" "off")
(command "pline" p1 p2 p3 p4 p1 "")
(command "layer" "s" "MAIN" "")
(command "pline" p0 p5 p6 p7 p0 "")
(command "zoom" "e")
(COMMAND "OSNAP" "off")
(command "pline" "148,41" "292,41" "")
(command "pline" "196,41" "196, 5" "")
(command "pline" "148,25" "196,25" "")
(command "pline" "148,41" "148, 5" "")
(command "pline" "244,29" "292,29" "")
(command "pline" " 244,41" "244, 5" "")
(command "pline" "244,17" "292,17" "")
(command "pline" "196,21.8" "244,21.8" "")
(command "layer" "s" "dim" "")
(command "pline" "176,41" "176,25" "")
(command "pline" "186,41" "186,25" "")
(command "pline" "154,41" "154,25" "")
(command "pline" "160,41" "160,5" "")
(command "pline" "148,33" "196,33" "")
(command "pline" "148,37" "196,37" "")
(command "pline" "148,29" "196,29" "")
(command "pline" "148,20" "196,20" "")
(command "pline" "184,25" "184,5" "")
(command "pline" "148,15" "196,15" "")
(command "pline" "172,25" "172,5" "")
(command "pline" "148,10" "196,10" "")
(command "pline" "220,21.8" "220, 5" "")
(command "pline" "196,16.2" "244,16.2" "")
(command "pline" "208,21.8" "208,10.6" "")
(command "pline" "232,21.8" "232,10.6" "")
(command "pline" "196,10.6" "244,10.6" "")
(command "style" "DIMENSION" "ROMANT.SHX" "0" "0.8" "0" "n" "n" "n")
(command "style" "Standard" "楷体_GB2312" "0" "0.8" "0" "n" "n" )
(command "layer" "s" "dim" "")
(command "text" "j" "m" "151.0000,27.0000" "2.4" "0" "标记")
(command "text" "j" "m" "157.0000,27.0000" "2.4" "0" "处数")
(command "text" "j" "m" "168.0000,27.0000" "2.4" "0" "更改文件号")
(command "text" "j" "m" "181.0000,27.0000" "2.4" "0" "签 名")
(command "text" "j" "m" "191.0000,27.0000" "2.4" "0" "日 期")
(command "text" "j" "m" "154.0000,22.5000" "3.2" "0" "设 计")
(command "text" "j" "m" "154.0000,17.5000" "3.2" "0" "校 对")
(command "text" "j" "m" "154.0000,12.5000" "3.2" "0" "审 核")
(command "text" "j" "m" "154.0000,7.5000" "3.2" "0" "工 艺")
(command "text" "j" "m" "178.0000,22.5000" "3.2" "0" "标准化")
(command "text" "j" "m" "178.0000,17.5000" "3.2" "0" "审 定")
(command "text" "j" "m" "178.0000,12.5000" "3.2" "0" "录 入")
(command "text" "j" "m" "178.0000,7.5000" "3.2" "0" "日 期")
(command "text" "j" "m" "202.0000,19.0000" "3.2" "0" "材 料")
(command "text" "j" "m" "214.0000,19.0000" "3.2" "0" "数 量")
(command "text" "j" "m" "226.0000,19.0000" "3.2" "0" "重 量")
(command "text" "j" "m" "238.0000,19.0000" "3.2" "0" "比 例")
(command "text" "j" "m" "208.0000,7.8000" "3.2" "0" "共 页")
(command "text" "j" "m" "232.0000,7.8000" "3.2" "0" "第 页")
(alert "提示:本程序标题栏在标准基础上缩小了0.8倍
点击确定继续填写其他内容")
(if (null str$$)
(progn
(setq str$$ "机器名称")
(prompt "\n请输入机器名称 <>: ")
)
(progn
(prompt "\n请输入机器名称<")
(princ (strcat str$$ ">: "))
)
);if end
(setq str (getstring))
(if (= "" str)
(setq str str$$)
(setq str$$ str)
);if end
(if (null str1$$)
(progn
(setq str1$$ "零件图号")
(prompt "\n请输入零件图号 <>: ")
)
(progn
(prompt "\n请输入零件图号<")
(princ (strcat str1$$ ">: "))
)
);if end
(setq str1 (getstring))
(if (= "" str1)
(setq str1 str1$$)
(setq str1$$ str1)
);if end
(if (null str2$$)
(progn
(setq str2$$ "零件名称")
(prompt "\n请输入零件名称 <>: ")
)
(progn
(prompt "\n请输入零件名称<")
(princ (strcat str2$$ ">: "))
)
);if end
(setq str2 (getstring))
(if (= "" str2)
(setq str2 str2$$)
(setq str2$$ str2)
);if end
(if (null s1$$)
(progn
(setq s1$$ "A3")
(prompt "\n请输入材料类别 <A3>: ")
)
(progn
(prompt "\n请输入材料类别<")
(princ (strcat s1$$ ">: "))
)
);if end
(setq s1 (getstring))
(if (= "" s1)
(setq s1 s1$$)
(setq s1$$ s1)
);if end
(if (null s2$$)
(progn
(setq s2$$ "1")
(prompt "\n请输入零件数量 <1>: ")
)
(progn
(prompt "\n请输入零件数量<")
(princ (strcat s2$$ ">: "))
)
);if end
(setq s2 (getstring))
(if (= "" s2)
(setq s2 s2$$)
(setq s2$$ s2)
);if end
(if (null s3$$)
(progn
(setq s3$$ "1:1")
(prompt "\n请输入图形比例 <默认1:1>: ")
)
(progn
(prompt "\n请输入图形比例<")
(princ (strcat s3$$ ">: "))
)
);if end
(setq s3 (getstring))
(if (= "" s3)
(setq s3 s3$$)
(setq s3$$ s3)
);if end
(if (null s5$$)
(progn
(setq s5$$ "公司名称")
(prompt "\n请输入公司名称 <>: ")
)
(progn
(prompt "\n请输入公司名称<")
(princ (strcat s5$$ ">: "))
)
);if end
(setq s5 (getstring))
(if (= "" s5)
(setq s5 s5$$)
(setq s5$$ s5)
);if end
(if (null s4$$)
(progn
(setq s4$$ "林承强")
(prompt "\n请输入设计者姓名 <林承强>: ")
)
(progn
(prompt "\n请输入设计者姓名<")
(princ (strcat s4$$ ">: "))
)
);if end
(setq s4 (getstring))
(if (= "" s4)
(setq s4 s4$$)
(setq s4$$ s4)
);if end
(command "text" "j" "m" "202,13.3963" "3.333" "0" s1 )
(command "text" "j" "m" "214,13.3963" "3.333" "0" s2 )
(command "text" "j" "m" "238,13.3963" "3.333" "0" s3 )
(command "text" "j" "m" "220,31.4000" "4" "0" str )
(command "text" "j" "m" "268,35" "4" "0" str1 )
(command "text" "j" "m" "268,23" "4" "0" str2 )
(command "text" "j" "m" "166.3000,22.5668" "3" "0" s4 )
(command "text" "j" "m" "268.0000,11.0000" "4.2" "0" s5)
(command "DIMTXSTY" "DIMENSION" )
(command "osnap" "end,int,mid,cen,per,app")
(initget 1 "Y N")
(setq pd (getkword "\n是否要对图框进行缩放 (Y/N) "))
(if (= pd "N") ("\n程序已经结束")
);if end
(if (null qw$$)
(progn
(setq qw$$ "1")
(prompt "\n 请输入图框缩放的比例<>: ")
)
(progn
(prompt "\n请输入图框缩放的比例<")
(princ (strcat qw$$ ">: "))
)
);if end
(setq qw (getstring))
(if (= "" qw)
(setq qw qw$$)
(setq qw$$ qw)
);if end
(if (= pd "Y")
(command "scale" "all" "" "0,0" qw )
);if end
(command "zoom" "e")
(command "ortho" "on")
(alert "OK操作已完成,如有发现程序有误请与本人联系。")
)
end
加载后,说红字那部分函数错误
|
|