This operation needs to be divided into two different steps. The first step is to have an AcDbBlockTableRecord, which contains the block definition. You could either create, edit an existing one, or ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results