The dwgOut() function, which calls dwgOutFields(), is invoked by the following commands and conditions:
- SAVE (uses kFileFiler)
- SAVEAS (uses kFileFiler)
- WBLOCK (uses kWblockCloneFiler and kIdXlateFiler)
- INSERT, XREF (use kDeepCloneFiler and kIdXlateFiler)
- COPY (uses same filers as INSERT; a copy requires writing out an object's state and then reading it back in to an object of the same class)
- PURGE (uses kPurgeFiler)
- Any time an object is paged out (uses kPageFiler)
- Any time an object is modified (for undo recording; uses kUndoFiler)