Evolution of Computer-Aided Process Planning for Hybrid Additive/Subtractive Process

%e hybrid process, which integrates two or more different processes such as additive manufacturing and subtractive manufacturing, has gained appreciable considerations in recent years. %is process exploits the benefits of individual processes while overcoming their limitations. Lately, the combination of additive, subtractive, and inspection methods is a valuable conglomeration, considering its potential to produce complicated components precisely. Certainly, computer-aided process plan (CAPP) provides a crucial link among different processes and is essential to avail the benefits of hybridization. However, a valuable process plan can only be achieved through the optimization of its different elements.%erefore, the objective of this work is the accomplishment of an optimized CAPP to fabricate parts in the shortest time employing the hybrid additive, subtractive, and inspection processes. In this work, mathematical models have been developed to optimize part orientation as well as minimize additive and subtractive times. Additionally, the genetic algorithm has been employed to obtain the best path with minimum inspection time. %e feasibility and capability of the proposed approach as well as the optimized CAPP for the hybrid process have been demonstrated through a case study.


Introduction
e growth and development of the manufacturing business depend on the ingenious studies related to the optimized utilization of manufacturing processes, materials, and product design. e highly competitive market, as well as the requirements of complex and accurate parts at a reasonable price, has given rise to the concept of hybridization. e hybrid manufacturing (HM) can be described as the fabrication approach, wherein the combination of manufacturing processes is integrated. HM helps to enhance the performance of individual processes while providing a compounded advantage from these processes. It is crucial to figure out the principles, advantages, and shortcomings of discrete processes for realizing HM. In recent times, the hybridization of additive and subtractive manufacturing is the most demanding due to its numerous benefits.
A subtractive manufacturing (SM) process such as computer numerical controlled (CNC) material removal machine can be integrated with the additive manufacturing (AM) process to overcome the constraints such as tool inaccessibility, higher error, degraded surface conditions, and lower building rate [1]. e combinations of AM and SM processes are increasingly being used to enhance manufacturing performance in terms of higher tool life, lower building time, effective machining with close tolerances, and enhanced surface finish. Although HM exhibits many benefits, its applications are limited as a result of the scarcity of computer-aided process plan (CAPP) approaches. Moreover, the few CAPPs which are existing have not been optimized to achieve effective and efficient HM. Indeed, the research works have so far focused on improving the individual processes instead of applying a comprehensive and universal perspective to optimize HM [2,3].
Consequently, an effective and efficient CAPP is needed to be developed which can effectively shorten the fabrication time. As reported by many researchers, there is a significant lack of CAPP techniques, which can adequately utilize manufacturing resources to accomplish hybridization.
is work develops a hybrid process integrating AM, SM, and the measurement process. A new process-planning system has been proposed for the production of prismatic parts in the shortest manufacturing time.
e developed CAPP would provide enough flexibility to adapt to any modifications in production assets, machining settings, etc. on the working area as well as allow minimization of part production time. In this work, the CAPP has been optimized to improve the hybridization of AM, SM, and the inspection processes. e mathematical models have been developed to obtain the best part orientation as well as minimize the additive and subtractive times. Additionally, the genetic algorithm (GA) has been implemented to achieve the best path with minimum inspection time. A case study has also been discussed to depict the performance of the optimized CAPP in the hybrid process.

