Here it goes, and the far i can get ... attached it is a VS9 sln target to A2010, incomplete project! (includes the bin files arx & dbx to test)
Have a look into the ani-image and notice that after a tab the object gets updated on screen.
So, must be something about the polyline.
class DLLIMPEXP CBox : public AcDbEntity {
HTH