Drawings and sheets containing references to dynamic views are updated immediately when model geometry is changed (hence the name dynamic views). However, there are times when a project’s construction set needs to be frozen for a certain revision while the underlying model is still evolving. This can be achieved by switching the references from Dynamic mode to Cached mode. As the name suggests, Cached mode caches the rendered graphics of a reference and stores it in the DGN file. This mode essentially freezes the display until the cache is regenerated or the reference is switched back to Dynamic mode.
Cached references are considerably faster to load and operate on dynamic view references. Caching also enables users to distribute sheets independently, without the need for underlying 3D models. This feature can be used to dispatch light-weight construction sets at regular intervals, and as media for markups.
You can access the cached visible edge setting from the References dialog. The Visible Edges column in the list box displays the setting. Clicking the cell in the column opens a window which displays the Visible Edge drop-down list. In it, you can choose from Dynamic, Cached, and Legacy modes. When set to Cached, you get the Visible Edge Settings icon next to the drop-down. Clicking it opens the Cached Visible Edges Settings dialog, which provides more options for the cached visible edge display. Most of these settings in this dialog are same as in the Visible Edges Settings dialog that is accessible from the Merge References tool or the Export visible Edges dialog (File > Export > Visible Edges).
The Visible Edge setting works only for 3D models that are directly attached to 2D models. Specifically, you can create a cache for a 3D design model attached to a drawing model or a 3D design model directly attached to a sheet model.
When the Visible Edge setting of a reference is set to Cached and if the reference is modified in the source model, the Visible Edges list box column in the References dialog turns red, indicating that the reference is modified. You can update the cache by reloading it. The video below gives a simple demonstration of the setting.
Drawings and sheets containing references to dynamic views can be cached by using simple key-ins.
Convert all references of the active model to cached
CadInputQueue.SendCommand "REFERENCE VISIBLEEDGES CACHED ALL"
Alternatively, convert all references of all models of the active file to cached
CadInputQueue.SendCommand "REFERENCE VISIBLEEDGES ALLMODELS CACHED"
References whose cached graphics are out of date can be regenerated by the following key-ins.
Regenerate cache of all references of the active model
CadInputQueue.SendCommand "REFERENCE VISIBLEEDGES CACHED SYNCHRONIZE ALL”
Alternatively, regenerate cache of all references of all models of the active file
CadInputQueue.SendCommand "REFERENCE VISIBLEEDGES ALLMODELS SYNCHRONIZECACHE”
Users may choose to switch back to dynamic mode at specific intervals. The following keyins can be used.
Switch cached references back to dynamic mode
CadInputQueue.SendCommand "REFERENCE VISIBLEEDGES DYNAMIC ALL"
CadInputQueue.SendCommand "REFERENCE VISIBLEEDGES ALLMODELS DYNAMIC"