During my master’s degree program, I developed a casting process parameter software package for steel castings produced in sand casting molds. The project was motivated by the need to reduce sand casting defects through more reliable and efficient process design. Traditional manual casting design relies heavily on empirical experience, repeated table lookups, and laborious calculations. This process is slow, subjective, and often leads to inconsistent decisions. As a result, the occurrence of sand casting defects such as shrinkage cavities, gas porosity, misruns, cold shuts, and hot tears remains strongly dependent on the skill of individual designers. My goal was to create a computer-aided design system that integrates common casting process knowledge, database technology, and three-dimensional modeling to support the design of machining allowances, shrinkage allowances, draft angles, and minimum cast holes directly in a 3D environment.
The software I developed runs as a plug-in inside AutoCAD, using ObjectARX and C++ to access the geometric modeling kernel and the drawing database. It uses an external Microsoft Access database to store standardized process parameters. Through a set of dialog-based interfaces, the designer can select surfaces, input dimensions, and immediately see the geometric changes in the 3D model. This direct visual feedback helps the designer understand the consequences of each decision and ultimately contributes to the prevention of sand casting defects.
In this article, I first review the development of casting process CAD systems both at home and abroad. Then I describe the selection of the operating system, development language, and database environment. Next, I present the detailed design and implementation of the four major functional modules. After that, I demonstrate the software with two practical examples. Finally, I summarize the main conclusions and explain how the system helps control sand casting defects in steel casting production.
Introduction to Casting Process Design
Casting process design is the essential link between the part drawing and the foundry floor. In sand casting, the design engineer must determine the parting direction, mold cavity layout, gating system, risers, chills, core prints, and a set of process parameters that include machining allowance, shrinkage allowance, draft angle, and minimum cast hole dimensions. All of these decisions influence the final quality of the casting. Improper selection of any of these parameters can directly trigger sand casting defects. For example, an insufficient machining allowance may leave surface defects on the machined part, while an excessive allowance wastes material and machining time. An incorrect shrinkage allowance will produce dimensional errors after cooling. A missing draft angle may cause tearing of the mold during pattern withdrawal, which is a common source of sand casting defects. A questionable cast hole may create a local hot spot, leading to shrinkage porosity. Therefore, the rational design of these parameters is an important step in minimizing sand casting defects.
Computer-aided design supports this process by organizing data, performing calculations, and automating geometry modifications. The integration of CAD with casting process design is usually called casting CAD. The concept was proposed in the 1970s, and the first practical systems appeared in the 1980s. In the beginning, most systems were two-dimensional and focused on simple calculations such as gating ratios, riser moduli, and weights. With the rapid development of three-dimensional solid modeling, modern casting CAD systems can operate directly on solid models and generate the complete process geometry. My software follows this trend and works in a three-dimensional environment, which makes the design more intuitive and helps designers avoid sand casting defects before the mold is ever produced.

