The AcDbAbstractViewTableRecord class is used to derive both AcDbViewTableRecord and AcDbViewportTableRecord. Both classes derive most of their functionality from the base class.
Use the add() method to add viewports to the symbol tables. Use the acedVports() function to access the configuration of the viewports in the model space. Refer to “Viewport Descriptors”, under Global Functions for Interacting with AutoCAD, for a complete description of the output of this command.
To restore the model space to a previously saved state, use the global function acedVportTableRecords2Vports(). To save the current configuration use acedVports2VportTableRecords(). These global functions replace the data in the respective symbol tables. You should make sure that the current configuration is saved to a named view, if desired, before restoring a saved view.