Literature Review
AM parts usually possess a poor surface quality; therefore, they are machined to produce the smooth surface finish. AM process can be integrated with the SM process to produce the finely finished parts. Largely, CNC milling is the frequently used procedure to process the near-net shapes obtained from AM.
is is because the flat surface obtained using an uncomplicated rotary-tool polishing or grinding does not meet the norms needed for precise and accurate parts [4]. erefore, advanced postprocessing using CNC polishing and milling, ultrasonic machining, glass blasting, etc. are required to produce finely finished parts [5]. ere have been numerous efforts, where AM and SM have been combined to overcome the limitations of each other. Karunakaran et al. [6] explored the benefits of hybridization between CNC and AM. ey combined a CNC machine and arc weld deposition to enhance the quality of the product and reduce production span and overall manufacturing cost. In the proposed setup, the layers were accumulated using metal inert-active gas welding and three-axis milling was employed to obtain the finely finished surfaces. LUMEX represented a single setup, which combined a fiber laser for metal sintering and a machining center for high accuracy and high-speed milling [7].
is system could fabricate complicated mold dies in lesser time and reduced production cost. Similarly, Kulkarni and Dutta [8] overcame the limitations of AM and SM processes through an integrated production setup. A hybrid process based on the integration of selective laser melting and CNC milling was employed by Kashouty et al. [9] to achieve desired accuracy and precision in the manufacture of an automobile tool insert. To comprehend the benefits of HM, Ren et al. [10] introduced a unified process-planning system considering a single setup combining AM and SM. It consisted of the extraction of information from the computer-aided design (CAD) model, optimization of the tool path, and collision detection algorithms. Liou et al. [11] and Ruan et al. [12] also developed a process-planning approach for laser sintering and CNC machining. eir approach was based on dividing the parts in nonuniform layer thickness and accomplishing collision-free tool paths.
Few works that focused on optimizing the process plans can also be pointed out in the literature. Although, there has been a significant scarcity of optimized process plans for hybrid processes. Most of the efforts directed to the optimization of process plans were dedicated to individual processes or manufacturing systems. For instance, Shabaka and ElMaraghy [13] developed a GA-based approach to optimize the manufacturing cost of the process plans in reconfigurable manufacturing systems (RMSs). e researchers identified various parameters such as machine appointment, machine structure, operation order, operation cluster sequencing, selected tools, and tool approach directions (TADs) of the operations, etc., to obtain the mathematical models. Likewise, Jia et al. [14] utilized the object-oriented representation to accomplish manufacturing information, process decision insight, and decision procedure control knowledge. Some works that have concentrated on the optimization of process plans for the hybrid process can also be listed out. Ahsan et al. [15] developed an innovative two-step optimization methodology to figure out the appropriate build direction for the object and material accumulation direction for layers. ey considered the lowest contour plurality, surface characteristics, build height, fabrication parameter, and layer contour concavity to overcome the limitations associated with fabrication and resource availability. e developed methodology was carried out on a case study, and the outcomes indicated a significantly reduced total build time in contrast to the total build time related to subjective build and deposition directions. Similarly, Um et al. [16] proposed a description method of HM and developed process plans at both macroand microlevels. e stereolithography (STL) data, which are utilized to fabricate the part by AM, comprise a large number of errors, owing to several geometric processes. erefore, the representation of solid models utilizing the Standard for the Exchange of Product model data (STEP) maintains the error as low as possible during geometric reasoning. e realization of geometric reasoning makes the process of planning automated with high accuracy. Moreover, Le et al. [17] demonstrated the utility of aggregating two technologies. e proposed approach aimed at reusing existent parts directly to produce final parts, evading the material recycling stage. is paper particularly aimed at designing the process plan for a composite AM and SM processes. Aboutaleb et al. [18] proposed an integrated framework to systematically accomplish suitable fused filament fabrication (FFF) process parameters, which resulted in optimal geometry integrity. e developed method was verified through a real-world case study. e outcome confirmed that optimal properties were attained more efficiently as compared to other existing methods. Reiher and Koch [19] considered part orientation as well as quality management guidelines to accomplish a suitable production plan. ey showed numerous methods and measures to 2 Advances in Materials Science and Engineering attain product optimization, information acquisition, decision-making, and shape identification for part optimization in AM. Udroiu and Nedelcu [20] proposed an optimization approach which aimed at three AM applications. e first application was the part orientation considering the minimum build time, minimum support structure, and surface accuracy. e second application was targeted at fitted validation of parts obtained using threedimensional (3D) printing. e study by Byun and Lee [21] aimed at the recognition of optimal buildup direction for different rapid prototyping (RP) systems. e computation of surface quality considered the layering effect, building time and part cost, labor cost rate, material cost, etc. e developed algorithm was utilized to obtain the most appropriate buildup direction and generate an optimal process planning.
Certainly, the research studies presented above have contributed immensely to the literature on hybrid techniques and their process planning. However, as shown in Table 1, these works were adequate and acceptable, but they were not all-inclusive as well as limited in their utilization. Moreover, there has been a dearth of research works that have focused on the development of optimization approaches for process planning of hybrid additive and subtractive manufacturing methods. ere has always been a requirement to develop an optimized CAPP system for the hybrid process that can adjust to volatile machining conditions. erefore, in this work, an optimized CAPP has been proposed to fabricate parts in the shortest time utilizing the hybrid additive, subtractive, and inspection processes. e mathematical models have been employed to optimize part orientation as well as minimize additive and subtractive times. Besides, the GA has been utilized to obtain the best path with minimum inspection time.

