Below code shows the procedure to generate the preview icons for programmatically created blocks. Code uses AutoCAD built in command “BLOCKICON” to create the icon.
Results that may be inaccessible to you are currently showing.
Hide inaccessible results