I've make a function for stored the Xrecord in a drawing. I have follow the guide and i make a routine which stored many data conteins in four textbox in the drawing for a next use. But don't work. My wrong routine: Public Sub VariabiliTabelle() Dim Dic As AcadDictionary Dim xRec As AcadXRecord Dim xRecordType(0 To 4) As Integer Dim xRecordData(0 To 4) As Variant Dim Data As String 'If dictionaries don't exists make him On Error GoTo Create Set Dic = ThisDrawing.Dictionaries("Tab") 'make current the dictionaries "Tab" Set xRec = Dic.GetObject("TabRec") 'make current the xrecord "TabRec" On Error GoTo 0 'Ditta blocco xRecordType(0) = 300 'Is this the DXf code for text??? xRecordData(0) = FormInserimentoTabelle.DittaBlocco 'My TextBox which conteins the value 'Codice prototipo xRecordType(1) = 300 xRecordData(1) = FormInserimentoTabelle.CodPrototipo 'Codice progetto xRecordType(2) = 300 xRecordData(2) = FormInserimentoTabelle.CodProgetto 'Commessa xRecordType(3) = 300 xRecordData(3) = FormInserimentoTabelle.Com 'Tag operatore xRecordType(4) = 300 xRecordData(4) = FormInserimentoTabelle.TagOperatore 'Fix the value xRec.SetXRecordData xRecordType, xRecordData Data=xRecordData(4) 'Stored the value of my xRecord in a string var Exit Sub Create: If Dic Is Nothing Then Set Dic = ThisDrawing.Dictionaries.Add("Tab") 'Crea il dizionario nel caso non ci sia Set xRec = Dic.AddXRecord("TabRec") 'Crea l'xRecord nel dizionario End If Resume End Sub I'm new whit xRecord and the value is not save in the document object for next use. Where is my error? Thx for help and sorry for my english.