- 积分
- 579
- 明经币
- 个
- 注册时间
- 2019-2-18
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2024-3-14 23:06:05
|
显示全部楼层
Public Sub CreateSelectionSet(SeleObjts As AcadSelectionSet, Name As String)
On Error Resume Next
If Not IsNull(ThisDrawing.SelectionSets.Item(Name)) Then
Set SeleObjts = ThisDrawing.SelectionSets.Item(Name)
SeleObjts.Delete
End If
Set SeleObjts = ThisDrawing.SelectionSets.Add(Name)
End Sub
Dim SeleObjts_1 As AcadSelectionSet
Call CreateSelectionSet(SeleObjts_1, "SeleObjts_1"): SeleObjts.SelectOnScreen
Dim SeleObjts_2 As AcadSelectionSet
Call CreateSelectionSet(SeleObjts_2, "SeleObjts_2"): SeleObjts.SelectOnScreen
Dim SeleObjts_2 As AcadSelectionSet
Call CreateSelectionSet(SeleObjts_3, "SeleObjts_3"): SeleObjts.SelectOnScreen
--- 这样可以么 ???
|
|