Non Allowed BRep and Feature Color

This check verifies the color of boundary representations (BRep) and whether such colors are allowed.

If not, the check fails.

This page discusses:

Context

A boundary representation (BRep) is a feature such as a vertice, edge, or face.

Sometimes, during the exchange of data with other systems, you can lose information if the target system does not support specific colors.

You can use this check to verify the color of the feature.

Note: This check only verifies the color ranges specified as allowed. Any other color range is considered as non-allowed.

Check Information

Check Details Description
Applicable to: MechanicalFeature
Automatic Solution:
Check Parameters:
  • Color_ranges_are_allowed: Boolean type.

    Specifies whether the list of values corresponds to the color ranges specified as allowed.

    Note: By default, the value is true: the list of values corresponds to the allowed color ranges.

    Specify false for the check to consider that the value list corresponds to non-allowed color ranges.

  • Range_red_from: Integer type.

    Specifies the minimum red value allowed for the feature.

  • Range_red_to: Integer type.

    Specifies the maximum red value allowed for the feature.

  • Range_green_from: Integer type.

    Specifies the minimum green value allowed for the feature.

  • Range_green_to: Integer type.

    Specifies the maximum green value allowed for the feature.

  • Range_blue_from: Integer type.

    Specifies the minimum blue value allowed for the feature.

  • Range_blue_to: Integer type.

    Specifies the maximum blue value allowed for the feature.

  • Element_types_to_check: String type.

    Specifies the types of elements to verify.

    Select one or more of the following types:

    • OpenBodyFeature
    • MechanicalFeature
    • GeometricFeature

  • Check_sub_elements: Boolean type.

    Specifies whether to verify subelements.

    Note: By default, the value is false.

  • Ignore_elements_with_inherited_color: Boolean type.

    Specifies whether to ignore elements that inherited their color.

    Note: By default, the value is false.

  • Healing_red: Integer type.

    Specifies the red value to apply to the feature when using the automatic solution.

    Note: By default, the value is 225.
  • Healing_green: Integer type.

    Specifies the green value to apply to the feature when using the automatic solution.

    Note: By default, the value is 225.
  • Healing_blue: Integer type.

    Specifies the blue value to apply to the feature when using the automatic solution.

    Note: By default, the value is 225.

Check Failure Resolution

If the check fails, use the automatic solution on the features to replace the incorrect colors either with an allowed color or with the default color.