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.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.Collection
ClashResults

A collection of all ClashResult objects currently managed by the
application.

The results linked to a specification are not managed thru this collection (see
Clashes ).

The method GetTechnologicalObject(“ClashResults”) on the root product, allows
you 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 ClashResult

Creates a ClashResult object from a XML file and adds it to the
ClashResults collection.

Parameters:

iPath
The path of the XML file.
iType
The type of import.

Returns:
The created ClashResult
Example:

This example creates a new ClashResult in the TheClashResults
collection.

Dim NewClashResult As ClashResult
Set NewClashResult = TheClashResults.AddFromXML(“c:tmpsample.xml”,
CatClashImportTypeClashOnly)
Parameters:
  • i_path (str) –

  • i_type (int) – enum cat_clash_import_type

Return type:

ClashResult

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 ClashResult

Returns a ClashResult object using its index or its name from the
ClashResults collection.

Parameters:

iIndex
The index or the name of the ClashResult to retrieve from the
collection of ClashResults. As a numerics, this index is the rank of the
ClashResult in the collection. The index of the first ClashResult in the
collection 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 ninth
ClashResult,
and in ThatClashResult the ClashResult named
ClashResult Of MyProduct from the TheClashResults collection.

Dim ThisClashResult As ClashResult
Set ThisClashResult = TheClashResults.Item(9)
Dim ThatClashResult As ClashResult
Set ThatClashResult = TheClashResults.Item(“ClashResult Of MyProduct”)
Parameters:

i_index (cat_variant) –

Return type:

ClashResult

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 ClashResults
collection.

Parameters:

iIndex
The index or the name of the ClashResult to remove from the
collection of ClashResults. As a numerics, this index is the rank of the
ClashResult in the collection. The index of the first ClashResult in the
collection 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 the
ClashResult named
ClashResult Of MyProduct from the TheClashResults
collection.

TheClashResults.Remove(10)
TheClashResults.Remove(“ClashResult Of MyProduct”)
Parameters:

i_index (cat_variant) –

Return type:

None