pycatia.cat_smarteam_integ_interfaces.sti_db_children¶
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_children.StiDBChildren(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectStiDBChildrenRepresents all the Children of a CATIAStiDBItem.For each Child, we are able to retrieve its associated CATIAStiDBItem and theLink Type (between itself and its father).It should be represented as the following Correspondance Table { Child Number /CATIAStiDBItem / Link Type}.Example:The following example presents an Assembly structure and the associatedCorrespondance Tables for each element.+———–+| Product |<—————–++———–+ || || || || || || +—————–+ |+–>| Reference Part | |Contextual Link| +—————–+ || ^ || | || | Design Link || | || | || +—————–+ |+–>| Contextual Part |—–++—————–+CATIAStiDBChildren for Product Child Number CATIAStiDBItem LinkTypeChild n°1 Reference Part Product LinkChild n°2 Contextual Part Product LinkCATIAStiDBChildren for Contextual Part Child Number CATIAStiDBItem LinkTypeChild n°1 Reference Part Design LinkChild n°2 Product Contextual LinkCATIAStiDBChildren for Reference Part Child Number CATIAStiDBItem LinkTypeHere is the List of all CATIA Link Types :CATIA Link Behavior DescriptionCATIA Product Link Defines the basic Product Structure Link -i.e.: thelink between either a Product and its Sub-Products or a Product and itsRepresentationCATIA Design Link Defines Design Link -i.e.: Part to Part Link createdwith ‘Copy/Paste … with link’ or as Contextual Link It can also be used forLink to external ParametersCATIA Design Table Link Defines the Link to a DesignTableCATIA Rule Base Link Defines the Link to Document defining RuleBaseCATIA Downstream Application Link Defines for instance the Link between aDrawing or an Analysis Document and a Part DocumentCATIA Contextual Link Defines the Link from a Part Document to itsContextCATIA Result Link Defines the Link to “Result” document, like AnalysisReports, …CATIA Is Composed Of Link Defines a simple “Composed Of” Link, like aCatalog Document Composed Of Sub-Catalog DocumentsCATIA Reference Link Defines any kind of Link that does not belong to onetype described above including for instance OLE links, Link from a CatalogDocument to a Part, Link to Material Document, …See also:StiDBItem- property count: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Count() As long (Read Only)Returns the Number of Children currently gathered inCATIAStiDBChildren.Returns:This output corresponds to the Children Number of a CATIAStiDBItem.Example:This example retrieves in lChildrenNumber the Number of childrencurrently gathered in oStiDBChildren.Dim oStiEngine As StiEngineSet oStiEngine = CATIA.GetItem(“CAIEngine”)Dim oStiDBItem As StiDBItemSet oStiDBItem = oStiEngine.GetStiDBItemFromCATBSTR(“E:/CATIAFiles/Assembly.CATProduct”)Dim oStiDBChildren As StiDBChildrenSet oStiDBChildren = oStiDBItem.GetChildren()(…)Dim oNbChildren As longoNbChildren = oStiDBChildren.Count
- Return type:
int
- item(i_index: cat_variant) StiDBItem ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Item(CATVariant iIndex) As StiDBItemReturns the CATIAStiDBItem from its index in theCATIAStiDBChildren.Parameters:iIndexThis input corresponds to the Index of the CATIAStiDBItem toretrieve from the CATIAStiDBChildren. This index is the rank of theCATIAStiDBItem in the CATIAStiDBChildren -list of all the Children of aCATIAStiDBItem. The index of the first CATIAStiDBItem is ‘1’ and the index ofthe last CATIAStiDBItem is ‘Count’.Returns:This ouptut corresponds to the retrieved CATIAStiDBItem from its index.Example:The following example returns in oChildStiDBItem the thirdCATIAStiDBItemgathered in oStiDBChildren.Dim oStiEngine As StiEngineSet oStiEngine = CATIA.GetItem(“CAIEngine”)Dim oFatherStiDBItem As StiDBItemSet oFatherStiDBItem = oStiEngine.GetStiDBItemFromCATBSTR(“E:CATIAFilesAssembly.CATProduct”)Dim oStiDBChildren As StiDBChildrenSet oStiDBChildren = oFatherStiDBItem.GetChildren()(…)Dim oStiDBItem As StiDBItemSet oStiDBItem = oStiDBChildren.Item(3)
- Parameters:
i_index (cat_variant) –
- Return type:
- link_type(i_index: cat_variant) str ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func LinkType(CATVariant iIndex) As CATBSTRReturns the Link Type from its index in theCATIAStiDBChildren.Parameters:iIndexThis input corresponds to the index of the Link Type to retrievefrom the CATIAStiDBChildren. This index is the rank of the Link Type in theCATIAStiDBChildren. The index of the first Link Type is ‘1’ and the index ofthe last Link Type is ‘Count’.Returns:This ouptut corresponds to the retrieved Link Type from its index.Example:The following example returns in oLinkType the third Link Typegathered in oStiDBChildren.Dim oStiEngine As StiEngineSet oStiEngine = CATIA.GetItem(“CAIEngine”)Dim oFatherStiDBItem As StiDBItemSet oFatherStiDBItem = oStiEngine.GetStiDBItemFromCATBSTR(“E:CATIAFilesAssembly.CATProduct”)Dim oStiDBChildren As StiDBChildrenSet oStiDBChildren = oFatherStiDBItem.GetChildren()(…)Dim oLinkType As CATBSTRoLinkType = oStiDBChildren.LinkType(3)
- Parameters:
i_index (cat_variant) –
- Return type:
str