Elements without Child Elements in Specific Bodies

This check verifies whether body elements include child elements.

If not, the check fails.

This page discusses:

Context

You can create elements in bodies and use them to define other elements in the model. Such elements are called child elements. For more information, see 3D Modeling | 3D Modeling Core | Part Design | Part Design | Using Miscellaneous Tools | Displaying Parents and Children.

You can select which types of bodies and elements to verify with the check.

Check Information

Check Details Description
Applicable to: PartFeature
Automatic Solution:
Check Parameters:
  • Body_types_to_check: String type.

    Specifies the type of bodies with elements to verify.

    Select one or more of the following values:

    • BodyFeature
    • OpenBodyFeature
    • MMOrderedGeometricalSet
    Note: By default, all the values are selected.

  • Bodies_to_check: String type.

    Specifies the paths and names of the bodies with elements to verify.

    Note: By default, the value is .* (all body names).

  • Element_types_to_check: String type.

    Specifies the types of elements to verify.

    Select one or more of the following values:

    • Sketch
    • Curve
    • GSMPlane
    • Point
    • Surface
    • Solid

  • Check_datum_features: Boolean type.

    Specifies whether to verify datum features. Select true to verify datum features.

    Note: By default, the value is true.

Check Failure Resolution

If the check fails, use the automatic solution to delete any unused child elements in bodies.

You can also right-click the unused element in the tree and select Delete.

Example

Here are some examples on how to define the Bodies_to_check parameter:

  • To verify all the bodies from the model, enter .*.
  • To verify bodies with a specific name, enter *\BodyName.
  • To verify all the child bodies of a specific body, enter *\BodyName\*.
  • To verify all the bodies with a specific name, and all of their child bodies, enter *\BodyName *\BodyName\*