pycatia.cat_smarteam_integ_interfaces.sti_db_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.cat_smarteam_integ_interfaces.sti_db_item.StiDBItem(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectStiDBItemRepresents the SmarTeam Integration Object, that is to say the Document comingfrom SmarTeam database.Role: It retrieves SmarTeam Document information. It is managed byStiEngine.See also:StiEngine- get_children() StiDBChildren ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetChildren() As StiDBChildrenReturns both all the Children of the CATIA Document -associated to theCATIAStiDBItem- and their corresponding Link Types with their Father CATIADocument.See also:StiDBChildrenReturns:This ouptut corresponds to the retrieved CATIAStiDBChildren from theFather CATIAStiDBItem.Example:The following example returns in ochildrenList both all the Childrenand their Link Types with their CATIAStiDBItem FatheroStiDBItem.Dim oStiDBItem As StiDBItemDim ochildrenList As StiDBChildrenSet ochildrenList = oStiDBItem.GetChildrenDim lChildrenNumber As longlChildrenNumber = ochildrenList.CountFor i = 1 To lChildrenNumberDim oChildStiDBItem As StiDBItemSet oChildStiDBItem = ochildrenList.Item(i)Dim sChildLinkType As CATBSTRsChildLinkType = ochildrenList.LinkType(i)Next
- Return type:
- get_document() Document ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetDocument() As DocumentReturns the CATIA Document associated to the CATIAStiDBItem -the SmarTeamIntegration Object.Returns:This ouptut corresponds to the retrieved CATIA Document.Example:The following example returns in oDocument the CATIA Documentcorresponding tothe CATIAStiDBItem oStiDBItem.Dim oStiEngine As StiEngineSet oStiEngine = CATIA.GetItem(“CAIEngine”)Dim oStiDBItem As StiDBItemSet oStiDBItem = oStiEngine.GetStiDBItemFromCATBSTR(“E:/CATIAFiles/Engine.CATProduct”)Dim oDocument As DocumentSet oDocument = oStiDBItem.GetDocument
- Return type:
- get_document_full_path() str ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetDocumentFullPath() As CATBSTRReturns the Full Path of the CATIA Document associated to theCATIAStiDBItem.Returns:This ouptut corresponds to the retrieved Full Path of theCATIAStiDBItem.Example:The following example returns in oFullPath the full pathcorresponding tothe CATIAStiDBItem oStiDBItem.Dim oStiDBItem As StiDBItemDim oFullPath As stringoFullPath = oStiDBItem.GetDocumentFullPath
- Return type:
str
- is_cfo_type() bool ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func IsCFOType() As booleanReturns if the CATIA Document -associated to the CATIAStiDBItem- is aComponent File or not.Returns:This ouptut corresponds to the boolean ‘oIsCFOType’. ‘oIsCFOType’ isTrue when the CATIAStiDBItem is a Component File, False otherwise.Example:The following example tests if the CATIAStiDBItem is a ComponentFile.Dim oStiEngine As StiEngineSet oStiEngine = CATIA.GetItem(“CAIEngine”)(…)Dim oIsCFOType As booleanoIsCFOType = oStiEngine.IsCFOType
- Return type:
bool
- is_root() bool ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func IsRoot() As booleanReturns if the CATIA Document -associated to the CATIAStiDBItem- is a Root.This method returns True if the Document is a Root, Falseotherwise.Returns:This ouptut corresponds to the boolean ‘oIsRootCFO’.Example:The following example tests if the CATIAStiDBItem is a Root componentfile.Dim oStiEngine As StiEngineSet oStiEngine = CATIA.GetItem(“CAIEngine”)(…)Dim oIsRootCFO As booleanoIsRootCFO = oStiEngine.IsRoot
- Return type:
bool