CD5SaveItem (Object)

Represents a save object which user is trying to save.

Various properties on the object help the end-user to customize each object individually.
Example:
 The following example indicates how to retrieve an item in the scope of a Save Operation.
 
 Dim oCD5Engine As CD5EngineV6R2014x
 Set oCD5Engine = CATIA.GetItem("CD5EngineV6R2014x")
 Dim oSaveOperation As CD5SaveOperation
 Set oSaveOperation = oCD5Engine.CreateSaveOperation(CD5SaveOperation_Session)
 Dim oSaveItems As CD5SaveItems
 Set oSaveItems = oSaveOperation.Items()
 Dim oSaveItem As CD5SaveItem
 Set oSaveItem = oSaveItems.Item(1)
 
See also:

Properties


Property CD5ID() As (Read Only)
Returns (gets) the CD5ID for a save item.
Example:
 The following example gets CD5ID from a save item.
 
 Dim myID As CD5ID
 Set myID = oSaveItem.CD5ID 
 
Property DerivedOutputs( DerivedOutputs)
Returns (gets) or sets the Derived Outputs for a save item.
Example:
 The following example sets Derived Outputs from a save item.
 
 Dim iDerivedOutputs(1) As CATBSTR
 iDerivedOutputs(0) = "cgrOutput"
 oSaveItem.DerivedOutputs = iDerivedOutputs
 
Property Included() As
Returns (gets) or sets whether item should be included in the Save Operation. The default value is determined by the status of the item. Objects with status "Exists" are not selected by default.
Example:
 The following example includes the item for the Save operation.
 
 oSaveItem.Included = True
 
Property NextRevision() As (Read Only)
Returns the next combined revision and version string for this CD5SaveItem.
If next revision of the item is to be created, then CD5SaveItem.Revision may be set to this value.
Example:
 The following example gets the NextRevision of the item.
 
 CD5SaveItem.Revision = CD5SaveItem.NextRevision
 
Property ObjectName() As
Returns (gets) or sets the value of the ENOVIA Object Name.
Example:
 The following example sets the Object Name.
 
 oSaveItem.ObjectName = "MyPart"
 
Property PossibleDerivedOutputs() As (Read Only)
Returns (gets) the possible Derived Outputs for a save item.
Example:
 The following example gets Possible DerivedOutputs from a save item.
 
 Dim oPossibleDerivedOutputs As CATSafeArrayVariant
 oPossibleDerivedOutputs = oSaveItem.PossibleDerivedOutputs 
 
Property PossibleTypes() As (Read Only)
Returns (gets) the possible Types for a save item.
Example:
 The following example gets PossibleTypes from a save item.
 
 Dim oPossibleTypes As CATSafeArrayVariant
 oPossibleTypes = oSaveItem.PossibleTypes 
 
Property Revision() As
Returns or sets the target revision of the CD5SaveItem for the Save Operation. Default value is current CD5SaveItem target revision.
Get: will return string combining revision and version (ex: “B.3”).
Set: will keep the revision string only (e.g. "A", "BB"), even if combining revision and version is passed.
Note:
As revision part of the string cannot contain ‘.’ character, given string may be truncated up to the first ‘.’ character’ before being appended with appropriate version number.
(ex: MyItem.Revision = “AA.BB” => property is set to “AA.0”)
It is advised to read the Revision property after it has been set as the current value may not match what has been set.
Changing the CD5SaveOperation.CreateVersion value may affect the version part of this property.
Example:
 The following example gets the targeted Revision for the item.
 
 Dim oRevision As CATBSTR
 oRevision = CD5SaveItem.Revision
 
Property Status() As (Read Only)
Returns (gets) the Save status of the item.
Example:
 The following example gets item Status.
 
 Dim itemStatus As CD5SaveItem_Status
 itemStatus = oSaveItem.Status 
 
Property Type() As
Returns (gets) or sets the Type of the item. The default value is picked from the GCO. To set a type user can get the list of Possible Types from PossibleTypes property
Example:
 The following example gets the type of the item.
 
 Dim oType As CATBSTR
 oType = oSaveItem.Type