"
#0-1
pi=3.1415926535: 
'图层颜色：湖蓝色acByBlock = 0，4  红色acRed = 1  黄色acYellow = 2  绿色acGreen = 3  青色acCyan = 4  蓝色acBlue = 5  洋红色acMagenta = 6  白色acWhite = 7  随层acByLayer = 256  随块acbyblock =
'图层线型：Continuous--连续  CENTER--点划线   DASHED2--虚线   PHANTOM2--双点划线
'图层直线宽度（毫米值乘以100，只能在此范围选择）：5，9，13，15，18，20，25，30，35，40，50，53，60，70，80，90，100，106，120，140，158，200，211
'粗实线层，颜色=白色，线型=连续，线宽=0.4 
tuceng0 = 7，Continuous，40 
'中心线层，颜色=红色，线型=点划线，线宽=0.15  
tuceng1 = 1，center ，15 
'尺寸线层，颜色=绿色，线型=连续，线宽=0.15  
tuceng2 = 3，Continuous，15 
'剖面线层，颜色=青色，线型=连续，线宽=0.15    
tuceng3 = 4，Continuous，15 
'虚线层，颜色=洋红色，线型=连续，线宽=0.15 
tuceng4 = 6，DASHED2，15 
'虚拟物体层，蓝色，线型=双点划线，线宽=0.15  
tuceng5 = 5，PHANTOM2，15 
wtline=15  '直线宽度  
colorline= 6 '直线颜色  
colorlinebzm=4: '密集标注线颜色
colortxt=1:   '文字颜色
colorjiaodu=1:   '角度线颜色
bihgtxt=2:   '统一文字高度比：以屏幕高度的1%为文字高度的单位，文字高度比大，则文字高度增大。
bijghgtxt=0.7:'文字高度与密集间隔线高度的比值 
bilinedh=1:    '点划线比值
bihgjiantou=0.8 '箭头高度比,以文字高度为基准
bihgjiexianmd=0.5 '尺寸界线箭头末端的高度，以文字高度为基准
xsdfgzf=. '小数点分隔字符
jdxsdws=2'小数点位数
'wtlinelk=45: '轮廓线宽度
'colorlinelk=7: '轮廓线颜色 
'wtlinebz =15: '标注线宽度   
'colorlinebz=6: '标注线颜色 
'colordianhua  '点划线颜色 
'aclnwt080=80  
'图层线型linetype：continuous连续线 
'线型比例linetypescale:0.3--2.5
'线宽lienweight:毫米数乘以100
'tuceng0 name = 轮廓层:color =7: lineweight = 140:linetypescale = 2.5: 
'tuceng1 name = 标注层:color = 5: linetype = continuous: linetypescale = 2.5: lineweight = 15
'tuceng2 name = 中心线层:color = 11: linetype = continuous: linetypescale = 2.5: lineweight = 15
'标注样式设置值
'1.换算单位的设置值  2.角度标注的单位格式  
'3.用作尺寸线第一端自定义箭头的块  
'4.用作尺寸线第二端自定义箭头的块  
'5.尺寸线的第一端箭头类  6.尺寸线第二端箭头类  
'7.尺寸线箭头、引线箭头和钩线的大小  
'8.半径标注和直径标注的中心标记大小  
'9.半径标注和直径标注的中心标记类型  
'10.在十进制标注和公差值中用作小数分隔符的字符  
'11.标注、引线、或公差对象的尺寸线颜色  12.尺寸线的线宽  '13.是否隐藏第一段尺寸线  14.是否隐藏第二段尺寸线  
'15.是否只在尺寸界线之间显示尺寸线  
'16.标注的尺寸界线的颜色  17.尺寸界线超出尺寸线的距离
'18.尺寸界线从原点偏移的距离  19.尺寸界线的线宽
'20.第一条尺寸界线的端点  21.第二条尺寸界线的端点
'22.第一条尺寸界线的起点  23.第二条尺寸界线的起点
'24.是否隐藏第一条尺寸界线  25.是否隐藏第二条尺寸界线
'26.文字和箭头在尺寸界线的内部或外部
'27.当文字放在尺寸界线之外时是否仍要在尺寸界线之间画一条尺寸线  28.标注和公差中的分数值的格式
'29标注文字水平对齐格式  30.线性标注测量值的全局缩放比例
'31.标注或公差的主单位的小数位数  
'32.是否隐藏标注值中的前导零  33.是否隐藏标注值中的后续零
'34.是否隐藏标注值中的零英尺测量值
'35.是否隐藏标注值中的零英寸测量值
'36.标注和公差的文字颜色  
'37.当用户截断尺寸线以放置标注文字时，标注文字与尺寸线之间的距离
'38.标注或公差的高度  39.是否在尺寸界线之内绘制标注文字
'40.所有标注类型（坐标标注除外）的标注文字是否位于尺寸界线之内
'41.当文字移动时标注文字的绘制方式
'42.所有标注类型（坐标标注除外）的标注文字在尺寸界线之外的位置
'43.标注文字的位置    44.角度标注文字的精度
'45.标注值的前缀      46.标注文字的旋转角度
'47.标注值的后缀      48.公差是否要与标注文字一起显示
'49.公差值文字高度相对于标注文字高度的比例
'50.公差值相对于标注文字的垂直对正方式
'51.标注文字的下偏差  52.主标注中公差值的精度
'53.是否隐藏公差值中的前导零  54.是否隐藏标注值中的后续零
'55.标注文字的上偏差  
'56.所有标注（角度标注除外）的单位格式
'57.文字相对于尺寸线的垂直位置

