Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

[TODO] Gab grants access to post article on the forum

image-20240425-112442.png

What is CATIA Cache option and CGR files ?

CATIA V5 default way of working is to load the Geometry. This can lead to a drop in performance when loading large assemblies as the required memory is important.

In this case, we may want to work with the Cache option. This will generate CGR files which only contain Tessellation Data and no Geometry, and save them in cache folder for faster loading and visualization.

Note that CATProduct will no longer call CATPart and .model files to display the assembly, but only the CGR files.

To activate it in CATIA V5, open the Tools menu → Options → Infrastructure → Product Structure → Work with the cache system. Choose a Path to a local folder where CGR cached files will be saved.

image-20240425-114240.png

HOOPS Exchange API

HOOPS Exchange API can load cached CGR files with the specific CATIA options m_bCacheActivation and the cache folder path m_pcCachePath. See documentation page https://docs.techsoft3d.com/exchange/latest/api/structA3DRWParamsCatiaV5Data.html?Production%5Bquery%5D=m_bUseRootDirectory.

Note that you must put the root of the cache folder.
If the CGR files are contained in data\cgr\#4\temp\myCGR you must point to data folder and not to myCGR.

A3DImporter myImport;
myImport.m_sLoadData.m_sSpecifics.m_sCatiaV5.m_bCacheActivation = true;
myImport.m_sLoadData.m_sSpecifics.m_sCatiaV5.m_pcCachePath = (A3DUTF8Char*)"C:\\Users\\My\\Documents\\myCache"

HOOPS Demo Viewers

The Cache option is available in CATIA specific settings from the import window in HOOPS Demo Viewer.

image-20240425-113806.png

The Cache option is available in CATIA assembly settings from the import window in HOOPS Exchange Demo.

image-20240425-114109.png

  • No labels