Explode with the ACAD EXPLODE Command

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
My problem:
I have a DWG File with some AcDbBlockReferences. Every
Blockreference contains of a Polyface Mesh. This Polyface
Mesh has some X-Data with information I want to read.
If I explode the Block with the ACAD EXPLODE Command,
the resulting Polyface Mesh contains the X-Data and
I can read them out.
Now I want to do this automatically with my ARX-App.
If I explode the Block using eplode()-function, I get
a pointer to the Polyface Mesh, but this Entity has
no X-Data saved.
Here is a codesnip:
if(pBlkRef->explode(EntArray) == Acad::eOk){
if(EntArray.length() <= 0){
pModelSpace->close();
pBlkRef->close();
return(false);
}
for(int i = 0; i < EntArray.length(); i++){
es = pModelSpace->appendAcDbEntity(ObjId,
(AcDbEntity*)EntArray);
((AcDbEntity*)EntArray)->close();
if(es == Acad::eOk)
ObjArray.append(ObjId);
}
pModelSpace->close();
pBlkRef->close();
return(true);
}
Thanks for any help, Markus