pycatia.space_analyses_interfaces.clash_results¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445
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.space_analyses_interfaces.clash_results.ClashResults(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionClashResultsA collection of all ClashResult objects currently managed by theapplication.The results linked to a specification are not managed thru this collection (seeClashes ).The method GetTechnologicalObject(“ClashResults”) on the root product, allowsyou to retrieve this collection.- add_from_xml(i_path: str, i_type: int) ClashResult ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func AddFromXML(CATBSTR iPath,CatClashImportType iType) As ClashResultCreates a ClashResult object from a XML file and adds it to theClashResults collection.Parameters:iPathThe path of the XML file.iTypeThe type of import.Returns:The created ClashResultExample:This example creates a new ClashResult in the TheClashResultscollection.Dim NewClashResult As ClashResultSet NewClashResult = TheClashResults.AddFromXML(“c:tmpsample.xml”,CatClashImportTypeClashOnly)
- Parameters:
i_path (str) –
i_type (int) – enum cat_clash_import_type
- Return type:
- item(i_index: cat_variant) ClashResult ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func Item(CATVariant iIndex) As ClashResultReturns a ClashResult object using its index or its name from theClashResults collection.Parameters:iIndexThe index or the name of the ClashResult to retrieve from thecollection of ClashResults. As a numerics, this index is the rank of theClashResult in the collection. The index of the first ClashResult in thecollection is 1, and the index of the last ClashResult is Count. As a string,it is the name you assigned to the ClashResult.Example:This example retrieves in ThisClashResult the ninthClashResult,and in ThatClashResult the ClashResult namedClashResult Of MyProduct from the TheClashResults collection.Dim ThisClashResult As ClashResultSet ThisClashResult = TheClashResults.Item(9)Dim ThatClashResult As ClashResultSet ThatClashResult = TheClashResults.Item(“ClashResult Of MyProduct”)
- Parameters:
i_index (cat_variant) –
- Return type:
- remove(i_index: cat_variant) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub Remove(CATVariant iIndex)Removes a ClashResult object from the ClashResultscollection.Parameters:iIndexThe index or the name of the ClashResult to remove from thecollection of ClashResults. As a numerics, this index is the rank of theClashResult in the collection. The index of the first ClashResult in thecollection is 1, and the index of the last ClashResult is Count. As a string,it is the name you assigned to the ClashResult.Example:The following example removes the tenth ClashResult and theClashResult namedClashResult Of MyProduct from the TheClashResultscollection.TheClashResults.Remove(10)TheClashResults.Remove(“ClashResult Of MyProduct”)
- Parameters:
i_index (cat_variant) –
- Return type:
None