Methodology
e methodology proposed in this work would enhance the product quality as well as reduce the manufacturing costs. e scheme explained in Figure 1 represents specifically a generic overview of the hybrid additive, subtractive, and inspection system.

Feature Extraction and Recognition.
A rational consistent feature recognition approach has been employed to achieve feature recognition.
is system possesses the competence to communicate with hybrid additive, subtractive, and inspection systems. e proposed methodology has been introduced for 3D prismatic parts designed by a solid modeling package (CATIA V5). e system considers a neutral file in STEP format as input and then interprets the information in the file to the manufacturing information.
e ISO 10303 STEP Standards AP 203 E2 file has been utilized. e steps of the feature extraction and recognition methodology are as follows: Step 1. Obtain the geometry and topology items for the designed model using STEP file format.
Step 2. Obtain topology items in each basic surface and determine its type.
Step 3. Verify the feature's presence in the basic surface depending on loops.
Step 5. Determine the detailed features and obtain the related feature geometry parameters.
Step 6. Determine the comprehensive machining data for each feature and the designed part. e sample output of a feature extraction file that contains a feature ID, feature name, feature face IDs, and feature dimensions is shown in Table 2.
e rule-based approach as reported in [26] was adopted in this work to recognize the SM features. e following example represents the rule for recognizing the pocket through feature: (1) For every 4 faces of the surface type plane (named as face 1, face 2, face 3, and face 4) as shown in Figure 2  (

3) End For
For inspection, the data such as faces, edges, and vertices in the extraction file were classified and listed on the basis of their type and angles. Dimensional tolerances (DTs) were calculated from the direct limits of the extracted feature's faces plus/minus tolerance values. For example, the feature length was calculated as the difference between F3 and F5, etc., as shown in Table 3 and Figure 2(b).

Part Orientation.
e orientation rules for the improved surface accuracy depend on the relative orientation of various features/entities (in the extraction file) concerning the build direction. e extracted face orientation can be parallel, perpendicular, or at some angle. To satisfy better Geometric Dimensioning and Tolerancing (GD&T) [24], the objective functions of the optimal orientation of the part were modeled. e objective functions were the maximization of GD&T values and the minimization of production time.
e automatic setup generation was achieved by gathering information from the feature extraction and recognition file as shown in Figure 3.
In this diagram (Figure 3), the setup class is consisted of get these methods, get all feature's faces, get all part faces, remove interaction faces, generate frequency interaction edges, generate probe feature accessibility, and make feature clustering. e face class has consisted of get face ID, get face Advances in Materials Science and Engineering name, get face type, get face loop, get face edges, get face vertices, and get face direction.

Automatic Slicing Part to Subpart.
e automated hybrid additive, subtractive, and inspection cannot be achieved without the automatic slicing of a part to a subpart. In this study, automatic slicing of a part to a subpart was achieved by dividing the CAD model into different CAD files using the CATVBA editor within CATIA V5. After slicing a part to a subpart, output data for every subpart was obtained in the STEP file format. In this automatic slicing, all data were divided automatically in an empty target file by running the code. e part peaks were the inputs to the slicing code. After that, the subpart area and volume parameters were calculated automatically and data were exported to an Excel Kamrani et al. [22] A framework was developed to generate an instruction file for guiding the CMM measurement process. is work primarily emphasized on developing a computeraided process plan for the inspection process. e feature extraction, feature recognition, and probe approach directions were utilized for ease of access, setup planning, and inspection point's distribution on the measurand. e techniques such as the clustering algorithm, graphical method, and ANNs were used to carry out the competent inspection. e proposed approach was effective and competent, but it did not deal with the manufacturing aspects. e stated process plan did not consolidate the manufacturing processes, such as additive and subtractive processes.
is work is distinctive because it integrates additive, subtractive, and inspection processes. e proposed CAPP is holistic and comprehensive, which incorporates manufacturing as well as inspection information in the detailed process plan. e plan is flexible to adjust to any changes in production resources, machining, and inspection settings, etc.

