CAD许多方法返回的是Variant型数据,在VB.NET中取消了Variant型数据,为什么用Object类型处理以下语句总是出错? Dim MyBorder As AcadLWPolyline
Dim bPoints As Object
......
bPoints = MyBorder.Coordinates
我知道解决办法了:
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.Geometry
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.Interop
Imports Autodesk.AutoCAD.Interop.Common
Public Class Class1
Dim CenPt As New Point3d(0, 0, 0)
End Class