写了一段VBA 代码,在炸开某些块的时候总是出错,是怎么回事
Private Sub LT_XBlock_Click()
Me.Hide
ThisDrawing.Activate
Dim filtertype(0) As Integer
Dim filterdata(0) As Variant
Dim explodedObjects As Variant
filtertype(0) = 0
filterdata(0) = "INSERT"
Set sset = ThisDrawing.SelectionSets.Add("SSETS" & CStr(Now()))
sset.SelectOnScreen filtertype, filterdata
If sset.Count
You do not have to explode a block in order to manipulate its constituent entities. All block definitions have an Item method that allow you to manipulate the entities within the block without exploding the block definition itself.
块好像不能分解。 http://www.feizhimeng.com