Dim p1, p2 As Variant p1 = ThisDrawing.Utility.GetPoint p2 = ThisDrawing.Utility.GetPoint Dim al As Variant Dim k1 As AcadBlockReference Dim b1 As AcadBlocks Dim s As AcadSelectionSet If ThisDrawing.SelectionSets.Count <> 0 Then ThisDrawing.SelectionSets(0).Delete End If Set s = ThisDrawing.SelectionSets.Add("dqs") s.Select acSelectionSetAll Dim m1 As Variant
For Each k1 In s m1 = k1.GetAttributes m1.Move p1, p2 '出错