Sub Hightlastitemdrawn() If ThisDrawing.ModelSpace.Count = 0 Then MsgBox "there is no line to highlight!" Else With ThisDrawing.ModelSpace.Item(.Count - 1).HighlightTure End With End If End Sub 该程序为高亮显示模型界面最后一条直线的命令,但在运行时对于代码中红色部分总是显示"编译错误:无效或不合格引用!" 请教各位高手,该错误的出现原因和改正方法!
|