Conflict (Object)

Represents the Conflict object.

One Conflict object exists for each couple of products that are colliding.


Properties


Property Comment() As
Returns or sets a comment on the conflict.
Example:
    The first example gets the comment of NewConflict Conflict.
    
    Dim aComment As String
    aComment = NewConflict.Comment
    
The second example sets a comment on the NewConflict Conflict.
    NewConflict.Comment = "OK : plastic part"
    
Property ComparisonInfo() As (Read Only)
Returns the information on the comparison between the conflict and the previous one.
Example:
    This example retrieves the comparison information of the NewConflict Conflict.
    
    Dim anInfo As CatConflictComparison
    anInfo = NewConflict.ComparisonInfo
    
Property FirstProduct() As (Read Only)
Returns the first product involved in the conflict.
Example:
    This example retrieves the first product involved in the NewConflict Conflict.
    
    Dim aProduct As Product
    Set aProduct = NewConflict.FirstProduct
    
Property SecondProduct() As (Read Only)
Returns the second product involved in the conflict.
Example:
    This example retrieves the second product involved in the NewConflict Conflict.
    
    Dim aProduct As Product
    Set aProduct = NewConflict.SecondProduct
    
Property Status() As
Returns or sets the status of the conflict.
Example:
    The first example gets the status of NewConflict Conflict.
    
    Dim aStatus As CatConflictStatus
    aStatus = NewConflict.Status
    
The second example sets the status of NewConflict Conflict.
    NewConflict.Status = CatConflictStatusIrrelevant
    
Property Type() As (Read Only)
Returns the type of the conflict.
Example:
    This example retrieves the type of the NewConflict Conflict.
    
    Dim conflictType As CatConflictType
    conflictType = NewConflict.Type
    
Property Value() As (Read Only)
Returns the conflict value.

This value is the penetration lengh in case of a clash or the minimum distance in case of clearance violation.

Example:
    This example retrieves the value of the NewConflict Conflict.
    
    Dim conflictValue As double
    conflictValue = NewConflict.Value
    

Methods


Sub GetFirstPointCoordinates( oCoordinates)
Retrieves the coordinates of the point on the first product which realizes the penetration or minimum distance.
Parameters:
oCoordinates
The coordinates of the point
  • oCoordinates(0) is the X coordinate
  • oCoordinates(1) is the Y coordinate
  • oCoordinates(2) is the Z coordinate
Example:
    This example retrieves the first product involved in the NewConflict Conflict.
    
    Dim Coordinates (2)
    NewConflict.GetFirstPointCoordinates Coordinates
    
Sub GetSecondPointCoordinates( oCoordinates)
Retrieves the coordinates of the point on the second product which realizes the penetration or minimum distance.
Parameters:
oCoordinates
The coordinates of the point
  • oCoordinates(0) is the X coordinate
  • oCoordinates(1) is the Y coordinate
  • oCoordinates(2) is the Z coordinate
Example:
    This example retrieves the coordinates in the NewConflict Conflict.
    
    Dim Coordinates (2)
    NewConflict.GetSecondPointCoordinates Coordinates