Homar and Pušavec [23]
A processing time-and cost-oriented algorithm was reported to minimize the fraction of the component that has to be fabricated additively. A novel algorithm based on an optimized manufacturing operation sequence was utilized for feature recognition in hybrid processing (subtractive and additive). e authors presented an ingenious concept but did not recognize inspection, which has now become an integral link in the production process. Furthermore, this approach can be inefficient if the part is very complex and the product requires an additive process for the majority of its features.
In this work, the inspection activity has been an indispensable element of the entire methodology. e additive, subtractive, and inspection processes have been synchronized to attain an efficient process plan. e established approach is formative and can be utilized for prismatic parts with any complexity.
Al-Ahmari et al. [24] e relationship between the attribute and build orientation was studied in this work. An optimal part orientation system was established to improve part quality/accuracy in additive manufacturing. In this approach, the weighted sum function was employed to compute the part volume and time required for printing. is work was enlightening, but it was limited only to additive manufacturing and didn't describe the proposed algorithm for its application in hybrid additivesubtractive-inspection process.
e existent research incorporated and unified the developed mathematical models to enhance the effectiveness of the extensive process plan for the hybrid additive-subtractive-inspection process.
Abdulhameed et al. [25] e concept of the multiagent system was proposed to develop a computer-aided process plan for the hybrid additive-subtractive-inspection process. It was based on a three-step methodology, namely, a static process plan, selection of optimum scenario, and dynamic process plan. e crux of this work was the application of agent theory in acquiring a proficient computer-aided process plan for the hybrid process. However, this work did not describe the optimization of individual phases. Although the inspection was an integral part of their methodology, the minimization of inspection time was not considered. Moreover, this work primarily focused on the software front and did not present the actual setup for hybrid machining.
e present work has also introduced a computer-aided process plan for the hybrid additive-subtractiveinspection process, but it does not consider the agent theory. Instead, the idea of peaks is implemented to slice the entire part to subpart. Moreover, the optimization of each phase in the process planning of the hybrid process is the essence of this work. e genetic algorithm has been implemented in this study to minimize the inspection time, besides other optimization models. e setup designed for hybrid additive-subtractiveinspection process has also been referred to in this work.
datasheet. e exported data were used to calculate the total additive and subtractive area and volume of the part as shown in Figure 4.

Simulation.
In this work, a finite element analysis (FEA) framework (see Figure 5) has also been developed for simulating the additive process. e objective of this analysis     Advances in Materials Science and Engineering 5 was to arrive at the constraints for process planning. e FEA approach in this work was established similar to the scheme and mathematical models reported in [27]. is analysis was subdivided across two phases. e thermal analysis, which solves the heat equations, was carried out to assess the temperature field. e resulting temperature field was then used in the mechanical analysis to determine von Mises stress and component deformation.
e additive system employed in the current investigation was equipped with two extruders, which could be heated up to 600°C, and a nozzle of 0.2 mm of diameter was used. e bed temperature could reach up to 100°C. e different nozzle and bed temperatures, part orientations, extruder velocities, and layer thicknesses were applied to study the stress and deformations. e conditions were then identified to produce the most accurate part using additive  manufacturing. is analysis also provided the regions (such as areas with high distortion) which could be prioritized for machining using the subtractive process. e FEA results were also utilized to define the sampling strategy required for inspection. For example, the highly deformed regions needed a higher number of points as compared to areas with low distortion.

Process Plan of Additive
Operations. AM process-planning steps as shown in Figure 6 can be interpreted as the layer-based manufacturing approach, which comprises of the resource requirements including time and travel distance. ese aspects comprise the number of layers, shape and size, single or multiple contours in a slice, support material, functionality, accuracy, and surface characteristics [21]. AM process steps are evenly critical and possess a significant effect on the attributes of the produced part.

Process Plan of Subtractive
Operations. e subtractive process plan consists of the machining data of the designed part such as sequence of machining, type of operation, machine type, cutting tool, tool approach, and the volume of material removed for each extracted feature as shown in Table 4.

