Here is a sample ObjectARX code to demonstrate the usage of InsertBlock method of the AutoCAD COM API.
#pragma warning( disable : 4278 )
// Makes change to the tlb name based on the AutoCAD version.
// For ex : acax18enu.tlb for AutoCAD 2010/2011 and 2012
// acax19enu.tlb for AutoCAD 2013
#import "acax19ENU.tlb" no_implementation raw_interfaces_only named_guids
#pragma warning( default : 4278 )
#include
static void ADSProjectInsertBlock(void)
{
int ret = RTNORM;
TCHAR drawingFilePath[500];
drawingFilePath[0] = _T('