只需一步,快速开始
使用道具 举报
设置为变量没有问题啊:
Dim i As Integer i = 1 Dim coord As Variant coord = plineObj.Coordinate(i)
你是用Coordinate还是用Coordinates?
hs = xlApp.WorksheetFunction.Count(Columns(1))
Dim Coordinates(hs - 1) As Double
For i = 1 To hs Coordinates(i - 1) = Cells(i, 1) Next i Set acadpline = mspace.AddLightWeightPolyline(Coordinates)acadpline.Update
提示编译错误:要求参数表达式
将Dim Coordinates(hs - 1) As Double改为:
ReDim Coordinates(hs - 1) As Double试一下.
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 ) ©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途
GMT+8, 2024-11-26 11:38 , Processed in 0.227944 second(s), 24 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.