一个判断已知圆是否与两条已知线同时相交的, dim Keym as Boolean If ThisDrawing.ActiveSpace = acModelSpace Then Set acCircle = ThisDrawing.ModelSpace.AddCircle(Pnt1, rad) Else Set acCircle = ThisDrawing.PaperSpace.AddCircle(Pnt1, rad) End If tmpPnt = acCircle.IntersectWith(AcLine1, acExtendNone) If VarType(tmpPnt) <> vbEmpty Then tmpPnt = acCircle.IntersectWith(AcLine2, acExtendNone) If VarType(tmpPnt) <> vbEmpty Then Keym = True End If Pnt1, rad已知的数,AcLine1,AcLine2是屏幕选择的,并且生成了个如下图的圆acCircle , 怎么执行结果就是Keym就等于True?acLine1并不与acCircle 相交啊! 我把VarType(tmpPnt) <> vbNull And VarType(tmpPnt) <> vbError 都加上了还是不行,不知道怎么写了。 |