Solid Names Must Match Part Name

This check verifies whether the name of a body includes the same character string as the one from the part name.

If not, the check fails.

This page discusses:

Context

During the creation of a 3D shape, the body is automatically called PartBody.

If the model includes a single body, its name must match the part name. If several bodies exist, a suffix numbers appears at the end of the name string of each body.

To easily identify different bodies, you must rename them according to specific naming rules. This also helps you during the generation of an automatic list of existing bodies.

You can use this check to verify if the model nomenclature complies with the naming rules. The names of the verified bodies must include the same specific character string as in the corresponding part names. If not, the check fails.

For example, if the part is called Axle, the associated bodies must be called Axle with a suffix number.

Check Information

Check Details Description
Applicable to: PartFeature
Automatic Solution:
Check Parameters:
  • ParameterSet: Integer type.

    Defines the parameter set to use to verify the character strings:

    • ParameterSet1: Verifies fixed specifications by comparing substrings at a specific character position, and of a specific length.
    • ParameterSet2: Verifies more flexible specifications, for example, by comparing substrings starting at different character positions, and of different lengths.
    Notes:
    • Most of the following parameters only apply for ParameterSet1.
    • AtLeastOneConditionMustMatch applies to both parameter sets.
    • CaptureSolidNames and CapturePartNames only apply to ParameterSet2

  • Position: Integer type.

    Specifies the starting position of the body name substring to verify.

    Note: By default, the value is 0.

  • NumberOfCharacters: Integer type.

    Specifies the number of characters to compare.

    Note: By default, the value is 5.

  • IgnoreWhiteSpaces : Boolean type.

    Ignores white space characters in the model name during the comparison.

    Note: By default, the value is true.
    For example, if you select False, the strings ABCD and AB CD are considered as different.

  • CheckEnumeration: Boolean type.

    Verifies the suffix number of body names according to their format (number of characters and separator) and to the continuous numbering.

    Note: By default, the value is true.

  • AllowedSeparator: String type.

    Specifies the separator type to allow between the element name and the suffix number.

  • NumberOfCharactersForEnumeration: Integer type.

    Specifies the number of digits to allow in the suffix number.

    Note: By default, the value is 1.

  • CapturePartNames: Multi-Value Parameter type.

    Specifies the name of the part to verify. Use a regular expression. To verify the presence of a specific substring in the solid name, put it between brackets.

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

  • CaptureSolidNames: Multi-Value Parameter type.

    Specifies the name of the solid part to verify. Use a regular expression.

    Notes:
    • By default, the values are PartBody and Body(.*).
    • Specify \1 to verify that the name of the result element matches the substring specified in CaptureBodyNames.

  • AtLeastOneConditionMustMatch: Boolean type.

    Specifies whether the bodies must comply with all the specified rules.

    • Specify true to verify that all the bodies comply with all the rules.
    • Specify falseto verify that all the bodies comply with at least one rule.
    Note: By default, the value is true.

Check Failure Resolution

If the check fails, edit the solids and rename them according to the naming rules.

To do so:

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