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

StackOverflow https://stackoverflow.com/questions/12874124

  •  07-07-2021
  •  | 
  •  

Frage

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?

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top