Demonstrates how to perform molding design analysis on a 3D model and print information about found issues and their parameters in a console.
In this example demonstrates how to perform molding design analysis on a 3D model using molding dfm analyzer tool (DFMMolding_Analyzer). For this purpose, used a console application that imports a model, traverses through unique ModelData_Part , creates and runs DFMMolding_Analyzer, groups and prints information about found issues and their parameters into console. Molding design analysis will be performed for each unique ModelData_Part , but only for the scope of accepted geometries.
Application needs 1 input argument to run:
For more information about molding design analysis visit Injection Molding Design for Manufacturing (DFM) page.
PartProcessor class is inherited from SolidProcessor and overrides ProcessSolid method that are used to run design analysis on given shape.
Visit Model Explore Helper Implementation page for more information about base SolidProcessor class implementation.
To traverse only unique parts of the imported model, the ModelData_ModelElementUniqueVisitor class is used.
After performing design analysis, the object of FeatureGroupManager class is used to group and sort found issues. For this purpose, there is a traverse through all found issues and add each of them to FeatureGroupManager with a specified name.
After adding all found issues to FeatureGroupManager, a Print method of the manager is used to print information about found issues and their parameters in a console. PrintFeatureParameters is created to explore and print issue parameters. It uses as an input parameter of Print method.
Visit Feature Group Helper Implementation page for more information about FeatureGroupManager class implementation.
Below is an example output for model from ./examples/models/Part3.stp.
| Model | Example output |
|---|---|
| Model: Part3
Part #0 ["Part3"] - solid #0 has:
High Rib Issue(s): 3
3 Rib(s) with
expected max height: 11.7371 mm
actual height: 29 mm
High Screw Boss Issue(s): 3
1 Screw Boss(es) with
expected max height: 3.50883 mm
actual height: 50 mm
1 Screw Boss(es) with
expected max height: 5.775 mm
actual height: 30 mm
1 Screw Boss(es) with
expected max height: 18 mm
actual height: 30 mm
...
Total issues: 84
|