Process Plan of Inspection Operations.
e inspection planning can be summarized in Table 5. e different attributes of the process plan table can be described as follows: (1) Face identification (ID) number, it determines ID of the face in the feature extraction and recognition output.
(2) ID of the inspection operation, it depicts the kind of GD&T such as flatness, parallelism, and perpendicularity.  Figure 4: Automatic slicing of a part to a subpart [24].  Advances in Materials Science and Engineering after identifying its function and correlation to mating parts. (4) Tool employed, it identifies the tools (its type, geometry, etc.), such as contact systems, noncontact techniques, horizontal probe, vertical probe, and star probe, employed for inspection. e choice of the inspection sensor for data acquisition is critical for the entire hybrid process, both in terms of measurement accuracy and time. Certainly, the contact systems, such as the touch-trigger probe is needed when inspection accuracy is favored and time is not a constraint [28]. e scanning touch probe also constitutes a contact inspection system, but it is quite fast and comparatively less accurate than a touchtrigger probe. Similarly, the noncontact systems, namely, laser scanners are preferred when accuracy can be compromised for lesser measurement time.
erefore, this step selects the most appropriate tool to prevent any damage to the part or the probe as well as satisfying the inspection requirements. Moreover, this selection is based on the location, depth, dimensions, measurement cost, orientation, and accessibility of the features. (5) Datum (reference) faces, they represent the reference points, lines, planes, and axis. e coordinate system and the part origin is generated using these reference features. (6) Part orientation, it represents the appropriate orientation (which covers a maximum number of features) of the prismatic part, and the setup number is identified in the table. (7) Number of touch point, it identifies the number of points required to measure the given feature. In this work, stratified and adaptive sampling techniques have been utilized. e stratified sampling is a technique in which the complete set of points is split into subsets (also called strata) [29,30]. e adaptive sampling demonstrates that regions with higher deformations will receive more points and regions with lower deformation or distortion should receive fewer points [31]. From the FEA, it was found that there were more distortion in the regions near the edges, and they acquired more points than in the middle regions. (8) Touch point, it provides the coordinate of the probing point. Each boundary of the rectangular face was defined by its boundary corner and using coordinates (x, y, and z) in the extraction module. ese coordinates were utilized as input for the algorithm [22]. (9) Geometric inspection boundary-It shows the boundary of the testing face.

Optimization of CAPP
is step aimed to reduce the manufacturing time and hence the fabrication cost of the part produced using HM. To optimize the HM, the mathematical models were employed to obtain the most suitable part orientation as well as minimize the additive and subtractive times. e inspection time was optimized through the minimization of the probe measurement path using GA.

Part Orientation.
e optimal orientation can enhance part quality, minimize production time, and lessen support requirements for building the part. An appropriate part orientation for lesser support volume increases the building height and accordingly decreases the fabrication time. It suggests part orientation has to be optimized to minimize support volume as well as manufacturing time. erefore, the optimal part setup is very critical to an efficient and effective CAPP for HM. ere are several parameters such as machine parameters, part geometry, part height, layer thickness, and support volume, which control the part orientation. e primary operations to achieve the optimal orientation are described as follows: Operation 1: obtain the geometry and topology items for the designed object model from STEP file format and extract topology entities in each basic face and determine its type.
Advances in Materials Science and Engineering Operation 2: calculate the GD&T (the first objective value) using the following model: where A j represents the total face area for different faces in part orientation i, N j represents the relative number, which can be calculated by dividing the area of the type (j) divided by the summation of all types, and W j represents the weight assigned to each type depending on its angle. e goal of this part orientation model was the maximization of horizontal and perpendicular faces in the z-axis (build direction), maximization of base surface area as well as minimization of angular/inclined surfaces, overhanging area, and trapped volume. ere can also be parts, where the same value of max Q could be obtained for more than one orientation. erefore, to select the best orientation, additive time was also be computed for these orientations as shown in Section 4.1.1.

Additive Time.
e time of AM is an important factor, especially when different part orientations are available. e build time was calculated for different orientations to select the optimal one. e minimum build time indicates a minimum number of slices and a minimum volumetric error. e volumetric error is the volumetric difference between the CAD model and the AM part. Magic 18 software was used to generate the support structure of the part, and that was exported as an STL file [21]. Subsequently, the area and volume were computed. e build time depends on machine parameters, part geometry, part height, layer thickness, and the amount of support volume needed for building the part. erefore, the build time was opted as an output variable in each orientation of the part. e total build time was calculated by taking the summation of the time needed to cover the part geometry (T geometry ), the time needed to build support volume (T support ), and the machine time (T m/c ): Total building time T building � T geometry + T support + T m/c .

(7)
T geometry was calculated by dividing the part volume with machine build rate and was expressed as follows: T support was calculated by dividing the amount of support volume (which was provided by the Magic 18 software as shown in Figure 7) with the build rate of the machine: T support � Support volume Building rate of machine .
T m/c was computed by measuring the machine setup time and postprocessing time.

