我需要搜索在折线内的对象。我已经可以找到对象和折线,但我不能让脚本决定它是否在里面。
from pyautocad import Autocad, APoint, aDouble
from math import *
for object in acad.iter_objects():
if object.ObjectName == 'AcDb2dPolyline':
polygon = object
for block in acad.iter_objects():
if block.ObjectName == 'AcDbBlockReference':
#Here i want to test if the block is inside the polygon
```