ComparisonResult Class — NXOpen Python API Reference 12.0.0 documentation

# ComparisonResult Class

class `NXOpen.Mechatronics.``ComparisonResult`

  Bases: `NXOpen.Mechatronics.ComparisonResultBase`

  Represents comparison result

  New in version NX9.0.0.

# Properties

Property | Description
--- | ---
ConflictLogicalObject | Returns or sets the conflict logical object from the comparison result
Ignored | Returns or sets the flag marked if the object will be ingored when applying it to logical model
LogicalObject | Returns or sets the logical object from the comparison result
ResultCategory | Returns or sets the category from the comparison result
ResultName | Returns the name from the comparison result
ResultType | Returns the type from the comparison result

# Methods

Method | Description
--- | ---
Dispose | Frees the object from memory.
GetAttributes | Gets a list of attributes from the comparison result
GetElectricalParts | Gets a list of electrical parts from the comparison result

# Enumerations

ComparisonResultCategory Enumeration | Defines categories of comparison results

# Property Detail

## ConflictLogicalObject

`ComparisonResult.``ConflictLogicalObject`

  Returns or sets the conflict logical object from the comparison result

  `-------------------------------------`

  Getter Method

  Signature `ConflictLogicalObject`

  Returns: | Conflict logical object of comparison result
  Return type: | `NXOpen.Mechatronics.LogicObject`

  New in version NX9.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `ConflictLogicalObject`

  Parameters: | conflictLogicalObject (`NXOpen.Mechatronics.LogicObject`) – Conflict logical object of comparison result

  New in version NX9.0.0.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

## LogicalObject

`ComparisonResult.``LogicalObject`

  Returns or sets the logical object from the comparison result

  `-------------------------------------`

  Getter Method

  Signature `LogicalObject`

  Returns: | Logical object of comparison result
  Return type: | `NXOpen.Mechatronics.LogicObject`

  New in version NX9.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `LogicalObject`

  Parameters: | logicalObject (`NXOpen.Mechatronics.LogicObject`) – Logical object of comparison result

  New in version NX9.0.0.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

## ResultCategory

`ComparisonResult.``ResultCategory`

  Returns or sets the category from the comparison result

  `-------------------------------------`

  Getter Method

  Signature `ResultCategory`

  Returns: | Category of comparison result
  Return type: | `NXOpen.Mechatronics.ComparisonResultCategory`

  New in version NX9.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `ResultCategory`

  Parameters: | category (`NXOpen.Mechatronics.ComparisonResultCategory`) – Category of comparison result

  New in version NX9.0.0.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

## ResultName

`ComparisonResult.``ResultName`

  Returns the name from the comparison result

  `-------------------------------------`

  Getter Method

  Signature `ResultName`

  Returns: | Name of comparison result
  Return type: | str

  New in version NX9.0.0.

  License requirements: None.

## ResultType

`ComparisonResult.``ResultType`

  Returns the type from the comparison result

  `-------------------------------------`

  Getter Method

  Signature `ResultType`

  Returns: | Type of comparison result
  Return type: | str

  New in version NX9.0.0.

  License requirements: None.

# Method Detail

## Dispose

`ComparisonResult.``Dispose`

  Frees the object from memory.

  After this method is called, it is illegal to use the object. In .NET, this method is automatically called when the object is deleted by the garbage collector.

  Signature `Dispose()`

  New in version NX9.0.0.

  License requirements: None.

## GetAttributes

`ComparisonResult.``GetAttributes`

  Gets a list of attributes from the comparison result

  Signature `GetAttributes()`

  Returns: | Array of attributes
  Return type: | list of `NXOpen.Mechatronics.ComparisonResultAttribute`

  New in version NX9.0.0.

  License requirements: None.

## GetElectricalParts

`ComparisonResult.``GetElectricalParts`

  Gets a list of electrical parts from the comparison result

  Signature `GetElectricalParts()`

  Returns: | Array of electrical parts
  Return type: | list of `NXOpen.Mechatronics.ComparisonResultElectricalPart`

  New in version NX9.0.0.

  License requirements: None.