Private function PointInRegion(ByVal TlsRegion, ByVal Point) As Boolean '判断点是否在面域内 Dim pCopy As AcadRegion, pRegion As AcadRegion Dim pobjs(0) As AcadEntity Set pCopy = TlsRegion.Copy Set pobjs(0) = pWorkSpace.AddCircle(Point, 0.0001) Set pRegion = pWorkSpace.AddRegion(pobjs)(0) pRegion.Boolean acIntersection, pCopy If pRegion.Area > 0 Then PointInRegion = True pRegion.Delete pobjs(0).Delete