这个程序出错了,哪位高手大哥帮我改改啊,很着急用,谢谢了
entity/pt(20),ac(6),obj(16),ln(4)
number/L1,L2,L3,L4,L5,L6,L7,L8,L9,d1,d2,d3,d4,d5,d6,d7,d8,d9
number/m1,m2,a1,a2,b1,b2,h1,h2
l10:
param/'enter the points','首段长度=',num1,'首段直径=',num2,$
'键槽1长度=',num3,'键槽1宽度=',num4,'键槽1深度=',num5,$
'第二段长度=',num6,'第二段直径=',num7,$
'第三段长度=',num8,'第三段直径=',num9,$
'第四段长度=',num10,'第四段直径=',num11,$
'第五段长度=',num12,'第五段直径=',num13,$
'第六段长度=',num14,'第六段直径=',num15,$
'第七段长度=',num16,'第七段直径=',num17,$
'键槽2长度=',num18,'键槽2宽度=',num19,'键槽2深度=',num20,$
'第八段长度=',num21,'第八段直径=',num22,$
'第九段长度=',num23,'第九段直径=',num24,resp
jump/l10:,trm:,,resp
l20:
L1=num1
d1=num2
obj(11)=solcyl/origin,0,0,0,height,L1,diamtr,d1,axis,1,0,0
a1=num3
b1=num4
h1=num5
m1=1/2*d1-h1
pt(1)=point/(1/2*L1-a1*1/2),b1*1/2,m1
pt(2)=point/(1/2*L1+a1*1/2),b1*1/2,m1
pt(3)=point/(1/2*L1-a1*1/2),-b1*1/2,m1
pt(4)=point/(1/2*L1+a1*1/2),-b1*1/2,m1
pt(5)=point/(1/2*L1+a1*1/2),0,m1
pt(6)=point/(1/2*L1-a1*1/2),0,m1
ln(1)=line/pt(1),pt(2)
ln(2)=line/pt(3),pt(4)
ac(1)=circle/center,pt(5),radius,b1*1/2,start,90,end,270
ac(2)=circle/center,pt(6),radius,b1*1/2,start,-90,end,90
obj(12)=solext/ln(1),ln(2),ac(1),ac(2),height,h1*2,axis,0,0,1
obj(1)=subtra/obj(11),with,obj(12)
L2=num6
d2=num7
obj(2)=solcyl/origin,L1,0,0,height,L2,diamtr,d2,axis,1,0,0
L3=num8
d3=num9
obj(3)=solcyl/origin,L1+L2,0,0,height,L3,diamtr,d3,axis,1,0,0
L4=num10
d4=num11
obj(4)=solcyl/origin,L1+L2+L3,0,0,height,L4,diamtr,d4,axis,1,0,0
L5=num12
d5=num13
obj(5)=solcyl/origin,L1+L2+L3+L4,0,0,$
height,L5,diamtr,d5,axis,1,0,0
L6=num14
d6=num15
obj(6)=solcyl/origin,L1+L2+L3+L4+L5,0,0,$
height,L6,diamtr,d6,axis,1,0,0
L7=num16
d7=num17
obj(13)=solcyl/origin,L1+L2+L3+L4+L5+L6,0,0,$
height,L7,diamtr,d7,axis,1,0,0
a2=num18
b2=num19
h2=num20
m2=1/2*d7-h2
pt(7)=point/(L1+L2+L3+L4+L5+L6+1/2*L7-a2*1/2),b2*1/2,m1
pt(8)=point/(L1+L2+L3+L4+L5+L6+1/2*L7+a2*1/2),b2*1/2,m1
pt(9)=point/(L1+L2+L3+L4+L5+L6+1/2*L7-a2*1/2),-b2*1/2,m1
pt(10)=point/(L1+L2+L3+L4+L5+L6+1/2*L7+a2*1/2),-b2*1/2,m1
pt(11)=point/(L1+L2+L3+L4+L5+L6+1/2*L7+a2*1/2),0,m1
pt(12)=point/(L1+L2+L3+L4+L5+L6+1/2*L7-a2*1/2),0,m1
ln(3)=line/pt(7),pt(8)
ln(4)=line/pt(9),pt(10)
ac(3)=circle/center,pt(11),radius,b2*1/2,start,90,end,270
ac(4)=circle/center,pt(12),radius,b2*1/2,start,-90,end,90
obj(14)=solext/ln(3),ln(4),ac(3),ac(4),height,h2*2,axis,0,0,1
obj(7)=subtra/obj(13),with,obj(14)
L8=num21
d8=num22
obj(8)=solcyl/origin,L1+L2+L3+L4+L5+L6+L7,0,0,$
height,L8,diamtr,d8,axis,1,0,0
L9=num23
d9=num24
obj(9)=solcyl/origin,L1+L2+L3+L4+L5+L6+L7+L8,0,0,$
height,L9,diamtr,d9,axis,1,0,0
obj(10)=unite/obj(1),with,obj(2),obj(3),obj(4),obj(5),$
obj(6),obj(7),obj(8),obj(9)
trm:
halt |