Private Sub Class_Initialize()
'根据AutoCAD的版本判断使用的库类型
If Left(ThisDrawing.Application.Version, 2) = "15" Then
Set VL = ThisDrawing.Application.GetInterfaceObject("VL.Application.15")
ElseIf Left(ThisDrawing.Application.Version, 2) = "17" Then
Set VL = ThisDrawing.Application.GetInterfaceObject("VL.Application.17")