-
- Private Sub AcadDocument_SelectionChanged()
- ' 该示例演示了SelectionChanged方法的使用。
- ' 使用SelectionChanged方法可以通过 _
- PickfirstSelectionSet选择集来获取选定的对象。 _
- 再通过该选择集来操作这些选定的对象。
- Dim ss As AcadSelectionSet
- Set ss = ThisDrawing.PickfirstSelectionSet
- ThisDrawing.Utility.Prompt "乐筑天下VBA示例:目前选择了" & ss.Count & "个对象"
- End Sub
|