API Reference > OdDb Classes > OdDbObject Class > OdDbObject Methods > OdDbObject::getObjectSaveVersion Method
OdDbObject::getObjectSaveVersion Method
Syntax
C++
virtual OdDb::DwgVersion getObjectSaveVersion(const OdDbFiler* pFiler, OdDb::MaintReleaseVer* pMaintVer = 0) const;
Parameters 
Description 
const OdDbFiler* pFiler 
[in] Pointer to the DWG/DXF filer to be used.  
OdDb::MaintReleaseVer* pMaintVer = 0 
[out] Receives the maintenance version. 

Returns the drawing and maintenance release version into which this object must be stored. 

 

The default implementation of this function returns filer->dwgVersion(). This function can be overridden in custom classes. 

Do not use filer->dwgVersion() with dwg/dxf(in/out)Fields(); use self()->getObjectSaveVersion() instead.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.