pycatia.space_analyses_interfaces.distance¶
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.distance.Distance(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectDistanceRepresents the Distance object.The Distance object is a specification of a distance computation betweenproducts or groups of products.- property accuracy: float¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Accuracy() As doubleReturns or sets the accuracy value for the computation.The accuracy value must be greater than 0.Example:The first example retrieves the accuracy value of NewDistanceDistance.Dim AccuracyValue As doubleAccuracyValue = NewDistance.AccuracyThe second example sets the accuracy value of NewDistanceDistance.NewDistance.Accuracy = 10.
- Return type:
float
- property annotated_views: AnnotatedViews¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property AnnotatedViews() As AnnotatedViews (Read Only)Returns the AnnotatedViews collection of the distance.Example:This example retrieves the AnnotatedViews collection ofNewDistance Distance.Dim TheAnnotatedViewsList As AnnotatedViewsSet TheAnnotatedViewsList = NewDistance.AnnotatedViews
- Return type:
- property computation_type: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property ComputationType() As CatDistanceComputationTypeReturns or sets the computation type for the computation.Example:The first example retrieves the computation type of NewDistanceDistance.Dim ComputationType As CatDistanceComputationTypeComputationType = NewDistance.ComputationTypeThe second example sets the computation type of NewDistanceDistance.NewDistance.ComputationType = CatDistanceComputationTypeInsideOne
- Return type:
int
- compute() None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub Compute()Computes the distance.Example:This example computes the distance of NewDistanceDistance.NewDistance.Compute
- Return type:
None
- property first_group: Group¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property FirstGroup() As GroupReturns or sets the first group used by the computation.Example:The first example retrieves the first group of NewDistanceDistance.Dim FirstGroup As GroupSet FirstGroup = NewDistance.FirstGroupThe second example sets the first group of NewDistanceDistance.Dim FirstGroup As GroupNewDistance.FirstGroup = FirstGroup
- Return type:
- property first_product: Product¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property FirstProduct() As Product (Read Only)Returns the product belonging to the first group that realizes the minimumdistance.Example:This example retrieves the first product involved in theNewDistance Distance.Dim AProduct As ProductSet AProduct = NewDistance.FirstProduct
- Return type:
- get_first_point_coordinates() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetFirstPointCoordinates(CATSafeArrayVariantoCoordinates)Retrieves the coordinates of the point belonging to the first product,which realizes the distance.Parameters:oCoordinatesThe coordinates of the pointoCoordinates(0) is the X coordinateoCoordinates(1) is the Y coordinateoCoordinates(2) is the Z coordinateExample:This example retrieves the coordinates of the first point inNewDistance Distance.Dim Coordinates (2)NewDistance.GetFirstPointCoordinates Coordinates
- Return type:
tuple
- get_second_point_coordinates() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetSecondPointCoordinates(CATSafeArrayVariantoCoordinates)Retrieves the coordinates of the point belonging to the second product,which realizes the distance.Parameters:oCoordinatesThe coordinates of the pointoCoordinates(0) is the X coordinateoCoordinates(1) is the Y coordinateoCoordinates(2) is the Z coordinateExample:This example retrieves the coordinates of the first point inNewDistance Distance.Dim Coordinates (2)NewDistance.GetSecondPointCoordinates Coordinates
- Return type:
None
- property is_defined: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property IsDefined() As long (Read Only)Returns a diagnosis on the distance.The diagnosis can take two values:= 0: the distance is undefined (for example only one product) and the results are invalid.= 1: the distance is defined and all results are valid.Example:This example retrieves the diagnosis on NewDistanceDistance.If NewDistance.IsDefined = 1 Then
- Return type:
int
- property marker_3ds: Marker3Ds¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Marker3Ds() As Marker3Ds (Read Only)Returns the Marker3Ds collection of the distance.Example:This example retrieves the Marker3Ds collection of NewDistanceDistance.Dim TheMarker3DsList As Marker3DsSet TheMarker3DsList = NewDistance.Marker3Ds
- Return type:
- property maximum_distance: float¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property MaximumDistance() As doubleReturns or sets the maximum distance value for the computation (valid onlyfor band analysis).The maximum distance value must be greater than 0.Example:The first example retrieves the maximum distance value ofNewDistance Distance.Dim MaximumValue As doubleMaximumValue = NewDistance.MaximumDistanceThe second example sets the maximum distance value ofNewDistance Distance.NewDistance.MaximumDistance = 10.
- Return type:
float
- property measure_type: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property MeasureType() As CatDistanceMeasureTypeReturns or sets the type of distance that will becalculated.Example:The first example retrieves the type of NewDistanceDistance.Dim MeasureType As CatDistanceMeasureTypeMeasureType = NewDistance.MeasureTypeThe second example sets the Type of NewDistanceDistance.NewDistance.MeasureType = CatDistanceMeasureTypeMinimum
- Returns:
enum cat_distance_measure_type
- Return type:
int
- property minimum_distance: float¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property MinimumDistance() As doubleReturns or sets the minimum distance value for the computation (valid onlyfor band analysis).The minimum distance value must be greater than 0.Example:The first example retrieves the minimum distance value ofNewDistance Distance.Dim MinimumValue As doubleMinimumValue = NewDistance.MinimumDistanceThe second example sets the minimum distance value ofNewDistance Distance.NewDistance.MinimumDistance = 10.
- Return type:
float
- property second_group: Group¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property SecondGroup() As GroupReturns or sets the second group used by the computation.Example:The first example retrieves the second group of NewDistanceDistance.Dim SecondGroup As GroupSet SecondGroup = NewDistance.SecondGroupThe second example sets the second group of NewDistanceDistance.Dim SecondGroup As GroupNewDistance.SecondGroup = SecondGroup
- Return type:
- property second_product: Product¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property SecondProduct() As Product (Read Only)Returns the product belonging to the second group that realizes the minimumdistance.Example:This example retrieves the coordinates in the NewDistanceDistance.Dim AProduct As ProductSet AProduct = NewDistance.SecondProduct
- Return type:
- property value: float¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Value() As double (Read Only)Returns the distance value.Example:This example retrieves the value of NewDistanceDistance.Dim MinimumValue As doubleMinimumValue = NewDistance.Value
- Return type:
float