#1-1

#1-2
zkth = 1 
cdpx = 4,4,3,3,6
cdpx = 5+ndfs*3/4,4,5+ndfs*3/4+1,4,2
cdpx = 1,1,5,5,4
cdpx = 5,5,4,4,4
cdpx = 3,3,5+ndfs,5+ndfs,4
cdpx = 5+ndfs,5+ndfs,2,2,4
i = 1 to ndfs-1,cdpx =ndfs,5+i,1,5+i,5+i,0,1
if ztjxjs = 0 then
 i = 1 to ndfs-1,cdpx =ndfs,5+i,4,5+i,5+i,0,1
else
 i = 1 to ndfs-1,cdpx=ndfs,6+ndfs+i,6+ndfs+i,6+ndfs+i,4,0,1
endif

#1-3
zkth = 1 
cdpx = 2,2,1,1,6
cdpx = ndfs/4,1,ndfs/4+1,1,3
cdpx = 1,1,ndfs+3,ndfs+3,2
cdpx = 3,3,2,2,3
i = 2 to ndfs,cdpx =ndfs,ndfs+4-i,1,ndfs+4-i,ndfs+4-i,0,2
zkth = 2 
cdpx = ndfs+2,ndfs+2,2,2,6
cdpx = ndfs/4,ndfs/4,ndfs/4-1,ndfs/4-1,3
cdpx = 2,2,ndfs*2+3,ndfs*2+3,2
cdpx = ndfs+3,ndfs+3,ndfs+2,ndfs+2,3
i = 2 to ndfs,cdpx =ndfs,1+i,1+i,ndfs*2+4-i,ndfs*2+4-i,0,2

#1-4
zkth = 1 
cdpx = 1,1,ndfs+3,1,5
cdpx = ndfs/4,1,ndfs/4+1,1,2
cdpx = 2,2,1,1,2
cdpx = ndfs+3,1,ndfs+2,ndfs+2,3
i = 1 to ndfs-1,cdpx=ndfs,2+i,2+i,2+i,1,0,1
zkth = 2 
cdpx = 2,2,1,1,3
cdpx = 1,1,4,1,3
cdpx = 5,5,4,5,2
dianhua = 1,ndfs/4+5,4,ndfs*0.75+5,-1.5,1.5
i = 1 to ndfs/4,cdpx =ndfs,ndfs/2+6-i,ndfs/2+6-i,4+i,4+i,0,1
i = 1 to ndfs/4-1,cdpx =ndfs,ndfs/2+5+i,ndfs/2+5+i,ndfs+5-i,ndfs+5-i,0,1
i = 1 to ndfs/4,cdpx =ndfs,ndfs+5-i,ndfs+5-i,4,ndfs+5-i,2,1
i = 1 to ndfs/4+1,spqsd =ndfs,4,ndfs/2+6-i,ndfs/2+6-i,ndfs/2+6-i,ndfs/2+5,ndfs/2+5,-2,0.8

#1-5

