' 转换对象用自定义函数
Public Function axEnt2lspEnt(entObj As AcadEntity) As String
Dim entHandle As String
entHandle = entObj.Handle
axEnt2lspEnt = "(handent " & Chr(34) & entHandle & Chr(34) & ")"
End Function
'执行主程序
Sub fitpline()
' 在模型空间创建细多义线。
Dim plineObj As AcadLWPolyline
Dim points(0 To 7) As Double