Here is a sample code to create a block definition with multi-line attribute definition and to create a block reference from it.
The first you need to know is: in AutoCAD, block definitions are AcDbBlockTableRecords, just as are "*MODEL_SPACE" and "*PAPER_SPACE" AcDbBlockTableRecords. The Block ...