Public BlockObj As AcadObject '定义块
Dim BlockObjAttributes As Variant '定义属性
Dim i As Integer '定义循环变量
Public BlockName As String '定义块名称
Dim sset As AcadSelectionSet '定义sset对象
Dim handle As Variant
Private Sub CommandButton1_Click()
Me.Hide '退出窗体
On Error Resume Next
ThisDrawing.SelectionSets.Item("BlockEdit").Delete
Set sset = ThisDrawing.SelectionSets.Add("BlockEdit")
sset.SelectOnScreen '在屏幕上选择对象
Private Sub CommandButton2_Click()
Dim basePoint(0 To 2) As Double
Dim scalefactor As Double
basePoint(0) = 4: basePoint(1) = 4.25: basePoint(2) = 0
scalefactor = 0.5
BlockObj.ScaleEntity basePoint, scalefactor
End Sub