Insert Drawing

Insert Drawing

Anonymous
Not applicable
275 Views
2 Replies
Message 1 of 3

Insert Drawing

Anonymous
Not applicable
Hi everone

i want to insert a drawing in to the current drawing without using the acedCommand in ObjectARX.

can anyone help.

thanks in advance

regards
Kiran
kiran.mulakala@regencyinfotech.biz
0 Likes
276 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Try this, you should first check that the block is
not already in the drawing

 

//Load the DWG from disk
  AcDbDatabase
*pDwg=new AcDbDatabase (Adesk::kFalse);
 
  Acad::ErrorStatus
es;
  es=pDwg->readDwgFile("FULLDWGPATH");
  if (es ==
Acad::eOk)
  {
    AcDbObjectId
id;
    es =
acdbHostApplicationServices()->workingDatabase()->insert(id,"DWG",pDwg,Adesk::kFalse);
 
}
  if (es != Acad::eOk)
  {
   
    //blah blah

  }
   
  delete
pDwg;
}


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">

Hi everone

want to insert a drawing in to the current drawing without using the
acedCommand in ObjectARX.

can anyone help.

thanks in advance

regards
Kiran

kiran.mulakala@regencyinfotech.biz

0 Likes
Message 3 of 3

Anonymous
Not applicable
Hi Andy

thanks for early response

regards
Kiran
0 Likes