我用Sset.SelectOnScreen给新建的选择集添加对象,可老是选不上对象,下面代码没反应
我用Sset.SelectOnScreen给新建的选择集添加对象,可老是选不上对象,下面代码没反应,请高手们帮我看看把<P>Sub addrelativityline()<BR> Dim lineSelection1 As AcadSelectionSet<BR> On Error Resume Next<BR> ThisDrawing.SelectionSets("SSl").Delet<BR> Set lineSelection1 = ThisDrawing.SelectionSets.Add("SSl")<BR> Sset.SelectOnScreen<BR> ThisDrawing.ModelSpace.lineSelection1.Erase<BR>End Sub</P> Dim sset As AcadSelectionSet<BR> If Not IsNull(ThisDrawing.SelectionSets.Item("newadd")) Then<BR> Set sset = ThisDrawing.SelectionSets.Item("newadd")<BR> sset.Delete<BR> End If<BR> Set sset = ThisDrawing.SelectionSets.Add("newadd")<BR> sset.SelectOnScreen
页:
[1]