Inspection Time.
e reduction of inspection time can be achieved by minimizing the cycle time which primarily depends on the inspection probe path. A GA-based approach was developed to attain the best measurement path for the given part. e GA was employed because it has shown in the past its relevance and benefits in addressing path-planning problems.
ere are many reasons for its superior performance in comparison with other metaheuristics. e GA is swift, easy to execute, and cost-effective in terms of computational resources. It yields the most stable results and can be used to solve challenging problems in a limited timeframe. It is far better than any other method considering the size of the search area. GA generally performs well because of its parallel search features, where several solutions are merged dynamically until an effective solution is obtained. Since the GA deploys the randombased search algorithms to analyze most of the state space.
erefore, the quality of the acquired solution gets enhanced. Besides, GA's fewer parameter interactions with just three parameters (population size, crossover probability, and mutation probability) make it simpler, easier to implement, and avoid numerous local optimal solutions in the parameter domain to provide quality solutions. e subsequent section explains the implementation of the GA in this work. e touch points (or measurement points) were specified based on the objective function to ensure the shortest path between two measuring features, as shown in Figure 8.

Advances in Materials Science and Engineering
Step 1: random solutions (chromosomes) Initially, the measuring features were grouped based on a generated random solution (chromosome). Subsequently, the touch-point coordinates (input) of the sequenced features were rearranged according to the objective function for obtaining the shortest path between two sequenced features as shown in Figure 9.
Step 2: computation of the fitness function for each chromosome e fitness function can be defined as the total shortest path between two sequenced features. e objective function can be described as where i is the first touch point of the first sequenced feature, j is the first touch point of the next sequenced feature, n is the number of touch point coordinates of the last sequenced feature, m is the number of touch point coordinates of the next sequenced feature, and P is the number of sequenced features.
Step 3: crossover and mutation Single-point and two-point crossover operators as shown in Figure 10 were used. For the mutation operator, the random swap mutation operator was utilized.
Step 4: stopping criterion e stopping criterion employed in this study was the maximum number of iterations. is stopping criterion was adopted because it helped to control the processing time as well as eliminate any bias.

Case Study
e proposed method can successfully be applied to any prismatic part. e established approach had in fact been implemented for many parts with prismatic features to validate its performance. However, to limit the length of the manuscript, the paper contains only one case study as shown in Figure 11 to depict the working and the findings of the proposed method. e 3D solid model was designed in CATIA V5, and the GD&T data were obtained from the STEP AP 203 file utilizing an object-oriented technique. Seventy-two faces were obtained from the geometric information file, including their loops, edges, vertices, face direction, face type, and face area. Twelve manufacturing features were obtained and recognized, inclusive of their dimensions. e feature ID, feature name, feature face IDs, and feature dimensions are indexed in the output extraction table (Table 6). Table 7 represents the subtractive process plan obtained after feature extraction and recognition.

Part Orientation.
A comparison between the different orientations was examined depending on the GD&T and building time needed for the entire part [24]. Figure 12 represents the hybrid setup consisting of additive, subtractive, and inspection centers.  [24]. ere were four possible orientations of the part. ese were (+x, −x) orientations and (+y, −y) orientations as shown in Figure 13.
An overhanging surface is a type of prismatic geometric feature that warps easily if the inclination angle is smaller. It results in a staircase volume, which causes a dimensional error and poor surface roughness.
e resulting data as shown in Table 8 represent the total face area (A j ) for different faces in part orientation (i). To determine the best orientation, the relative number (N j ), which is the area of type (j) divided by the summation of all types, was calculated. Next, the weight (W j ) was assigned to each type depending on its angle. Next, Q i was calculated for each type by multiplying the relative number (N j ) of the face (j) with its weight. Finally, the Q i for each type was added up to get the final rating for the given orientation. is final rating for each orientation was then compared with the ratings obtained for other orientation to select the best orientation of the part.
It is obvious from the above table that orientation 2 had the maximum Q i value, based on the output of the GD&T objective function.

Additive Time.
e constant factors used in the model are shown in Table 9. e additive time for different orientation was also computed to further examine the best orientation. After computing the additive time, orientation 2 was found to have the least building time as shown in Table 10.

