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.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectCD5SaveItemRepresents a save object which user is trying to save.Various properties on the object help the end-user to customize each objectindividually.Example:The following example indicates how to retrieve an item in the scope of aSave Operation.Dim oCD5Engine As CD5EngineV6R2014xSet oCD5Engine = CATIA.GetItem(“CD5EngineV6R2014x”)Dim oSaveOperation As CD5SaveOperationSet oSaveOperation = oCD5Engine.CreateSaveOperation(CD5SaveOperation_Session)Dim oSaveItems As CD5SaveItemsSet oSaveItems = oSaveOperation.Items()Dim oSaveItem As CD5SaveItemSet 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 CD5IDSet myID = oSaveItem.CD5ID
- Return type:
- property derived_outputs: tuple¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property DerivedOutputs(CATSafeArrayVariantDerivedOutputs)Returns (gets) or sets the Derived Outputs for a saveitem.Example:The following example sets Derived Outputs from a saveitem.Dim iDerivedOutputs(1) As CATBSTRiDerivedOutputs(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 booleanReturns (gets) or sets whether item should be included in the SaveOperation. The default value is determined by the status of the item. Objectswith status “Exists” are not selected by default.Example:The following example includes the item for the Saveoperation.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 thisCD5SaveItem.If next revision of the item is to be created, then CD5SaveItem.Revisionmay be set to this value.Example:The following example gets the NextRevision of theitem.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 CATBSTRReturns (gets) or sets the value of the ENOVIA ObjectName.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 (ReadOnly)Returns (gets) the possible Derived Outputs for a saveitem.Example:The following example gets Possible DerivedOutputs from a saveitem.Dim oPossibleDerivedOutputs As CATSafeArrayVariantoPossibleDerivedOutputs = 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 saveitem.Dim oPossibleTypes As CATSafeArrayVariantoPossibleTypes = 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 CATBSTRReturns or sets the target revision of the CD5SaveItem for the SaveOperation. Default value is current CD5SaveItem targetrevision.Get: will return string combining revision and version (ex:“B.3”).Set: will keep the revision string only (e.g. “A”, “BB”), even if combiningrevision and version is passed.Note:As revision part of the string cannot contain ‘.’ character, givenstring may be truncated up to the first ‘.’ character’ before being appendedwith 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 asthe current value may not match what has been set.Changing the CD5SaveOperation.CreateVersion value may affect theversion part of this property.Example:The following example gets the targeted Revision for theitem.Dim oRevision As CATBSTRoRevision = 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_StatusitemStatus = 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 CATBSTRReturns (gets) or sets the Type of the item. The default value is pickedfrom the GCO. To set a type user can get the list of Possible Types fromPossibleTypes propertyExample:The following example gets the type of the item.Dim oType As CATBSTRoType = oSaveItem.Type
- Return type:
str