I created a DWG file that has some Attributes elements. For all these Attributes I attached a XData structure. When I insert these DWG file as a Block in a new file, these attributes become AttributeReference of this blockreference element. How can I recover the XData of each attribute (now attribute reference)? I try the following (below), but it returns empty: Private Sub RelacionaAtributos_Click() Dim objAtrib As Variant Dim i As Integer Dim Data1 As Variant Dim DataType1 As Variant Dim at As AcadAttributeReference objAtrib = formato.GetAttributes 'formato is the AcadBlockReference element For i = 0 To UBound(objAtrib) Set at = objAtrib(i) at.GetXData "DiagLog", DataType1, Data1 If VarType(DataType1) = vbEmpty Then GoTo cont ' take the actions here if has XData...... cont: Next i End Sub