CD5SaveOperation (Object)

Represents a Save Operation Object.

Various properties which are applicable for the complete save operation can be set using this.
Also, end-user may either run the Save operation as per customization done so far or open the Advanced Save panel to finalize customization and run the Save manually.
Example:
 The following example indicates how to create a ENOVIA V6 Save Operation.
 
 Dim oCD5Engine As CD5EngineV6R2014x
 Set oCD5Engine = CATIA.GetItem("CD5EngineV6R2014x")
 Dim oSaveOperation As CD5SaveOperation
 Set oSaveOperation = oCD5Engine.CreateSaveOperation(CD5SaveOperation_Session)
 
See also:

Properties


Property AllowDiskSave() As
Returns (gets) or sets the value of the Save option "Allow Disk Save".
Example:
 The following example sets the Allow Disk Save option to True.
 
 oSaveOperation.AllowDiskSave = True
 
Property Comment() As
Returns (gets) or sets the value of the Save Comment.
Example:
 The following example sets the Save Comment to "ABC".
 
 oSaveOperation.Comment = "ABC"
 
Property CreateVersion() As
Returns (gets) or sets the value of the Save option "Create Version". The default value is picked from the LCO/GCO.
Example:
 The following example sets the Create Version option to True.
 
 oSaveOperation.CreateVersion = True
 
Property Items() As (Read Only)
Returns (gets) the collection of all the items in the scope of the Save.
Example:
 The following example gets all the items in the scope of the Save.
 
 Dim oSaveItems As CD5SaveItems
 Set oSaveItems = oSaveOperation.Items
 
Property RetainLock() As
Returns (gets) or sets the value of the Save option "Retain Lock". The default value is picked from the LCO/GCO.
Example:
 The following example sets the Retain Lock option to True.
 
 oSaveOperation.RetainLock = True
 

Methods


Sub Run()
Runs the Save as per the cusomization done so far.
Example:
 The following example executes the Save operation as per the customization done so far. 
 
 oSaveOperation.Run
 
Sub ShowPanel()
Shows the Save dialog as per the cusomization done so far.
Example:
 The following example shows the Save panel as per the cusomization done so far.
 
 oSaveOperation.ShowPanel