#1-6
zkth=2
i = 1 to ndfs/2+1,czqsd =ndfs,i+4,1,i+4,i+4,5,5,-2,0.8
i = 1 to ndfs/2,czqsd=ndfs,5+ndfs-i,1,ndfs+5-i,ndfs+5-i,ndfs+4,ndfs+4,2,0.8

#1-7
zkth = 1 
tuceng=tuceng1
cdpx = 2,2,1,1,0.05
i = 1 to ndfs,cdpx =2+i,1,2+i,2+i,0

#1-8
if x=3 then y=4 else k =3

#1-9

#1-10

#1-11

#1-12
zkth = 1 
dianhua = 3,3,1,1,-2,2
cdpx = 2,2,1,1,5
cdpx = 1,1,1,ndfs+3,2
cdpx = 3,3,2,2,5
cdpx = ndfs/2,1,ndfs/2+1,1,2
cdsp = 15,15,3,3,2
cdsp = 16,16,27,27,2
cdcz = 23,23,1,1,-4
cdcz = 11,11,2,2,3
i = 1 to ndfs-1,czqsd =ndfs,3+i,1,3+i,3+i,2,2,0,1
xian = 3+ndfs/2,3+ndfs/2,3+ndfs/2,1,-4,4

#1-13

#1-14

#1-15

#1-16

#1-17
zkth=2
if lbzb=0 then 
  cdpx = 1,1,1,ndfs+3,2
  i = 1 to ndfs-1,cdpx=ndfs,3+i,1,3+i,3+i,0,1
else
  cdpx = 1,1,1,ndfs+5,2
  cdpx = ndfs/2+3,1,ndfs/2+4,1,3
  cdpx = ndfs/2+3-vbza,1,ndfs/2+5+vbza,1,6
  cdcz =1,1,ndfs/2+5+vbza,ndfs/2+5+vbza,-7
  cdcz =2,2,ndfs/2+3-vbza,ndfs/2+3-vbza,8
  i = 1 to ndfs+1,cdpx=ndfs,3+i,1,3+i,3+i,0,1
  i = 1 to nbza,cdcz=ndfs,2,2,haobza.i,haobza.i,3+i*2,1
  i = 1 to nbza,cdcz=ndfs,1,1,haobzb.i,haobzb.i,-7+i*2,1
endif
cdpx = 2,2,1,1,10
cdpx = 3,3,2,2,3

#1-18
3-4+12
x=4:x-3+5
y=x-12:if x>y then k=12 else k=10
t=x+y:for i=1 to x:j=y+i:next:t=x-y+j+4

#1-19
zkth = 1 
cdpx = 1,1,ndfs+3,1,5
cdpx = ndfs/4,1,ndfs/4+1,1,2
cdpx = 2,2,1,1,2
cdpx = ndfs+3,1,ndfs+2,ndfs+2,3
i = 1 to ndfs-1,cdpx=2+i,2+i,2+i,1,0,ndfs,2
zkth = 2 
cdpx = 2,2,1,1,3
cdpx = 1,1,4,1,3
cdpx = 5,5,4,5,2
dianhua = 1,ndfs/4+5,4,ndfs*0.75+5,-1.5,1.5
i = 1 to ndfs/4,cdpx =ndfs,ndfs/2+6-i,ndfs/2+6-i,4+i,4+i,0,2
i = 1 to ndfs/4-1,cdpx =ndfs,ndfs/2+5+i,ndfs/2+5+i,ndfs+5-i,ndfs+5-i,0,2
i = 1 to ndfs/4,cdpx =ndfs,ndfs+5-i,ndfs+5-i,4,ndfs+5-i,2,2
i = 1 to ndfs/4+1,spqsd =ndfs,4,ndfs/2+6-i,ndfs/2+6-i,ndfs/2+6-i,ndfs/2+5,ndfs/2+5,-2,0.8
zkth = 3
cdpx = 2,2,1,1,3
cdpx = 1,1,4,1,3
i = 1 to ndfs/2,cdpx =ndfs,4+i,4+i,4+i,2,0,2
i = 1 to ndfs/2,cdpx =ndfs,4+i,ndfs+7-i,4+i,2,0,2
i = 1 to ndfs/2,spqsd =ndfs,ndfs/4+5-i,ndfs/4+5-i,ndfs/4+5+i,ndfs/4+5+i,2,2,2,0.8

