set doc = acadapp.activedocumentset mspace = doc.modelspacedim p1(2) as double ,p2(2) as doublep2(1)=10#mspace.addline p1,p2点在VBA是用三元素的Double数组表示p1(0)-Xp1(1)-Yp1(2)-Z