How to override AcDbEntity::transformBy to get custom entity transformation while moving or scaling?

906 Views Asked by At

I'm implementing a custom entity derived from AcDbEntity. I draw some lines and text label in overloaded subWorldDraw function and I want my entity to be able to be scaled, moved, rotated, so as I understand I should override AcDbEntity::transformBy, as was written here. But when I try to add this method, compiler rises an error, which tells, that this method is sealed. Is any another way to make my entity responsible to transformation done by user?

1

There are 1 best solutions below

0
On BEST ANSWER

I've found answer here - in new ObjectArx versions not AcDbEntity::transformBy, but AcDbEntity::subTransformBy method can be overridden. It's also touch on other virtual methods, like AcDbEntity::worldDraw -> AcDbEntity::subWorldDraw.