关于用VB在CAD中画直线的问题

2025-01-08 03:30:23
推荐回答(1个)
回答1:

set doc = acadapp.activedocument
set mspace = doc.modelspace
dim p1(2) as double ,p2(2) as double
p2(1)=10#
mspace.addline p1,p2

点在VBA是用三元素的Double数组表示
p1(0)-X
p1(1)-Y
p1(2)-Z