By Adam Nagy
I'm using booleanOper() to merge some solids in the drawing. It seems to work fine, however, on some PC's the created solids may crash AutoCAD when the user moves them.
Looking at your code I can see that you are not deleting the input solid from the database.
You should delete it, because booleanOper() removes the geometry of the input solid and you should not leave degenerate solids in the database:
static void ArxTestMyCommand1(void)
AcDbDatabase * pDb =
for (int i = 0; i < 2; i++)
if (RTNORM != acedEntSel(L"\nSelect a solid", name, pt))
// This will merge the geometry of the input solid (solids)
// into the geometry of solids and then erase the geometry of
// the input solid (solids)
// We should delete solids otherwise we leave a solid with
// degenerate geometry (i.e. zero geometry) in the database
// and that could cause issues