pycatia.eno_cd5_interfaces.cd5_save_item

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357

Warning

The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.

class pycatia.eno_cd5_interfaces.cd5_save_item.CD5SaveItem(com_object)

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
CD5SaveItem

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:
CD5SaveItems
property cd5_id: CD5ID

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property CD5ID() As CD5ID (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
Return type:

CD5ID

property derived_outputs: tuple

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property DerivedOutputs(CATSafeArrayVariant
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
Return type:

tuple

property included: bool

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property Included() As boolean

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
Return type:

bool

property next_revision: str

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property NextRevision() As CATBSTR (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
Return type:

str

property object_name: str

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property ObjectName() As CATBSTR

Returns (gets) or sets the value of the ENOVIA Object
Name.

Example:

The following example sets the Object Name.

oSaveItem.ObjectName = “MyPart”
Return type:

str

property possible_derived_outputs: tuple

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property PossibleDerivedOutputs() As CATSafeArrayVariant (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
Return type:

tuple

property possible_types: tuple

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property PossibleTypes() As CATSafeArrayVariant (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
Return type:

tuple

property revision: str

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property Revision() As CATBSTR

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
Return type:

str

property status: int

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property Status() As CD5SaveItem_Status (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
Returns:

enum cd5_save_item_status

Return type:

int

property type: str

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property Type() As CATBSTR

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
Return type:

str