Here you go Kevin, outta the help file:
The IsXRef property works with the IsLayout property. If both properties
are FALSE, then the block is a simple block. If the IsXRef property is
TRUE, then the block is an external reference. If the IsLayout property
is TRUE, then the block contains all the geometry associated with a
layout.
Dim tempBlock As AcadBlock
Dim msg As String
msg = vbCrLf & vbCrLf
ThisDrawing.Application.ZoomAll
For Each tempBlock In ThisDrawing.Blocks
If Not (tempBlock.IsLayout) And Not (tempBlock.IsXRef) Then
' Block is simple
msg = msg & tempBlock.name & ": Simple"
ElseIf tempBlock.IsXRef Then
' Block is an external reference
msg = msg & tempBlock.name & ": External Reference
If tempBlock.IsLayout Then
' Block also contains layout geometry
msg = msg & tempBlock.name & " and Contains Layout Geometry"
End If
ElseIf tempBlock.IsLayout Then
' Block contains layout geometry
msg = msg & tempBlock.name & ": Contains Layout Geometry"
End If
msg = msg & vbCrLf ' Move to next line
Next
___________________________
Mike Tuersley
AutoCAD Clinic
Rand IMAGINiT Technologies