|
发表于 2008-1-10 09:45:00
|
显示全部楼层
Sub tt()
On Error Resume Next
Dim ss As AcadSelectionSet
ThisDrawing.SelectionSets("Test").Delete
Set ss = ThisDrawing.SelectionSets.Add("Test")
Dim pnt(2) As Double
Dim ft(0) As Integer, fd(0)
ft(0) = 10: fd(0) = pnt
ss.Select acSelectionSetAll, , , ft, fd
If ss.Count = 0 Then
ThisDrawing.ModelSpace.AddText "起点", pnt, 500
Else
MsgBox "插入点已有文字"
End If
End Sub |
|