我的程序发下:
Private Sub Command4_Click() For Each Ent In AcadDoc.ModelSpace If Ent.ObjectName = "AcDbBlockReference" Then ExpBlock Ent End If Next
End Sub
Sub ExpBlock(ByVal Temp1 As AcadBlockReference) Dim i, objs Temp1.Explode //这里报错!!! ....... End Sub