VisualizationFoundation Global Function CATWriteCgr
| CATWriteCgr( |  | iRep, | 
|  |  | iFileName, | 
|  |  | iSetting, | 
|  |  | iColMap, | 
|  |  | iFileMarked | = FALSE, | 
|  |  | ioMode | = CATVizCGRAccessModeMemory) | 
  - 
 Function to save the representation of a graphic scene
 in a cgr file.
 Role:This function writes a Cgr file.
 
  -  Returns: 
  
-     
      - 0
- OK
- 1
- KO, because of a disk writting error
- 2
- KO, because, one of the rep we tried to 
        save is not streamable
 
-  Parameters:
  
- 
    
    -  iRep
   
-     A pointer to the root node of the 3D scene to save.
 
-  iFileName
   
-     The name of the file in which the scene will be saved.
 
-  iSettingCgr
   
-     The CATSettingCgr flag to specify the kind of graphic data we want to store in the cgr file.
 
-  iColMap
   
-     The color map to use to convert color attribute in RGB composants.
 
-  iFileMarked
   
-     do not use.
    
 Legal values:
      - TRUE
- The cgr file will be readable by only CATIA Demo version
- FALSE
- The cgr file will be readable by every CATIA versions
 The default value is set to FALSE.
-  ioMode
   
-     Defines the method used for writing the CGR.
    The default value is set to CATVizCGRAccessModeMemory.
 
 
 This object is included in the file: CATReadWriteCgr.h
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.