Function isClose() Dim n As Long n = ThisDrawing.ModelSpace.Count Dim pt As Variant pt = ThisDrawing.Utility.GetPoint(, "指定内部点: ") ThisDrawing.SendCommand "-Boundary" & vbCr & pt(0) & "," & pt(1) & vbCr & vbCr If ThisDrawing.ModelSpace.Count > n Then isClose = True Else isClose = False End If End Sub |