请问各位大神为什么这个CAD的VBA程序运行到第五句的时候就显示无效的过程调用或参数,急!(添加外部块)
PublicSubmm()DimaAsAcadExternalReferenceDimb(0To2)AsVariantb(0)=10:b(1)=10:b(2)=20Set...
Public Sub mm()
Dim a As AcadExternalReference
Dim b(0 To 2) As Variant
b(0) = 10: b(1) = 10: b(2) = 20
Set a = ThisDrawing.ModelSpace.AttachExternalReference("G:\vv.dwg", "rec", b, 1, 1, 1, 0, False)
a.Update
ZoomAll
End Sub 展开
Dim a As AcadExternalReference
Dim b(0 To 2) As Variant
b(0) = 10: b(1) = 10: b(2) = 20
Set a = ThisDrawing.ModelSpace.AttachExternalReference("G:\vv.dwg", "rec", b, 1, 1, 1, 0, False)
a.Update
ZoomAll
End Sub 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询