Share

AcDbAnnotationScaleReactor Class

Class Hierarchy

AcRxObject
    AcDbAnnotationScaleReactor

C++

class AcDbAnnotationScaleReactor : public AcRxObject;

File

dbAnnotationScale.h

Description

This class handles notifications sent when an annotation scale changes. Applications can derive from this class and implement their own version of the function annotationScaleChanged(), which will then get called during notification.

There are four cases where a notification is sent:

  1. When AcDbImpViewport::setAnnotationScaleId has been called, a bool is set if the annotation scale of the viewport changes. If the bool is true, notification is sent during the AcDbImpViewport::subClose().
  2. When a new viewport is created and AcDbImpViewport::setAnnotationScaleId() is called for the first time.
  3. When the sysvar routine, AcDbHeader::setCannoscale has been called with a annotative scale change.
  4. When AcDbImpViewport::subClose() is called during undo or redo and the undo or redo causes the annotative scale to change.

Applications can register and unregister their AcDbAnnotationScaleReactor notifications by calling the functions:

ACDB_PORT bool acdbAddAnnotationScaleReactor(AcDbAnnotationScaleReactor *pReactor);
ACDB_PORT bool acdbRemoveAnnotationScaleReactor(AcDbAnnotationScaleReactor *pReactor);

Links

AcDbAnnotationScaleReactor Methods

See Also

AcDbAnnotationScale

Was this information helpful?