Result Element Name Must Match Body Name

This check verifies whether the names of certain result elements match (fully or partially) the names of the associated geometrical sets.

If not, the check fails.

This page discusses:

Context

In the tree, under a geometrical set, the features do not necessarily appear in the order of creation.

In specific cases, you must ensure that the name of the last feature (that is the result element of the geometrical set) matches the name of the geometrical set.

This helps you identify the result element of the geometrical set, especially when it is used outside of the geometrical set.

Tips:
  • To restore the order of features according to the order of creation, right-click the geometrical set in the tree and select AutoSort.
  • To customize the order of features in the geometrical set, right-click the geometrical set in the tree and select Reorder Children.
    Note: You cannot customize the order of features in ordered geometrical sets or bodies.
For more information, see 3D Modeling | 3D Modeling Core | Part Design | Part Design | Associating Bodies | Managing Geometrical Sets.


AutoSort option
Reorder Children option

Check Information

Check Details Description
Applicable to: OpenBodyFeature
Automatic Solution:
Check Parameters:
  • ResultElementTypes: Multi-Value Parameter type.

    Specifies the types of result elements to verify.

    Note: By default, the value is GeometricFeature.

  • CaptureBodyNames: Multi-Value Parameter type.

    Specifies the names of bodies to verify. Use a regular expression.

    Notes:
    • By default, the value is .* (that is all body names).
    • To verify if a specific substring is part of the result element name, put it between brackets.

  • CaptureResultElementNames: Multi-Value Parameter type.

    Specifies the names of the result elements to verify. Use a regular expression.

    Note: By default, the value is \1. \1 verifies that the name of the result element matches the substring specified in CaptureBodyNames.

  • IgnoreResultElements: Multi-Value Parameter type.

    Lists the names of result elements to ignore during the comparison. You can use regular expressions.

    Note: By default, the value is Geometrical Set.*.

Check Failure Resolution

If the check fails, edit the feature and modify its name.

To do so:

  1. Right-click the element in the tree and select Properties .
  2. In the Feature Properties tab, modify the Feature Name for it to match the body name.
For more information, see 3D Modeling | 3D Modeling Core | Part Design | Part Design | Displaying and Editing Properties | Displaying and Editing Features Properties.

Examples of Name Comparisons

CaptureBodyNames content Description CaptureResultElementNames content Description
(.*) Verifies the names of all the bodies. \1 Verifies that the name of the result element matches the body name.
#(.*) Verifies the names of all the bodies that start with #. \1 Verifies that the name of the result element includes the substring of the body name that follows #.
([0-9]+)$ Verifies the names of the bodies that end with a number. Result\1 Verifies that the name of the result element includes Result followed by the number at the end of the body name.
^Z.* Verifies the names of the bodies that start with Z. Result[0-9] Verifies that the name of the result element includes Result followed by a number.
Note: You cannot use the automatic solution with this regular expression, as it includes metacharacters other than a backslash.