Requirements of Process Planning.
e mandatory requirements of the process planning were obtained through FEA discussed in Section 3.5. e FEA was performed using the commercial software ABAQUS (Abaqus v 6.14, Dassault Systems). e Visual Studio (v 2012) and compiler (Intel Parallel Studio XE 2013) were employed to connect the subroutine with the Abaqus. e material properties were adapted to conform to a commercial acrylonitrile butadiene styrene (ABS) filament as shown in Table 11. e simulation was performed for five layers due to limited computational resources. e simulation was performed in several conditions, involving different part orientations as well as temperatures. e lowest von Mises stress and deformation as shown in Figures 15(a) and 15(b), respectively, were obtained under following conditions: part setup, orientation 2; layer thickness, 0.2 mm; extruder temperature, 240°C; bed temperature, 80°C; ambient temperature, 25°C; extruder velocity, 20 mm/s; and nozzle diameter, 0.2 mm. e maximum value of von Mises stress was 0.02875 MPa, and maximum deformation was 1.6 × 10 −5 mm. ese conditions also defined the constraints for the additive process. e additive process had to be executed in these conditions to get the best results and minimize the usage of subtractive machining. It was also found that the deformation was maximum at the edges; that is, it increased from the center of the part to its boundary. As a consequence, the sample size was optimized, where more points were assigned in regions near the edges.

Inspection Time.
For the present case study, the maximum number of iterations of 2000 yielded the best result. With this maximum number of iterations, the length of the obtained probe path was 617.23 mm. As shown in Table 12, the probe's travel distance between two features decreased with an increasing number of iterations. However, it stabilized after 2000 generations, and no additional       e best sequence obtained from the GA was 5-6-3-7-10-1-9-8-2-4, which corresponded to the minimum probe travel distance of 617.23 mm among all features. Initially, when the measurement path was selected randomly, the traveling distance Although the CPU time also increased with an increasing number of iterations, this increase was negligible as compared with the reduction in the CMM operation time.
From the previous data, the best setup was the orientation no. 2, and depending on the peaks of all features, the whole part was divided to seven subparts within values as shown in Table 13.  Figure 16: Steps of manufacturing part. e dynamic process plan sequence acquired for the test part can be seen in Figure 16. As depicted in Figure 16, the entire part was first divided into subparts based on different peaks. Each subpart was fabricated in an additive fashion. en, the subtractive operation was employed to obtain accurate features depending on the quality requirement. e inspection was also carried out simultaneously to decide if the subpart needed a subtractive operation or not.

Conclusion
An efficacious hybridization of additive, subtractive, and inspection processes can be accomplished through a vital link known as CAPP. Indeed, the most relevant and invaluable CAPP can be achieved through the optimization of its various components. Henceforth, in this work, different approaches were employed to obtain the most appropriate CAPP for the hybrid process, which could manufacture parts efficiently and effectively. Consequently, mathematical models were utilized to optimize part orientation and minimize additive and subtractive times. e GA was also used to achieve the shortest measurement time. An implementation of the introduced methodology has also been presented by using a test part case study for demonstrating its performance. Certainly, the optimized CAPP resulted in an adequate and the most competent hybrid process.
is paper has indeed developed a significant understanding and knowledge regarding the CAPP of the hybrid process. It would facilitate the users to acquire a most convenient strategy, to enable accurate and efficient hybrid fabrication of a given component. e primary contribution of this work pertains to the development of an optimized CAPP for a combined additive, subtractive, and inspection processes, using mathematical models, rules, and metaheuristics. e generation of CAPP was initiated depending on the information of additive and subtractive processes, available resources, technological constraints, etc. e presented approach exhibited several benefits, including reduced fabrication time, minimal resource utilization, and lesser human interference.
is approach also had a downside in addition to several benefits that will be explored in future research.
is limitation was mainly correlated with the effective specification of the dimensional tolerances.
is could be because the STEP file used to extract and recognize features did not provide adequate information about the number of points, their distribution, the evaluation algorithm, etc. Certainly, this problem becomes more complex with the presence of complicated features, such as cylinders and curved surfaces. e specification of dimensional tolerances is indeed a key obstacle in the development of an inspection process plan as part of the hybrid process. Furthermore, as this approach can only be used for prismatic parts, therefore the future work also aims to upgrade its application for cylindrical, round, and free-form components. A comprehensive FEA scheme involving both additive as well as subtractive manufacturing processes will also be established to further enhance the quality of process planning.

Data Availability
e data used to support the findings of this study are included within the article.

Conflicts of Interest
e authors declare that there are no conflicts of interest regarding the publication of this paper.