本帖最后由 作者 于 2005-8-1 19:17:01 编辑
Private Sub div()
Dim obj As AcadObject Dim basept As Variant Dim SSETS As AcadSelectionSet On Error Resume Next If Not IsNull(ThisDrawing.SelectionSets.Item("PLSET")) Then Set SSETS = ThisDrawing.SelectionSets.Item("PLSET") SSETS.Delete End If Set SSETS = ThisDrawing.SelectionSets.Add("PLSET") SSETS.SelectOnScreen Set obj = SSETS.Item(0) ' ThisDrawing.Utility.GetEntity obj, basept, "please pickt pl:" MsgBox obj.ObjectName
'请教下一句怎样改才可以完成measure的任务? ThisDrawing.SendCommand "MEASURE" & vbCr & "P" & vbCr & "6" & vbCr
End Sub |