我用Sset.SelectOnScreen给新建的选择集添加对象,可老是选不上对象,下面代码没反应,请高手们帮我看看把
Sub addrelativityline() Dim lineSelection1 As AcadSelectionSet On Error Resume Next ThisDrawing.SelectionSets("SSl").Delet Set lineSelection1 = ThisDrawing.SelectionSets.Add("SSl") Sset.SelectOnScreen ThisDrawing.ModelSpace.lineSelection1.Erase End Sub |