State of the Art in Casting Process CAD
International Development
Research on casting process CAD began earlier in Europe and North America. The modulus method proposed by Wlodawer in the 1950s laid the theoretical foundation for riser design. Later researchers developed the contraction pipe method, the cubic equation method, and the shrinkage cavity shape method for riser sizing. These methods were implemented in computer programs that helped designers determine riser dimensions. In the area of solidification simulation, Danish researcher Forsund performed the first finite-difference calculation of temperature fields in a casting in 1962. Since then, many simulation codes have been developed by universities and commercial companies. These codes can predict temperature fields, flow fields, and solidification behavior, and they are powerful tools for predicting sand casting defects such as shrinkage porosity and hot tears.
Commercial software such as MAGMASOFT, ProCAST, Flow-3D, and SolidCast are widely used today. They can simulate mold filling and solidification, predict hot spots, optimize gating and riser systems, and help the engineer understand the formation of sand casting defects. However, these systems are usually separate from the actual process design work. The designer still needs to create the initial casting process model, including machining allowances, shrinkage allowances, draft angles, and cast holes, before simulation can be performed. My software fills this pre-simulation gap by automating the generation of these process parameters inside the CAD model.
Domestic Development
In China, casting CAD research began during the “Sixth Five-Year Plan” period with a focus on solidification control of large steel castings. The “Seventh Five-Year Plan” included a key project on casting process CAD for large steel castings. Universities and research institutes developed database management systems and special-purpose programs for rolls, frames, blades, cylinders, and valve bodies. Later, Tsinghua University developed the FT-Star system for casting solidification simulation and defect prediction. Huazhong University of Science and Technology developed the HuaZhu CAE system. These systems are valuable for numerical simulation and defect analysis, but they are not always convenient for quickly generating the process geometry in a 3D CAD environment.
Many domestic systems reported in the literature are still based on two-dimensional drawing environments or use outdated software platforms. Some systems realize parametric modeling but do not implement complete casting process design. A few modern systems based on ObjectARX and AutoCAD have appeared, but their modules are often limited to a single function such as gating design or riser design. My work tries to address these limitations by implementing four important casting process parameter modules in the AutoCAD environment. Each module is connected to a database and can directly modify the corresponding surfaces or volumes of the 3D solid model. In this way, the software supports the complete workflow from a bare part model to a casting model that can be used for mold design and simulation. The final result is a more reliable casting process and fewer sand casting defects in production.
Development Environment and Tool Selection
At the beginning of the project, I carefully considered the operating system, application software, development language, secondary development toolkit, and database system. The choice of each component has a direct impact on the performance, maintainability, and user acceptance of the software.
Operating System
I selected Microsoft Windows 2000 as the operating system platform. Windows 2000 combines the friendly user interface of Windows 98 with the stability and security of the Windows NT family. It supports a wide range of application programs and provides good environment for C++ development. For a casting process design tool that must run in a design office, the operating system must be familiar to the users and must support the CAD application without unexpected crashes. Windows 2000 satisfied those requirements at the time of development.
Application Software
The target CAD platform is AutoCAD, developed by Autodesk. AutoCAD is widely used in mechanical engineering, architecture, mold design, and manufacturing. It supports both two-dimensional drawing and three-dimensional modeling, and it has an open architecture that allows third-party developers to extend its functionality. Because most Chinese mechanical design engineers were already familiar with AutoCAD, choosing it as the host platform reduces the learning curve for the new casting process design software. AutoCAD also provides robust data exchange and solid modeling capabilities, which are necessary for modifying the 3D model during casting process design.
Development Language and Toolkit
AutoCAD offers three main development environments: AutoLISP, Visual Basic for Applications, and ObjectARX. The table below compares these languages.
| Development Environment | Language Type | Functionality | Computational Efficiency | Execution Speed |
|---|---|---|---|---|
| AutoLISP | Interpreted language | Limited | Low | Slow |
| VBA | Interpreted language | Moderate | Fair | Medium |
| ObjectARX | Object-oriented C++ | Strong and complete | High | Fast |
I chose ObjectARX because it provides the highest development efficiency and the most powerful functionality. ObjectARX is a C++ class library that runs in the same address space as AutoCAD. It gives the developer direct access to the AutoCAD database, the graphics system, and the geometric modeling kernel. This means that the developer can create custom commands, define new classes, control entity behavior, and extend the AutoCAD user interface at run time. For a casting process design program that must manipulate 3D solids and surfaces, ObjectARX is the most suitable choice.
ObjectARX can also be linked with the Microsoft Foundation Class library to create dialog boxes and window interfaces. In my development work, I used MFC to build the dialog boxes for parameter input, surface selection, and database queries. The combination of ObjectARX and MFC produced a responsive and user-friendly tool that can modify the model interactively.
Database System
I chose Microsoft Access to create the process parameter database. Access is easy to use and provides a visual wizard for creating tables, queries, and forms. It is installed on most office computers and can be manipulated by ordinary users. Inside the program, I used the Open Database Connectivity interface to read the database. ODBC is a standard application programming interface that allows C++ programs to send SQL queries to a database and receive results. In the software, all parameter lookups are performed through ODBC, which makes it possible to replace Microsoft Access with a more powerful database system without changing the application code. The database contains all the standard data required by the four modules, and it can be extended by the user to include company-specific values.
System Architecture and Database Design
The software system consists of four main modules:
- Machining allowance design and calculation module
- Shrinkage allowance design and calculation module
- Draft angle design and calculation module
- Minimum cast hole design and calculation module
Each module is implemented as a set of ObjectARX custom commands and MFC dialog classes. The dialog boxes guide the user through the necessary input operations, while the ObjectARX functions perform the geometry manipulation. The overall architecture follows an open structure, so new modules can be added in the future.
The process parameter database is organized into several tables. Each table corresponds to one type of parameter. The data are stored in a relational form, which allows the program to query by key fields such as maximum dimension, material, mold type, and surface orientation. The software reads the values from the database and then applies them to the selected faces or entities in the AutoCAD model. This approach ensures that the parameter values are consistent with recognized foundry standards and that they are not dependent on the memory or experience of the designer.
| Table Name | Key Fields | Module |
|---|---|---|
| MachiningAllowance | Maximum size, grade, surface type | Machining Allowance |
| ShrinkageRate | Pattern length, resistance type | Shrinkage Allowance |
| DraftAngle | Mold material, surface type, height | Draft Angle |
| MinimumCastHole | Hole depth, wall thickness | Minimum Cast Hole |
This database design is easy to understand and maintain. Foundry engineers can modify the standard data according to their own production conditions. Because the software reads parameter values directly from the database, it reduces the chance of using the wrong value and therefore lowers the risk of sand casting defects.
Development Process of the ObjectARX Program
The development of an ObjectARX application follows a standard procedure. First, I ran the ObjectARX wizard and created a new project. In the project settings, I selected the option to use MFC and to register the custom commands with AutoCAD. After the wizard generated the initial framework, I opened the solution explorer and the class view. I then added new dialog classes for the interface and new global functions for the geometry operations.
The main difficulty in the development process was designing the class structure and the ObjectARX entity manipulation functions. The program must be able to select a face from a 3D solid, determine its normal direction, calculate dimensions such as height and radius, and then offset or rotate the face according to the required parameter. I solved these problems by combining ObjectARX solid editing functions with custom algorithms. For example, when applying a draft angle to a cylindrical surface, the program determines the height direction and creates a new cone or cylinder with the specified angle. When applying machining allowance, the program offsets a plane or curved surface by a certain distance. These operations are impossible with AutoLISP but are straightforward with ObjectARX.
The class diagram of the program includes base classes for the common functionality of all modules, such as database connection and entity selection. Derived classes implement the specific behavior of each module. This object-oriented design makes the code easier to maintain and extend. In the future, additional modules such as riser design or gating system design can be added by creating new classes that inherit from the same base classes.
Machining Allowance Module
Introduction
The machining allowance is the layer of metal that is intentionally added to the casting surface so that after machining, the final part reaches the required dimensions and surface quality. If the machining allowance is too small, the surface defects left by the casting process may remain after machining. These defects include sand inclusions, oxide scale, decarburized layers, and other sand casting defects. If the allowance is too large, the manufacturing cost increases due to unnecessary material consumption and machining time. Therefore, the designer must choose an appropriate machining allowance grade according to the casting size, material, molding method, and surface roughness requirement.
Parameter Data
For steel castings in sand molds, the machining allowance grade is usually selected from a standard set of grades. The table below shows the data structure used in the software for the machining allowance module. The exact values are stored in the database and can be updated by the user.
| Basic Size (mm) | Grade D (mm) | Grade E (mm) | Grade F (mm) | Grade G (mm) | Grade H (mm) |
|---|---|---|---|---|---|
| Up to 100 | 2.5 | 3.5 | 4.5 | 5.5 | 6.5 |
| 100 to 250 | 3.0 | 4.0 | 5.0 | 6.0 | 7.5 |
| 250 to 400 | 3.5 | 5.0 | 6.0 | 7.0 | 8.5 |
| 400 to 630 | 4.5 | 6.0 | 7.0 | 8.0 | 10.0 |
| 630 to 1000 | 5.0 | 6.5 | 8.0 | 9.0 | 11.0 |
Implementation
The flow of the machining allowance module is shown in the following steps. First, the user selects a surface of the 3D model and determines whether it is a cylindrical surface or a plane. If it is a cylindrical surface, the program asks for the direction of the cylinder axis. Then the user chooses the type of machining operation, such as turning, milling, or grinding. Next, the software determines the maximum dimension of the selected surface and queries the database for the recommended allowance. After the value is returned, the program calls an internal ObjectARX function to offset the selected surface by the allowance distance. The modified solid is then updated immediately.
This module also allows the user to apply the same allowance to all similar surfaces of the part. For example, if several mounting faces will be machined by milling, they can all be selected at once. This feature saves time and ensures consistency. By applying the correct machining allowance, the designer can avoid the type of sand casting defects that are only discovered after machining removes the sound surface layer and exposes internal cavities or inclusions.
Shrinkage Allowance Module
Introduction
When a steel casting solidifies and cools to room temperature, it contracts linearly. The pattern must therefore be made larger than the final casting by a percentage known as the shrinkage allowance. If this allowance is wrong, the casting will have incorrect dimensions and may be rejected. The shrinkage allowance depends on the composition of the steel, the resistance of the mold, the complexity of the casting geometry, and the cooling conditions. In sand casting, the mold may partially yield to the contracting casting, which reduces the effective contraction. The pattern designer must choose between free contraction and restrained contraction to predict the correct pattern size.
The linear shrinkage rate is defined by the following formula:
$$
\varepsilon = \frac{L_m – L_c}{L_m} \times 100\%
$$
In this equation, \(L_m\) is the pattern dimension, \(L_c\) is the final casting dimension at room temperature, and \(\varepsilon\) is the shrinkage allowance expressed as a percentage. When the designer applies the shrinkage allowance to the 3D model, the software scales the casting model by the factor \(1 + \varepsilon / 100\) to obtain the pattern model. This is an important step because an incorrect scale factor would produce systematic dimensional errors and contribute to a category of sand casting defects related to casting geometry and fit.
Parameter Data
The following table shows the shrinkage allowance data structure used in the software for steel castings. The values are given for different resistance conditions and pattern length ranges.
| Pattern Length (mm) | Free Contraction (%) | Restrained Contraction (%) |
|---|---|---|
| Up to 600 | 2.5 to 3.0 | 1.5 to 2.0 |
| 600 to 1800 | 2.0 to 2.5 | 1.25 to 1.5 |
| Above 1800 | 1.5 to 2.0 | 1.0 to 1.25 |
The values in the database are used only after the designer selects the appropriate contraction type. The choice between free and restrained contraction is based on the geometry of the casting and the location of the sand cores. A casting with thin sections and large flat surfaces will produce more friction with the mold and therefore use the restrained contraction values. A casting with simple shapes and open cavities is more likely to contract freely.
Implementation
In the shrinkage allowance module, the user first selects one of the dimensions of the casting model as a reference. The program calculates the actual dimension from the solid model and determines which shrinkage allowance range should be used. The user then chooses whether the contraction is free or restrained. After the database query returns the shrinkage percentage, the program applies a uniform scale factor to the selected solid. The scaling operation can be applied to the entire solid or only to a selected part, depending on the complexity of the casting.
One important feature is that the scaling can be performed independently in different directions if necessary. In some castings, the mold resistance is different in the horizontal and vertical directions, so a direction-dependent shrinkage allowance is more accurate. The ObjectARX scaling function accepts different factors for the X, Y, and Z axes. This flexibility helps reduce hot tearing and dimensional inaccuracies, which are common sand casting defects in large steel castings.
Draft Angle Module
Introduction
Draft angle, also called pattern taper, is the slope added to the vertical surfaces of a pattern in the direction of pattern withdrawal. Without a draft angle, the pattern cannot be removed from the sand mold without damaging the mold cavity. A small amount of taper is therefore provided on all surfaces perpendicular to or at an angle to the parting plane. In steel casting, the draft angle can be achieved by adding material to the pattern, by reducing material from the pattern, or by both methods. The choice depends on whether the surface is a machined surface, a non-machined surface that will not be assembled with other parts, or a non-machined surface that will be assembled with other components.
The draft angle is related to the height of the surface and the difference between the dimensions at the top and bottom of the surface. The basic geometric relationship is given below:
$$
\tan \alpha = \frac{D_1 – D_2}{2H}
$$
Here, \(\alpha\) is the draft angle, \(D_1\) is the larger dimension at the base of the pattern, \(D_2\) is the smaller dimension at the upper end, and \(H\) is the height of the measured surface. For a flat surface, the same formula applies with \(D_1 – D_2\) representing the difference between the two widths. The software uses this relationship to calculate the required angle from the database data or to calculate the offset distance when the angle is known.
Parameter Data
The draft angle values depend on the material of the pattern. Metal patterns can have smaller draft angles because they have a smooth surface and are more rigid than wooden patterns. Wooden patterns require larger draft angles because the wood surface is rougher and tends to grip the sand. In addition, the draft angle on the inside of a pattern must be larger than the draft angle on the outside because the sand shrinks around the core print and tends to lock the pattern. The software database includes values for both metal and wooden patterns and for both external and internal surfaces.
| Measuring Height (mm) | Metal Pattern External (degrees) | Wood Pattern External (degrees) | Metal Pattern Internal (degrees) | Wood Pattern Internal (degrees) |
|---|---|---|---|---|
| Up to 20 | 0.5 | 1.0 | 0.8 | 1.5 |
| 20 to 50 | 0.5 | 1.0 | 1.0 | 2.0 |
| 50 to 100 | 0.3 | 0.8 | 0.8 | 1.5 |
| 100 to 300 | 0.2 | 0.5 | 0.5 | 1.0 |
Implementation
The draft angle module can process one surface or a group of surfaces. The user starts by choosing one or more faces of the solid model. Then the user selects the draft angle type: increase wall thickness, decrease wall thickness, or both. The direction of pattern withdrawal is also specified by the user. Finally, the user chooses the pattern material and the surface location, either external or internal. The program obtains the measuring height from the selected face and queries the database for the recommended angle.
After the angle is obtained, the program calls the ObjectARX solid editing function. The function creates a new tapered surface by rotating the selected face around a pivot line. The original face is replaced by the tapered face, and the neighboring faces are automatically adjusted. If the user chooses the “increase wall thickness” method, the face is moved outward. If the user chooses the “decrease wall thickness” method, the face is moved inward. The “both” method preserves the central axis by moving the face symmetrically.
Draft angle is one of the most direct remedies for a common class of sand casting defects known as mold erosion and pattern withdrawal damage. A proper draft angle makes the pattern slide cleanly out of the mold without disturbing the cavity surface. This prevents loose sand from becoming imbedded in the casting surface, which would otherwise produce sand inclusion defects. Thus, the draft angle module plays a vital role in reducing sand casting defects.
Minimum Cast Hole Module
Introduction
In the design of cast steel components, the engineer must decide whether a hole should be formed directly by casting or left to be produced by subsequent machining. Large holes are usually cast because this saves material and machining time. Small holes are better drilled because the drilling operation is fast and accurate. The decision is based on the diameter of the hole, the depth of the hole, and the thickness of the surrounding wall. If a hole is too small relative to the wall thickness, the sand core used to form the hole may not be strong enough, or the excessive metal around the core may create a hot spot that leads to shrinkage porosity. These shrinkage cavities are typical sand casting defects that occur around small blind holes and deep holes.
Parameter Data
The minimum cast hole module uses a database table with the recommended minimum hole diameter for various combinations of hole depth and wall thickness. The table below shows the structure of this data.
| Hole Depth (mm) | Wall Thickness (mm) | Minimum Cast Hole Diameter (mm) |
|---|---|---|
| Up to 50 | 10 to 20 | 30 |
| Up to 50 | 20 to 40 | 40 |
| 50 to 100 | 10 to 20 | 35 |
| 50 to 100 | 20 to 40 | 45 |
| 100 to 200 | 10 to 20 | 45 |
| 100 to 200 | 20 to 40 | 55 |
| Above 200 | Any | 60 |
The program uses the wall thickness and the depth of the hole as query keys. If the diameter of the hole in the part is smaller than the recommended minimum value, the software advises the user not to cast the hole. In that case, the hole is filled with solid material in the casting model. If the hole is large enough to be cast, the software keeps the hole and may add a core print or additional instructions for the foundry.
Implementation
The implementation of the minimum cast hole module begins with the selection of a hole wall surface. The software detects the diameter of the hole and calculates the approximate depth. It also evaluates the wall thickness by measuring the distance between the inner hole surface and the outer surface of the model. After these dimensional data are obtained, the user confirms the values and the program performs a database query.
When the query returns the recommended minimum diameter, the program compares it with the actual hole diameter. If the actual hole is too small, the module automatically fills the hole geometry. This operation is carried out by translating and modifying the solid body so that the hole disappears. The user can also apply the same decision to other holes with identical dimensions. This is helpful for parts with many holes, such as flanges and valve bodies.
By making this decision in a systematic way, the software prevents unnecessary cores and reduces the formation of hot spots around holes. Shrinkage porosity around cored holes is one of the most frequent sand casting defects in steel castings. The minimum cast hole module directly addresses this problem. It also reduces manufacturing cost because small holes are produced more economically by drilling than by cores.
Database Connection and Configuration
One critical part of the software is the connection between the ObjectARX application and the database. I used the ODBC administrative tools in Windows to create a system data source. The data source name must match the name used in the program. This name is fixed in the current version. If a user wants to change the database, he or she can update the ODBC configuration and replace the underlying Access file with another database containing the same table names and fields.
The application opens the database connection at the beginning of each query and closes it after the result is fetched. This ensures that the database is not locked for other users. The C++ code uses the CDatabase class from MFC to connect to the ODBC data source and CRecordset to execute queries. The following SQL query structure is used inside the program:
$$
\text{SELECT ParameterValue FROM TableName WHERE ConditionField = \text{Value}}
$$
This approach makes the program modular. If the database is migrated to a client-server system such as SQL Server or Oracle, only the ODBC settings need to be changed. The application code remains the same. This is an important advantage for foundries that may want to share the database on a network or integrate it with other manufacturing software.
Software Usage and User Interface
The user interface of the software consists of a set of dialog boxes. Each dialog box is designed according to the natural workflow of the casting process engineer. The user is not required to remember command names because all operations are launched from a custom menubar or toolbar in AutoCAD.
When the user starts a module, the first dialog box asks for the required input. For example, the machining allowance module asks the user to select the surface type and the machining method. The next dialog box shows the dimensions calculated from the selected faces. Then the user confirms the grade and clicks OK. The program performs the operation and returns to the drawing window. This style of interaction is very intuitive for mechanical engineers who are accustomed to Windows applications.
The software also provides error handling for invalid selections. If the user selects a face that is not suitable for the selected operation, the program displays a warning and asks for a new selection. This prevents accidental modification of the 3D model. The dialog boxes include preview information such as the current value from the database and the resulting dimension, which helps the user verify the operation before it is applied.
Case Study 1: A Bracket with Cylindrical Features
To validate the software, I used a three-dimensional bracket model. The model contained a cylindrical boss, inclined ribs, four circular holes, and a flat bottom surface. I performed a complete casting process design on this model with the four modules.
First, I selected the cylindrical portion and the inclined rib surfaces and applied a draft angle. The dialog box allowed me to choose the increase wall thickness method and the external metal pattern option. After I entered the direction of pattern withdrawal, the software obtained the height of the surfaces from the solid model and queried the database. It then created a tapered surface on the cylindrical boss and the ribs. The local enlarged view confirmed that the draft angle was correctly applied.
Second, I selected the four holes and used the minimum cast hole module. The software calculated the hole diameter and depth. The result indicated that the holes were smaller than the recommended minimum cast hole diameter. Therefore, the holes should not be cast. The software automatically filled the holes, and they disappeared from the solid model. This is exactly the expected decision for small holes in steel castings.
Third, I selected the bottom face and applied a machining allowance. The software used a grade suitable for the maximum dimension of the face and offset the surface by the required allowance. I verified that the offset distance was too small to be seen in the full view but was correct in the dimensional database.
Finally, I applied the shrinkage allowance to the whole casting. The software selected the appropriate shrinkage percentage from the database and scaled the model. The overall dimensions of the model increased slightly, representing the pattern dimensions. This operation ensures that the final casting will not be undersized.
After the complete process design, I examined the model for potential sand casting defects. The draft angle made pattern withdrawal safe, the filled holes eliminated hot spots, and the shrinkage allowance compensated for contraction. This systematic process reduces the probability of many common sand casting defects, including misruns, cold shuts, shrinkage porosity, and sand inclusions.
Case Study 2: A Part with Flat Surfaces and a Large Hole
The second example was a part with several flat surfaces, a central large hole, and an external cylindrical surface. The process design was performed in three steps.
In the first step, I selected the bottom surface and the top surface and applied a machining allowance to both faces. The purpose was to provide enough material for later surface grinding. The software assigned a reasonable allowance value from the database. Although the offset was visually small, the model was correctly updated.
In the second step, I applied a draft angle to the external cylindrical face. The software asked for the withdrawal direction and the pattern material. After the draft angle was applied, the cylindrical face was converted into a tapered face. The local enlarged view showed the taper clearly. This will help the pattern leave the mold smoothly and reduce the likelihood of mold wall damage and the resulting sand casting defects.
In the third step, I used the minimum cast hole module on the central hole. The hole was large enough to be cast, so the program kept the hole and did not fill it. This is correct because casting a large hole saves material and avoids a thick section in the center of the part. At the same time, the software warned that the hole depth and wall thickness combination was not critical. The module therefore allowed the hole to remain as a cored hole.
The two case studies demonstrate that the software can handle different combinations of surfaces and holes in a three-dimensional environment. It is stable, responsive, and easy to operate. The direct visual feedback helps the engineer verify that the parameter values are properly applied. In both examples, the decisions made by the software were consistent with standard foundry practice and aimed at reducing sand casting defects.
Benefiting from the Integration of Process Parameters
One of the main contributions of my software is that it combines the four parameter calculations into one integrated system. In the traditional workflow, the engineer must consult multiple tables and manual drawings for each parameter. This creates opportunities for misreading values and accidentally applying the wrong allowances. By centralizing the data in a database and using the CAD model as the visual interface, the software reduces human error and makes the design process more transparent.
Another benefit is the strong connection between the parameter database and the 3D model. When a parameter is selected, the model changes immediately. The engineer can see exactly which faces are affected and how much material is added or removed. This is much more powerful than a spreadsheet-based calculation. It also helps in the detection of sand casting defects because the engineer can compare the final process model with the original part design and ensure that all critical dimensions are covered.
The software can be extended to include other process parameters, such as gating ratio, riser dimensions, core prints, and chills. The database and class structure are already prepared for this expansion. With additional modules, the software would become a complete casting process CAD system. It would then be possible to generate the full process model and directly export it to a solidification simulation program for the prediction of sand casting defects.
Limitations and Future Work
There are some limitations in the current version of the software. First, the machining allowance module is mostly designed for simple planar and cylindrical surfaces. For complex freeform surfaces, the offset operation may require more sophisticated geometric algorithms. Second, the database contains standard parameter values, but it does not include company-specific rules or user-defined formulas. In the future, a rule-based or expert system layer could be added. Third, the software currently does not perform automatic selection of the parting plane. The user must manually determine the withdrawal direction. In an advanced version, the software could suggest a parting direction based on the geometry analysis.
Another future improvement is the integration with solidification simulation. The process model generated by the software can be used as input to a finite difference or finite element mesh generator. The results of the simulation would then provide feedback to the design module, allowing the engineer to adjust the process parameters if sand casting defects are predicted. This closed-loop design approach is the direction of modern casting CAD/CAE integration.
Conclusion
I successfully developed a casting process parameter software package for steel castings in sand casting molds. The software consists of four modules: machining allowance, shrinkage allowance, draft angle, and minimum cast hole. It runs in the AutoCAD three-dimensional environment and uses an external database to store process parameters. The ObjectARX toolkit was selected as the development platform because it provides direct access to the AutoCAD solid model and supports efficient C++ programming.
The software was tested on two practical examples. The tests showed that the modules are stable and the user interface is convenient. The designer can select surfaces, choose the process type, query the database, and immediately see the modified geometry. This makes the casting process design more efficient and more reliable.
From the perspective of quality control, the software helps the foundry engineer make better decisions before any mold is produced. The correct machining allowance prevents surface defects from being exposed after machining. The correct shrinkage allowance ensures dimensional accuracy. The correct draft angle prevents damage during pattern withdrawal. The correct minimum cast hole decision prevents hot spots and unnecessary cores. All of these factors contribute to the reduction of sand casting defects and to the production of high-quality steel castings.
In conclusion, the system fulfills the objectives of this project. It combines database management, 3D solid modeling, and casting process knowledge into a practical software tool. Future extensions can turn the current system into a complete casting process CAD platform, capable of handling gating and riser design, numerical simulation, and fully automatic process optimization. Such a platform will further reduce sand casting defects and improve the competitiveness of steel casting foundries.
