pycatia.structure_interfaces.str_foundations¶
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.structure_interfaces.str_foundations.StrFoundations(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionStrFoundationsA collection of the Foundation objects contained in a given Product object of aProductDocument object.A Product object aggregates zero or one Foundations collection. This collectionis retrieved using the Product.GetTechnologicalObject method of theproduct.Example:The following example retrieves the Foundation collection fromtheoProduct Product.Dim oFoundations as AnyObjectSet oFoundations = oProduct.GetTechnologicalObject(“StructureFoundations”)- item(i_index: cat_variant) StrFoundation ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Item(CATVariant iIndex) As StrFoundationReturns a Foundation from its index in the Foundationscollection.Parameters:iIndexThe index of the Foundation to retrieve in the collection ofFoundations. This index can either be the rank of the Foundation in thecollection or the name you assign to the Foundation. As a numerics, this indexis the rank of the Foundation in the collection. The index of the firstFoundation in the collection is 1, and the index of the last Foundation isCount. As a string, it is the name you assigned to the Foundation using theAnyObject.Name propertyReturns:The retrieved FoundationExample:The following example returns in ThisFoundation the thirdFoundation,and in ThatFoundation the Foundation namedColumn_1 in the Assembly_1 Foundation collection.Dim ThisFoundation As FoundationSet ThisFoundation = Assembly_1.Item(3)Dim ThatFoundation As FoundationSet ThatFoundation = Assembly.Item(“Column_1”)
- Parameters:
i_index (cat_variant) –
- Return type: