急急急 我想得到DWG中所有的块名
急急急 我想得到DWG中所有的块名 Sub test()Dim BLKSet As AcadSelectionSet
Dim i
Dim FilterType(0) As Integer<BR>Dim FilterData(0) As Variant
FilterType(0) = 0: FilterData(0) = "insert"
BLKSet.Select acSelectionSetAll, , , FilterType, FilterData
For i=1 To BLKSet.Count
Msgbox BLKSet(i).Name
Next
End Sub Sub test2()<BR>Dim i As AcadBlock<BR>For Each i In ThisDrawing.Blocks<BR>If Not (i.IsLayout Or i.IsXRef) Then<BR>MsgBox i.Name<BR>End If<BR>Next i<BR>End Sub<BR>
页:
[1]