|
|
(defun c:a4 (/ v1 v2 bl) ;命令a4
' f6 `# E6 G# g% Q9 v. S1 v ;;初始化环境
. N$ k0 L2 d) [" Q" [ (setq v1 (getvar "osmode"))
* t& h- K; h8 _3 T (setq v2 (getvar "cmdecho"))
8 l% q5 Q+ \% N3 m2 Z- K8 m (setvar "osmode" 0)7 I# e7 s( D2 N" [" ^
(setvar "cmdecho" 0)
$ K) n& j" `+ i5 [# w ;;' o, `% C9 T7 r; z- i* `
(command "style" "文字" "宋体" "" "" "" "" "" "") ;定义汉字样式为“文字”(6个默认)& _0 {# `+ b3 Z4 ~
(command "layer" "m" "细实线" "") ;生成当前图层“细实线”
9 o: l/ z7 d8 k$ k) C! ^ (command "limits" "0,0" "210,297")3 R% d6 p. m' N% b7 K, P7 p
(command "zoom" "a")
/ D. a- l# G, |( O+ Y o" t, }0 \ (command "line" "0,0" "0,297" "210,297" "210,0" "c") ;绘制a4图纸边界线
* G; h! s1 o' J! u! L. q: d (command "layer" "m" "粗实线" "lw" 0.4 "" "") ;生成当前图层“粗实线”
: z9 C w/ H& E9 C! @ (command "line" "10,10" "10,282" "200,282" "200,10" "c") ;绘制图框粗线8 u# f ]8 J I) e* W( X
(command "layer" "m" "细实线" "") ;在细线层上绘制内部线条
6 q' \: G0 o+ i (command "line" "10,15" "195,15" "195,277" "35,277""35,15""")
2 \9 F. k" T! h2 F- w3 O( y( T (command "line" "10,119" "35,119" "")
5 Q7 V7 D5 Z6 t* T) |8 s7 x (command "line" "10,111" "35,111" "")% e3 i+ V9 w, z; N
(command "line" "10,103" "35,103" "")
: c8 H6 V7 x2 a6 v* [" z (command "line" "10,95" "35,95" "")( i% O+ _% [2 M+ C$ a1 R. X
(command "line" "10,87" "35,87" "")8 b7 \; |* O& ^( [9 u9 g0 @
(command "line" "10,79" "35,79" "")1 O: T) g4 q4 c3 Z& v
(command "line" "10,71" "35,71" "") W6 h6 \ t8 E6 l7 ?( _
(command "line" "10,63" "95,63" "")
" m2 r4 s4 \2 e- y" h (command "line" "10,55" "35,55" "")6 c; K7 N5 X+ \7 r. V
(command "line" "10,47" "35,47" "")8 Y4 \0 d! F, N. w* R+ w1 p) e
(command "line" "10,39" "145,39" "")
2 f! |! U: V+ o/ i/ e( d3 h (command "line" "10,31" "35,31" "")
) G5 B6 l7 Z- `/ w4 f# J' E (command "line" "10,23" "35,23" "")0 u3 R. {0 f* v! w
(command "line" "35,69" "195,69" "")
! c+ h5 X; b5 u* g8 C (command "line" "35,57" "95,57" "")
7 \% c8 O3 u+ v (command "line" "35,51" "95,51" "")
! p+ `; U( r5 h ` (command "line" "35,45" "95,45" "")
$ N: @6 g+ e- ]) C! ~; E (command "line" "35,33" "195,33" "")
; y r, R/ C8 P5 g6 V& T A (command "line" "35,27" "95,27" "")
0 K; l }8 k7 {- h9 B) U3 Q (command "line" "35,21" "145,21" "")
4 z( h1 U# g* z+ Q7 m" o7 ]6 u (command "line" "43,69" "43,39" "")
( C8 u( h- X& y/ b% v8 r (command "line" "51,69" "51,39" "")
$ M5 b3 `+ |% _% K W6 s (command "line" "69,69" "69,39" "")* B6 Q: S% e4 V: b
(command "line" "87,69" "87,39" "")
! B/ W V' ^: f v9 \* P (command "line" "95,69" "95,15" "")+ @2 q- G% k8 {: Y1 b8 d! o9 f4 u7 D
(command "line" "50,39" "50,15" "")2 W6 s# p8 V8 W2 q
(command "line" "50,39" "50,15" "")
5 ^+ s S- n; A5 { (command "line" "65,39" "65,15" "")! e M5 X3 [2 i
(command "line" "80,39" "80,15" "")
1 W! l8 ~2 Z0 P! w( f9 k { (command "line" "102.5,33" "102.5,21" "")+ d# l! b) u1 j9 Y
(command "line" "110,33" "110,21" ""), }& L, t, b' v) l+ E2 D( h$ v; K
(command "line" "117.5,33" "117.5,21" "")+ n9 ]3 }' c* T( I
(command "line" "125,39" "125,21" "")
% {- Z$ f4 B- t! ^ (command "line" "135,39" "135,21" "")& E2 C. e+ \% M! w* H
(command "line" "145,69" "145,15" "")
! j/ m% P' v5 X# J2 O7 c1 D (command "line" "120,21" "120,15" "")3 H% z9 D/ m+ L- v, |3 S
(command "line" "145,51" "195,51" "")
g. u) G7 H" e' f) ~# x (command "line" "35,260.72" "85,260.72" "85,276.72" "")2 B& F/ o6 C) D0 B
(command "layer" "m" "0" "") ;切换至0层
! q. `2 g! N/ I6 p( I (command "text" "m" (list 22.5 115.2) 2.5 0 "借(通)用件登记");填写标题栏
. y, ~' I4 L& f+ Z7 s" U6 W (command "text" "m" (list 23 105.8) 2.5 0 "描 图")' ~! e- }9 }6 W* V/ E
(command "text" "m" (list 23 89.8) 2.5 0 "描 校")& R2 |0 n9 X! o
(command "text" "m" (list 22.2 74) 2.5 0 "旧底图登记")3 Y" x q! s, x0 V- A. Q/ G! V
(command "text" "m" (list 22.7 57.8) 2.5 0 "底 图 总 号")
' x+ {0 N% c( h1 _ (command "text" "m" (list 23 41.8) 2.5 0 "签 字")
4 Z7 _) R0 a+ b' h! |1 B (command "text" "m" (list 23 26) 2.5 0 "日 期")
1 H* |* Z" F8 U" b: V (command "text" "m" (list 39.1 41.8) 2.5 0 "标记")
4 D. B; u3 B! p' K; l6 r (command "text" "m" (list 47 41.8) 2.5 0 "处数")
+ ?8 F! J1 ~- k- N+ ?( a: H (command "text" "m" (list 60.3 41.8) 2.5 0 "更改文件号")) P" o9 Z* _+ y t
(command "text" "m" (list 78.3 41.8) 2.5 0 "签 字")
( W- m, f) A# g/ X' Q$ w9 M$ ~. M (command "text" "m" (list 91 41.8) 2.5 0 "日期")$ ? h. B# j3 L0 E2 s. f! m6 d" I
(command "text" "m" (list 43.2 35.6) 2.5 0 "设 计")
+ O4 w# K, p- @5 H) F% T8 t% D (command "text" "m" (list 43.2 30) 2.5 0 "绘 图")
2 U+ n5 T: ], c8 L: H/ v& w; T% ^( H (command "text" "m" (list 43.2 23.8) 2.5 0 "审 核")
' P5 \* P: U$ P! I! T (command "text" "m" (list 43.2 18.4) 2.5 0 "工 艺")
2 f0 ]+ J, ]* {$ E" _( J& [& o (command "text" "m" (list 72.6 35.6) 2.5 0 "标准化")
. J) P# L* t) W% S* Z6 s( i (command "text" "m" (list 72.6 30) 2.5 0 "审 定"); [% [% B( g# N# B- v2 i' I, K
(command "text" "m" (list 72.6 18.4) 2.5 0 "日 期")) g- N# P; |7 S
(command "text" "m" (list 110 35.6) 2.5 0 "阶 段 标 识")1 {5 e8 @, Z$ ~' z
(command "text" "m" (list 129.9 35.6) 2.5 0 "重量"); k* R7 Y$ I! {: Z+ E$ }& l' `
(command "text" "m" (list 139.8 35.6) 2.5 0 "比例")
; `8 P. d) G* g; m# q; p (command "text" "m" (list 107 18.4) 2.5 0 "第 页"). s! ?# C2 F3 \$ `$ R5 h
(command "text" "m" (list 131.8 18.4) 2.5 0 "共 页")
6 P4 W6 |" d/ d$ g ;;还原环境设置
# k' C+ b7 h, u6 Z- d: e4 m (setvar "osmode" v1): S+ V9 ^; T. V5 @
(setvar "cmdecho" v2)& K G6 r) p; q: W3 G3 p
(princ)5 ~3 y& C) p$ s3 N
)
# r' {8 X" C, y" H s7 w& y
) D# ~- a& _* O# N M |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|