Share

AcDbObject::setHasSaveVersionOverride

C++

void setHasSaveVersionOverride(
    bool bSetIt
);

Description

This function sets a bit on the object for objects that need to override the filer version. The bit check is used as a quick reject check for most classes.

If you're deriving a class from any ObjectARX exported class except for AcDbObject and AcDbEntity, call setHasSaveVersionOverride(true); in the class constructor so that AcDbObject::getObjectSaveVersion() default implementation knows not to just return filer version, but check with your class version and return an appropriate object save version.

The object save version provides a mechanism by which an object can override the filer version and dictate which version it needs to be saved as. The default logic of which version the object should be saved as is as follows:

  • If the filer version is lower than the version the class was born in, use your birth version.
  • If the filer version is equal to or higher than the version the class was born in, use the filer version.

Parameters

Parameters Description
bSetIt Input Boolean that sets the bit indicating a save version override

Links

AcDbObject

Was this information helpful?