谢谢了!结论是通过下面的代码创建封闭区域 Dim pnt Dim picked As Boolean pnt = ThisDrawing.Utility.GetPoint(, "点") ThisDrawing.SendCommand "-boundary" & vbCr & "a" & vbCr & "b" & vbCr & "e" & vbCr & vbCr & pnt(0) & "," & pnt(1) & vbCr & vbCr 然后判断图元的个数有没有变化,可惜如果不封闭的话,先在命令行里显示cad的提示,就是不想让别人看到cad的提示痕迹!看来vba很难实现了! |