pycatia.space_analyses_interfaces.distances¶
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.distances.Distances(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionDistancesA collection of all Distance objects currently managed by theapplication.The method GetTechnologicalObject(“Distances”) on the root product, allows youto retrieve this collection.- add() Distance ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func Add() As DistanceCreates a Distance object which takes all products of the document intoaccount and adds it to the Distances collection.Returns:The created DistanceExample:This example creates a new Distance in the TheDistancescollection.Dim NewDistance As DistanceSet NewDistance = TheDistances.Add
- Return type:
- add_from_sel() Distance ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func AddFromSel() As DistanceCreates a Distance object which takes all products in the selection intoaccount and adds it to the Distances collection.Returns:The created DistanceExample:This example creates a new Distance in the TheDistancescollection.Dim NewDistance As DistanceSet NewDistance = TheDistances.AddFromSel
- Return type:
- item(i_index: cat_variant) Distance ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func Item(CATVariant iIndex) As DistanceReturns a Distance object using its index or its name from the Distancescollection.Parameters:iIndexThe index or the name of the Distance to retrieve from thecollection of Distances. As a numerics, this index is the rank of the Distancein the collection. The index of the first Distance in the collection is 1, andthe index of the last Distance is Count. As a string, it is the name youassigned to the Distance.Example:This example retrieves in ThisDistance the ninthDistance,and in ThatDistance the Distance namedDistance Of MyProduct from the TheDistances collection.Dim ThisDistance As DistanceSet ThisDistance = TheDistances.Item(9)Dim ThatDistance As DistanceSet ThatDistance = TheDistances.Item(“Distance 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 Distance object from the Distances collection.Parameters:iIndexThe index or the name of the Distance to remove from the collectionof Distances. As a numerics, this index is the rank of the Distance in thecollection. The index of the first Distance in the collection is 1, and theindex of the last Distance is Count. As a string, it is the name you assignedto the Distance.Example:The following example removes the tenth Distance and the DistancenamedDistance Of MyProduct from the TheDistancescollection.TheDistances.Remove(10)TheDistances.Remove(“Distance Of MyProduct”)
- Parameters:
i_index (cat_variant) –
- Return type:
None