#1-20
zkth=1
cdcz=haobz.1,haobz.2,haobz.3,haobz.4,3

#1-21
zkth=1
ndf=9
if ndf<8 then
  x=4
elseif ndf=24 then
'i = 1 to 2,cdcz=ndfs,i+1,i+1,i+6,i+6,-2-i,1
'cdcz=2,2,10,10,-4
y=2
else
y=5
endif

#1-22
zkth=1
for i=1 to 3
  x=i+2
next

#1-23

#1-24
n=3
for i=1 to n
 x=3+i
next

#1-25
x=3:y=x+4

#1-26
for i = 3 to 1 step -0.5
  x=3+i
  for j=1 to 3:y=x+j:next
next

#1-27
if x=3 then y=4+2 else y=22

#1-28
zkth = 3
cdpx = 2,2,1,1,3
cdpx = 1,1,4,4,3
cdpx = ndfs/2+6,ndfs/2+6,ndfs/2+5,ndfs/2+5,3,1
cdpx = ndfs/2+5,ndfs/2+5,2,ndfs/2+5,3,1
cdpx = ndfs+6,ndfs+6,5,5,-3,1
cdpx = 5,5,2,5,-3,1
i = 2 to ndfs/2,cdpx =ndfs,4+i,4+i,2,4+i,0,1
i = 2 to ndfs/2,cdpx =ndfs,4+i,4+i,ndfs+7-i,ndfs+7-i,0,1
i = 1 to ndfs/4,czqsd =ndfs,ndfs/4+5-i,ndfs/4+5-i,ndfs/4+5+i,ndfs/4+5+i,2,2,2,0.8

#1-29
x=4
if x>3 then y=4 else y = 5
k=y+3
if x=4 then
  y=6
  if k=4+x then
    if y>5 then j=33 else j=x
  elseif k<y then
    if y>x then
      t=4
     endif
  else
    x=y+2
  endif
elseif x=2 then
  y=8
else
  y=2
endif
for i = 1 to n step 1
y=x+i
next
for k=1 to n step 2

#1-30
y=1
for i=1 to 4:x=y+i:next

#1-31
3-4+12：x=3:y=5
x+4-y*2
for i=3 to 1 step -0.2
  x=3+i
next
if x<5 then
  k=y+3
  for i=1 to 4:x=y+i:next
endif

#1-32
xian = 1,1,ndfs+2,1,0,0

#2-1
zkth = 1 
cdjd = nzb,nzb,1,1,nzb-1,nzb-1,0.8
banjing = nzb,nzb,nzb/3,nzb/3,10

#2-2
zkth = 1 
cdjd =0,0, 1,1,nzb/2,nzb/2,0.8
banjing = 0,0,nzb/8,nzb/8,10
banjing = 0,0,nzb*5/8,nzb*5/8,10

#2-3
zkth = 1
banjing = 0,0,nzb/8,nzb/8,5

#2-4

#2-5

#2-6

#2-7

#2-8

#2-9

#2-10

#2-11

#2-12

#2-13

#2-14

#2-15

#2-16

#2-17

#2-18

#2-19

#2-20

#2-21

#2-22

#2-23

#2-24

#3-1
if x=3 then y=4+2 else y=22

#3-2

#3-3

#3-4

#3-5

#3-6

#3-7

#3-8

#3-9

#3-10

#3-11

#3-12

#3-13

#3-14

#3-15

#3-16

#3-17

#4-1
x=3:y=x+4

#4-2

#4-3

#4-4

#4-5

#4-6

#4-7

#4-8

#4-9

#4-10

#4-11

#4-12

#4-13

#4-14

#4-15

#4-16

#4-17

#4-18

#4-19

#5-1

#5-2

#5-3

#5-4

#5-5

#5-6

#5-7

#5-8

#5-9

#5-10

#5-11

#5-12

#5-13

#5-14

#6-1

#6-2

#6-3

#6-4

#6-5

#6-6

#6-7

#7-1
ndf1 = vbzb * 2 + 2 
x=ndf1+3

#7-2

#7-3

#7-4

#7-5

#7-6

#7-7

#7-8

#7-9

#7-10

#7-11

#7-12

#7-13

#7-14

#7-15

#7-16

#7-17

#7-18

#7-19

#7-20

#7-21

#7-22

#7-23

#7-24

#7-25

#7-28
"
