You are currently viewing a new version of our website. To view the old version click .
Applied Sciences
  • Article
  • Open Access

26 May 2025

Intelligent Dimension Annotation in Engineering Drawings: A Case-Based Reasoning and MKD-ICP Algorithm Approach

,
,
and
School of Mechanical Engineering, Jiangsu University of Science and Technology, Zhenjiang 212100, China
*
Author to whom correspondence should be addressed.

Abstract

To address the demands for accuracy and completeness in engineering drawing dimension annotation, this paper presents an intelligent dimensioning method that integrates Case-Based Reasoning (CBR), K-Dimensional Tree (KD-Tree), and an enhanced Iterative Closest Point (ICP) algorithm. The proposed approach leverages a historical case database to extract key features from similar cases, providing high-quality initial references for the ICP algorithm. By combining KD-Tree’s efficient spatial search capabilities with ICP’s precise point cloud alignment, the method achieves both efficient mapping and accurate alignment of dimension information. Applied to creating engineering drawings of refrigerated van design as a case study, the results demonstrate that this method significantly enhances the efficiency and precision of dimension annotation, minimizes manual intervention and error rates, and showcases broad application potential in complex engineering design scenarios. The contributions include an innovative intelligent dimensioning method, the MKD-ICP algorithm for dimension mapping and alignment, and empirical validation of the approach’s effectiveness.

1. Introduction

Engineering drawings are essential technical documents in the design and manufacturing processes of mechanical products. Dimensions and technical requirements play a vital role in standardizing manufacturing operations and ensuring consistent product quality. Although modern 3D CAD software (SolidWorks2020) can automatically generate 2D projection views with dimensions after model creation, the accuracy of these dimensions is often insufficient []. As a result, designers must manually verify and adjust the dimensions to achieve completeness. Furthermore, for the same 3D model, different designers may adopt varying dimensioning approaches, leading to significant inconsistencies in the standardization and quality of engineering drawings, largely depending on their expertise and technical proficiency [].
Research on automatic dimensioning for engineering drawings not only supports intelligent design processes and improves design efficiency but also helps standardize dimensioning workflows, thereby enhancing the quality of finalized drawings. As a critical medium for conveying information, dimensions have long been a central focus and a major challenge in this field. To advance the automation and intelligence of dimensioning, researchers worldwide have conducted extensive studies, making notable progress in improving the efficiency and accuracy of dimension completeness verification [].
For instance, Liu Xiaojun and Bei Chaowang [,] provided a comprehensive overview of the current state of dimensioning research, emphasizing its significance in engineering applications. Liu Jinfeng et al. [] proposed a rapid dimensioning method for intelligent 3D process design based on a “feature-dimension-removal body” constraint mechanism. In the area of feature modeling, Li Yan et al. [] developed an automated technology for efficient and standardized dimension annotation generation based on predefined rules. By organizing installation dimension annotation rules for various iron fittings, they designed a solution capable of automatically recognizing annotation objects and generating dimension annotations using a backend configuration table. Xu Jinglin et al. [], adhering to the GB/T 24734.1~11-2009 standards (GB/T 24734; General Rules for Defining Data of Digital Products. Publisher: Beijing, China, 2009) explored rapid dimensioning techniques for 3D designs. Wang Bo et al. [] proposed an automatic dimensioning algorithm for shaft components based on functional characteristics, employing graph theory to eliminate redundant dimensions. In the field of 2D dimensioning, Sun Xiaofei et al. [] leveraged the SolidWorks API (SolidWorks2020) to investigate batch generation and automatic dimensioning of engineering drawings. Sun et al. [] further redefined graphic output primitive features, built a case library, and studied automatic dimensioning techniques for 2D designs. Similarly, Li et al. [] proposed a line-chain feature-based automatic dimensioning algorithm for 2D engineering drawings, further exploring the relationship between 3D model features and 2D drawing elements.
In recent years, state-of-the-art dimensioning techniques have increasingly leveraged artificial intelligence approaches such as deep learning and support vector machines (SVMs). For instance, CNN-based models have demonstrated promising results in interpreting complex geometric features and automatically generating annotations. SVMs and other classical machine learning techniques have also been applied to identify relevant dimensions based on training data. Additionally, rule-based heuristics remain widely used in industry due to their interpretability and reliance on domain knowledge. However, these methods often face challenges related to generalizability, data dependency, or rule maintenance. In contrast, the proposed MKD-ICP algorithm integrates geometric matching and case-based reasoning, requiring minimal training data while maintaining adaptability to varying model types and annotation requirements. This makes it a more practical and scalable solution in engineering scenarios where annotated datasets may be scarce or where domain knowledge is difficult to formalize into strict rules.
In summary, despite the extensive research conducted by numerous scholars on dimensioning, significant limitations still exist. Current dimensioning methods often lack adaptability when applied to engineering drawings of varying sizes and resolutions, leading to reduced accuracy. This issue becomes particularly pronounced when dealing with complex engineering drawings or freeform surfaces, where traditional dimensioning techniques may fall short of meeting high-precision requirements, resulting in errors or omissions in the annotations.
The specific research problem addressed in this work is how to effectively match and assign dimensions across multi-scale engineering drawings to achieve high precision and standardization in automatic dimensioning processes.
Based on the existing challenges in automatic dimensioning, this study proposes the following research hypothesis: by integrating case-based reasoning (CBR) with the MKD-ICP algorithm, the accuracy and adaptability of dimensioning for engineering drawings of various scales and resolutions can be significantly improved. This hypothesis guides the development of the proposed method and the subsequent validation experiments conducted in this study.
The contributions of this study are as follows:
  • We propose an innovative intelligent method for engineering drawing dimensioning, based on Case-Based Reasoning (CBR), K-Dimensional Tree (KD-Tree), and the improved Iterative Closest Point (ICP) algorithm.
  • We propose a new method, the MKD-ICP algorithm, by combining the spatial search capability of KD-Tree with the point cloud matching technology of ICP, enabling the mapping and alignment of dimension information.
  • We conducted an empirical study using a refrigerated van as a case, and the experimental results show that the proposed method significantly reduces human intervention and errors, accurately achieving automatic dimensioning of engineering drawings.
The structure of this paper is arranged as follows: Section 2 introduces research related to the automatic generation of dimensions in engineering drawings and the application of the ICP algorithm in engineering; Section 3 provides a detailed explanation of the dimension semantic analysis of engineering drawings and the use of Case-Based Reasoning (CBR) and the MKD-ICP algorithm for dimension information acquisition and mapping; Section 4 discusses the automatic dimensioning efficiency, accuracy, and results of the method; finally, Section 5 concludes this study and outlines plans for future research.

3. Methods

3.1. The Proposed Method

Compared to traditional ICP algorithms and existing hybrid methods, the proposed MKD-ICP algorithm introduces several key innovations. First, by incorporating a multi-level KD-Tree structure, it enhances the efficiency and accuracy of matching complex product models, particularly when dealing with large-scale and high-dimensional datasets. Second, the MKD-ICP algorithm integrates case-based reasoning (CBR) principles to intelligently guide the initial alignment process, thereby improving convergence speed and reducing the risk of falling into local optima. Unlike previous approaches that treat model matching and dimension extraction as independent processes, the MKD-ICP method tightly couples them into a unified workflow, which significantly improves the adaptability to models with varying complexity and dimensional requirements. These innovations collectively advance the automation and precision of engineering drawing generation, addressing the key limitations of traditional ICP-based methods.
To ensure the accuracy of dimensioning and the standardization of completeness checks in engineering drawings, this paper proposes an intelligent dimensioning method based on Case-Based Reasoning (CBR) and the MKD-ICP algorithm. The overall framework of the proposed method is illustrated in Figure 1. By leveraging CBR technology as the core and integrating the MKD-ICP algorithm, the method achieves a precise and efficient dimensioning process.
Figure 1. The overall framework for automatic dimensioning in engineering drawings.
First, the CBR technology is utilized to construct a case library containing historical drawings, documenting geometric features and dimensioning information across various engineering drawings. When a new drawing requires dimensioning, the CBR system retrieves similar cases from the library by calculating similarities between drawings based on Euclidean distance and angular similarity. The most similar historical cases are selected, providing not only rich dimensioning references but also initial annotation positions and key feature information for the subsequent MKD-ICP algorithm, significantly improving dimensioning accuracy and efficiency.
After the CBR system recommends similar cases, the MKD-ICP algorithm leverages this reference information to perform precise dimension mapping and alignment. By using KD-Tree for efficient spatial data queries and integrating the ICP algorithm to extract key component dimensions, the algorithm completes the dimension mapping and alignment process [,]. During this process, the algorithm accurately identifies critical mating dimensions and overall model dimensions, efficiently annotating them in the engineering drawing. Benefiting from the high-quality initial references provided by the CBR system, the MKD-ICP algorithm enables a more efficient and intelligent dimensioning workflow.
In summary, the proposed method combines CBR and MKD-ICP technologies in a seamless manner, ensuring both efficiency and precision in dimensioning engineering drawings while laying a solid foundation for intelligent dimensioning automation.

3.2. Dimensional Functional Semantic Analysis

In engineering drawings, dimensional information is used to describe the size, shape, and relative position of objects, serving as the foundational reference for product design and manufacturing processes [,,,]. According to functional semantics, dimensions in engineering drawings can be categorized into three types: defining dimensions, locating dimensions, and overall dimensions, as shown in Table 1:
Table 1. The functional semantics of dimensions in engineering drawings.
(1)
Forming Dimensions: These describe the geometric features of an object, determining its fundamental shape and ensuring that the overall appearance of the product meets design requirements.
(2)
Locating Dimensions: These specify the relative positional features of an object, typically in reference to other features or reference points. They determine the relative positions of basic entities, ensuring the precision of component assembly.
(3)
Overall Dimensions: These describe the overall shape and size of the object, representing the total dimensions of all parts combined. They define the external size boundaries of the object, ensuring that the part fits the spatial requirements of the design environment.
Dimensioning Sequence: Typically, the defining dimensions of the basic entities are annotated first, followed by the locating dimensions between entities, and finally the overall dimensions of the composite entity. Defining dimensions are derived through geometric feature analysis, locating dimensions are determined by mating relationships, and overall dimensions are obtained through the maximum bounding box of the external shape.

3.3. Case-Based Reasoning Technology

Case-Based Reasoning (CBR) [,] is an intelligent design method that retrieves the most optimal historical case by calculating the similarity between the target case and historical cases, and then modifies and reuses the retrieved case. The core principle is to calculate the similarity between the target case and historical case resources [,,], retrieve the best historical case with the highest similarity, and make modifications based on the model of that case to achieve rapid product design. A complete CBR system consists of four cyclical processes: Retrieve, Reuse, Revise, and Retain, known as the “R4” cycle structure, as shown in Figure 2.
Figure 2. The diagram of the CBR cyclic structure.
In this study, Case-Based Reasoning (CBR) technology is used as a core tool for key dimensioning, enabling the selection of the most similar cases from a constructed historical case library for the target product. By extracting and analyzing the key features of historical cases, high-quality initial reference information is provided for subsequent dimension mapping.
First, a historical case library is built, containing a large number of engineering drawings and dimensioning information, and storing the dimensioning features of various typical products.
When dimensioning the target product, the retrieval module of CBR calculates the similarity between the target model’s geometric features and dimensioning requirements and selects the best matching case from the library. Then, the dimensioning information from the selected case is reused and adjusted to ensure it meets the specific needs of the target product. Additionally, the revision module of CBR further optimizes the dimensioning information, enhancing both the accuracy and completeness of the annotations. The final dimensioning results are then stored in the case library to support future designs.

3.4. The Proposed Algorithm

This subsection presents the core contribution of this manuscript, which is the integration of the Iterative Closest Point (ICP) algorithm with KD-Tree-based optimization for efficient and accurate case model matching. To improve clarity, we summarize the main steps of the proposed method as follows:
Step 1: Hierarchical model division based on structure and function.
Step 2: Construction of model parameter vector sets using geometric and physical attributes.
Step 3: ICP-based point cloud registration using KD-Tree to accelerate nearest neighbor search.
Step 4: Calculation of model similarity using a robust similarity function.
Step 5: Node weight assignment using Analytic Hierarchy Process (AHP).
Step 6: Retrieval and filtering of key components for dimensional reuse and annotation.
A visual representation of the above steps is provided in Figure 3 to enhance the understanding of the method’s flow and highlight the integration of various algorithms in each stage.
Figure 3. Workflow of the proposed method.
The Iterative Closest Point (ICP) algorithm is a classic point cloud registration method, widely used in computer vision and 3D geometric processing fields [,], particularly in applications such as object recognition, 3D reconstruction, and engineering drawing registration. The primary goal of ICP is to compute the optimal rigid transformation between two point clouds (source and target) through iterative optimization, minimizing the distance between them so that the source point cloud matches the target point cloud as closely as possible [,,]. To improve the performance of the ICP algorithm in large data scenarios, the KD-Tree technique [] is introduced to optimize the efficiency of nearest point search.
KD-Tree is a hierarchical binary tree data structure primarily used to store and quickly retrieve point sets in multi-dimensional space [,]. By partitioning and organizing spatial data, KD-Tree significantly accelerates nearest neighbor searches, particularly in high-dimensional and large-scale point cloud data, demonstrating excellent performance [,,]. In the ICP algorithm, the introduction of KD-Tree can drastically reduce the time complexity of nearest point searches during each iteration, thereby accelerating the overall registration process.
By using the KD-Tree algorithm to speed up nearest neighbor searches, combined with the ICP algorithm, the model’s node entities are randomly matched with the historical case nodes for computation, and different weights are assigned to obtain the final similar case result. The specific steps are as follows:
Step 1: Hierarchical Model Division
Based on the structure, functionality, and assembly levels of the refrigerated vehicle, the model is divided into five levels: Product Layer, Module Layer, First-level Configuration Layer, Second-level Configuration Layer, and Material Layer, as shown in Figure 4. The Product Layer is used to differentiate between different case models; the Module Layer builds the overall structure; the Configuration Layers are selected based on customer customization requirements; and the Material Layer provides the raw materials required for product manufacturing. Each level is treated as a node entity to improve retrieval efficiency and accuracy.
Figure 4. Van-type refrigerated truck model hierarchy division.
Step 2: Establishing the Model Parameter Vector Set
The model parameter vectors are constructed from geometric information and feature attribute parameters, which can represent the model’s characteristics. In this study, the vector set is built by extracting parameters corresponding to the child class layers from the shape parameters, volume, surface area, and moment of inertia data of the node models in each layer. This vector set is used to describe the features of the parent class layer.
First, the shape parameters Da, Db, and Dc (length, width, and height) of each node entity model in the x, y, and z directions are extracted and normalized.
S U M 1 = D a + D b + D c
A j = D i s u m 1 i = a , b , c , j = 1 , 2 , 3
The volume V, surface area S, and the parameters Dx, Dy, and Dz of the maximum bounding box in the x, y, and z directions are obtained and normalized, as shown in the following formulas.
S U M 2 = D x D y D z
A 4 = V s u m 2 A 5 = S s u m 2
The moments of inertia Jxx, Jyy, and Jzz along the x, y, and z axes are extracted, and these parameters are normalized, as shown in the following formulas.
S U M 3 = J x x + J y y + J z z
A 6 = J x x s u m 3 A 7 = J y y s u m 3 A 8 = J z z s u m 3
Finally, the processed sub-level node vector data are integrated into the model parameter vector set N, which serves as the descriptor for the parent-level model. The elements of the dataset N are determined by Formula (7):
N = A 1 , A 2 , A 3 , A 4 , A 5 , A 6 , A 7 , A 8  
Figure 5 shows the assembly model of a refrigerated van, which includes eight module sub-levels. Model parameter information is obtained through SolidWorks API functions, followed by normalization of the data to generate vectors and establish the vector set Nw to describe the body assembly model. To ensure the accuracy of similarity matching, the vector set parameters are uniformly retained up to three decimal places.
Figure 5. Parameter vector set for van-type refrigerated truck model.
Step 3: Calculation of Rotation Matrix and Translation Vector
First, K-D Tree is used to find the nearest neighbor q i of each point p i in the set N W within the set N p . By using K-D Tree, the nearest neighbor search is accelerated, reducing the time complexity of the search to O log n .
For the given two point sets N W and N p , the centroids are first calculated. Let N W = p 1 , p 2 , p m and N p = q 1 , q 2 , q m be two sets of points. The centroid calculation formula is as follows:
C W = 1 m i = 1 m p i , C p = 1 n j = 1 n q j
Then, each point is translated from the centroid so that the centroid is positioned at the origin (0,0,0):
P i = p i C W , q j = q j C p
Using the centralized point sets P i and q j , the covariance matrix is calculated as follows:
H = i = 1 m p i q i T
Next, perform Singular Value Decomposition (SVD) on the covariance matrix H:
H = U V T
Then, compute the rotation matrix and translation vector. The calculation formulas are as follows:
R = V U T
t = C p R · C W
The rotation matrix R minimizes the rotational misalignment between the point sets N W and N p . To ensure R is a valid rotation matrix, its determinant must be checked. If det(R) < 0, the last column of V is multiplied by −1 to guarantee the orthogonality of the rotation matrix. The translation vector t then translates the rotated point set N W to align with N p .
After each iteration, the point set N W is updated using the newly computed R and t. The update formula is as follows:
P i = R · P i + t
In the rotational alignment optimization, a normal vector consistency term is introduced to minimize the positional error between the two point sets ( N W and   N p ) after alignment using the rotation matrix and translation vector. The error formula is expressed as follows:
T S E = min R , t i = 1 m p i R q i + t 2 + α 1 n p i · R n p i 2
The updated point set will be used for the next iteration until convergence criteria are met.
Step 4: Model Similarity Calculation
The refrigerated van assembly model’s vector set (Nw) is compared with the historical case model’s vector set (Np) using the ICP algorithm to measure the distance between the sets. An improved ICP algorithm is employed, selecting the minimum distance as the similarity value (sim) between the two models. The rotation matrix and translation vector output from RANSAC are used as the initial values, and the Tukey kernel function is integrated to suppress outlier interference. The formula is as follows:
e i = p i R q i + t 2
ρ e i 2 = e i 2 2 e i 4 6 c 2 + e i 6 6 c 4 , i f e i 0.1 c 2 6 , i f e i > 0.1
Finally, the formula for the model similarity value is as follows:
s i m = min 1 m i = 1 m ρ p i R q i + t 2
Step 5: Model Node Weight Assignment
The Analytic Hierarchy Process (AHP) is used to assign weights to attributes at each hierarchical level. A judgment matrixA = (aij)n×n is constructed based on the hierarchical factors, and its characteristic equation AW = λmaxW is solved to obtain the maximum eigenvalue λmax and the corresponding eigenvector W. After normalizing W, the weight vector W = [w1, w2, …, wn]T is determined. Finally, the consistency ratio (CR) of A is tested using formula (19). If the consistency condition is not satisfied, A must be adjusted until a valid weight distribution scheme for the attributes at each level is obtained.
C R = λ m a x n R I n 1 < 0.1
Finally, the similarity evaluation of each node attribute in the case model is performed to determine the case solution with the highest similarity to the refrigerated van assembly model. The formula is as follows:
S = W k s i m k
where Wk is the weight corresponding to each node, and simk represents the similarity measure between any two nodes. The value of k is determined by the number of nodes at each level of the model.
Step 6: Screening of Key Components
Based on the similarity S between the historical case model and the refrigerated van assembly model, the case models are ranked. The historical case reference model with the highest similarity is selected. Using the GetSystemValue2 function, key dimensioning information related to the components of a similar reference model is identified. It is then determined whether these components are key parts of the target model, the “van body assembly”. This information is used as a basis for reference reuse and modification, ultimately identifying and filtering the key components of the refrigerated van assembly model.

3.5. Engineering Drawing Dimension Mapping

Dimension mapping in engineering drawings is an intelligent method that automatically projects dimensional information from a 3D model onto a 2D drawing. In Section 2.3, by combining the MKD-ICP algorithm, the most similar key component models were selected, and, using SolidWorks API functions, the filtered key dimensions were automatically annotated on the engineering drawing. This method effectively reduces the number of dimensions that need to be annotated in design software, significantly lowering the complexity of intelligent annotation, and provides an efficient and precise solution for engineering drawing generation. The dimension mapping algorithm is as follows:
Firstly, for shape and location dimensions, the SelectByID2 function is called to filter out redundant dimensions that do not significantly affect the part’s shape and features. These dimensions are then set with the property MarkedForDrawing = False to hide them from display in the current level. After this, the InsertModelAnnotations3 function is used to project the remaining key dimensions onto the engineering drawing, with internal parameter values set to FromEntireModel, indicating that the dimension information is referenced from the “entire model”.
Next, the overall dimensions are annotated. The CreateDefinition function is used to create a boundary box for the current part model, and the AddDimension function is applied to annotate the maximum outer boundary box dimensions in the engineering drawing, completing the overall dimension annotation. Additionally, for certain parts, when annotating shape dimensions in the sketch, the overall dimension annotation is also applied simultaneously.
This approach not only simplifies the dimensioning process but also ensures that critical dimensions are accurately and efficiently mapped onto the engineering drawing.

4. Results

As shown in Figure 6, the interface model to be filtered is a refrigerated van. Taking the “rear wall assembly” model as an example, the MKD-ICP algorithm is used to perform screening and analysis on the key component models of the refrigerated van.
Figure 6. A certain refrigerated van.
Based on the assembly structure tree of the “rear wall assembly” model, the hierarchy is divided, and model descriptors are established for each subcomponent of the assembly following Step 2 in Section 3.4, as shown in Table 2.
Table 2. Descriptors for key subcomponents of the “Rear Wall Assembly” model.
The similarity sim(Nw,Np)sim(N_w, N_p) between the model and the historical case model is calculated using Equation (18), where the AHP (Analytic Hierarchy Process) method is employed to assign weights to the attributes at each hierarchy level. The judgment matrix A is constructed based on the hierarchical structure factors.
A = 1 2 2 6 1 2 1 2 4 1 4 1 2 1 3 1 6 1 4 1 3 1
According to Step 4 in Section 3.4, the weights ω i for each sub-level attribute of the “Rear Wall Assembly” are calculated based on the judgment matrix A. The allocation results are shown in Table 3.
Table 3. Attribute weight allocation for each sub-level of the “Rear Wall Assembly”.
Taking the “Rear Wall Assembly” as the target model M T , the attribute similarity at the “Wall Assembly” level between the target model and historical case model M H is retrieved by combining the sub-level model descriptors and the sub-node attribute weight distribution values. The overall similarity S ( M T , M H ) is calculated and sorted to obtain the model with the most similar hierarchical structure and model features. The node attribute similarity calculation results are shown in Table 4.
Table 4. Node attribute similarity between MT and MH at the same level.
Based on the calculation results in Table 5, a reference model with a high similarity score of S ( M T , M H ) = 0.9186 is identified. The GetSystemValue2 function is used to extract key dimensional parameters from this reference model. These parameters represent essential measurement attributes of critical components in the assembly. Using these dimensional data, the key components for dimension annotation are determined.
Table 5. Extraction of key dimensional parameters from the reference model.
The extracted reference dimensions are then used as a basis to filter and identify the corresponding key components in the target model, the Rear Wall Assembly. The specific dimensional information retrieved from the reference model is summarized in Table 5.
Based on the dimension attribute information from the reference model, the key components for dimension annotation in the target model are identified. The names of the key components that require dimensioning for the “Rear Wall Assembly” model are shown in Table 6.
Table 6. Target model key component selection results.
In Section 3.5, SolidWorks API was utilized to perform dimension annotation on the engineering drawing views of the “Rear Wall Assembly”. According to the code in Table 2, the dimensions were mapped and annotated on the engineering drawing, with the annotation results shown in Figure 7. Figure 8 displays the overall dimension annotation results for the Rear Wall Assembly engineering drawing.
Figure 7. “Rear Wall Frame” engineering drawing dimensioning results.
Figure 8. “Rear Wall Assembly” engineering drawing dimensioning results.
Table 7 presents a time comparison between manual annotation and algorithm-based annotation on different components, as well as the efficiency improvement multiples. The results indicate a significant reduction in time when using the algorithm for dimensioning compared to manual annotation. Specifically, for simpler components like the left wall foam assembly, the efficiency improvement was as high as 7.6 times. For more complex components, such as the left wall assembly, although the algorithm also reduced annotation time, the efficiency improvement was slightly lower, around 6.7 times. These results demonstrate that automated dimensioning can significantly save time in the design and manufacturing process, particularly for tasks that involve repetitive annotations, thereby improving overall work efficiency.
Table 7. Comparison of manual annotation and algorithmic annotation in terms of time and efficiency improvement.
Figure 9 presents a comparative evaluation of the proposed MKD-ICP algorithm against traditional rule-based methods and SVM-based methods. Across all complexity levels, the MKD-ICP method consistently achieves the lowest dimensioning error compared to rule-based and SVM-based methods. Especially in complex geometries, MKD-ICP maintains an error rate below 5%, while rule-based methods exceed 10%, and SVM-based methods approach 8%. This demonstrates the superior precision of MKD-ICP in handling intricate geometrical features. As the geometric complexity increases, the error rates of rule-based and SVM-based methods rise sharply. In contrast, MKD-ICP exhibits much slower error growth, indicating better robustness and scalability to complex structures. When additional simulated noise is introduced (e.g., random distortions in model features), MKD-ICP shows minimal sensitivity to noise, with only a slight increase in error. Conversely, the performance of rule-based and SVM-based methods degrades more significantly under noisy conditions.
Figure 9. Comparative error analysis under different conditions.
To enhance the rigor of performance evaluation, we compared the proposed MKD-ICP method with deep learning-based methods, SVMs, rule-based heuristics, random forests, and KNN. Dimensioning accuracy (%) and execution time (s) were averaged over multiple runs, and standard deviations are shown as error bars in Figure 10.
Figure 10. Performance comparison with error bars.
As seen in Figure 10, MKD-ICP achieved the highest accuracy (~92%) with low variability, outperforming other methods. While deep learning achieved similar accuracy, it showed higher variance. SVM and random forest offered faster execution but lower accuracy, while rule-based and KNN methods performed the worst. MKD-ICP demonstrated a strong balance between accuracy and efficiency across different conditions.

5. Conclusions and Future Work

This paper addressed the need for standardized accuracy and completeness checks in engineering drawing dimensioning and proposed an intelligent dimensioning method based on Case-Based Reasoning (CBR), KD-Tree, and an improved Iterative Closest Point (ICP) algorithm. Experimental results demonstrated that the proposed MKD-ICP method achieved a dimensioning accuracy of approximately 92%, outperforming traditional machine learning and rule-based methods while maintaining superior computational efficiency. Specifically, CBR effectively extracted key geometric features and matched historical cases to provide reliable initial annotations, while KD-Tree accelerated high-dimensional neighbor searches, and the improved ICP ensured precise alignment through joint optimization of distance and normal vector similarity.
The case study on a refrigerated van model confirmed that the proposed method significantly improved annotation completeness and reduced manual intervention by approximately 40% compared to conventional techniques. These outcomes directly fulfill the research objective of enhancing dimensioning accuracy, standardization, and automation in engineering drawings.
In future work, we plan to incorporate deep learning and image processing techniques to further enhance feature extraction and annotation efficiency, thereby advancing the intelligence and robustness of automated dimensioning systems.

Author Contributions

Conceptualization, X.F. and Z.B.; methodology, Z.B.; software, Z.B. and B.F.; validation, Z.B., B.F. and Q.L.; formal analysis, Z.B.; investigation, Z.B. and Q.L.; resources, X.F.; data curation, B.F.; writing—original draft preparation, Z.B.; writing—review and editing, X.F.; visualization, B.F.; supervision, X.F.; project administration, X.F.; funding acquisition, X.F. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China (Grant No. 52305060), and the Jiangsu Province Education Science “14th Five-Year Plan” Project (Grant No. D/2021/01/102).

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author. The data are not publicly available due to confidentiality restrictions.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Wang, Y.; Zhang, C.; Li, K.; Zhang, S. Research on Dimension Redundancy Checking Technology of Engineering Drawings Based on SolidWorks Secondary Development. Manuf. Technol. Mach. Tool 2023, 04, 72–77. [Google Scholar]
  2. Wu, S.; Yang, K. Research on Secondary Development of Parametric Assembly Design Based on Solid Edge. Boil. Technol. 2023, 54, 32–38. [Google Scholar]
  3. Ding, L.; Li, G.; Yang, P.; Peng, H. Geometric Modeling and Dimensional Annotation of Fully Parameterized Features for Shaft Parts. J. Mach. Des. 2022, 39, 15–21. [Google Scholar]
  4. Bei, C.; Yang, Z.; Wang, L.; Chen, H. Overview and Prospect of Dimensional Engineering Technology. Comput. Integr. Manuf. Syst. 2014, 20, 464–470. [Google Scholar]
  5. Liu, X.; Cheng, Y.; Xing, J.; Ni, Z. Development Overview of 3D Dimensional Annotation and Completeness Checking Technology. Mach. Manuf. Autom. 2017, 46, 1–5+20. [Google Scholar]
  6. Liu, J.; Sheng, S.; Dong, L.; Zhou, H.; Liu, X. A Rapid Dimension Annotation Method for Intelligent Design of 3D Part Processes. China Mech. Eng. 2022, 33, 707–717. [Google Scholar]
  7. Li, Y.; Zhou, M.; Lei, H.; Yang, Q. 3D Dimensioning Automatic Generation Technology and Application for Ship Iron Fittings Installation. Ship Ocean. Eng. 2024, 53, 1–4. [Google Scholar]
  8. Xu, J.; Wang, B. Rapid 3D Dimensional Annotation Technology Based on GB/T24734. J. Graph. 2013, 34, 138–142. [Google Scholar]
  9. Wang, B.; Zeng, G.; Duan, L. Automatic 3D Dimensional Annotation Algorithm for Shaft Parts. J. Beijing Univ. Aeronaut. Astronaut. 2013, 39, 829–834. [Google Scholar]
  10. Sun, X.; Zhong, L. Research on Batch Adjustment of Engineering Drawing Positions Based on Secondary Development. Agric. Equip. Veh. Eng. 2020, 58, 133–135. [Google Scholar]
  11. Sun, D.; Hu, Y. Research on Automatic Dimensioning of the Engineering Drawing Based on CBR. IOP Conf. Ser. Earth Environ. Sci. 2019, 252, 052118. [Google Scholar] [CrossRef]
  12. Li, G. Automated Dimensioning Method of Engineering Drawings for Mechanical Products Based on Curve Chain. Comput. Mater. Contin. 2020, 65, 847–863. [Google Scholar] [CrossRef]
  13. Dori, D.; Pnueli, A. The grammar of dimensions in machine drawings. Comput. Vis. Graph. Image Process. 1988, 42, 1–18. [Google Scholar] [CrossRef]
  14. Yuen, M.F.; Tan, S.T.; Yu, K.M. Scheme for automatic dimensioning of CSG defined parts. Comput.-Aided Design 1988, 20, 151–159. [Google Scholar] [CrossRef]
  15. Suzuki, H.; Ando, H.; Kimura, F. Geometric constraints and reasoning for geometrical CAD system. Coputer Graph. 1990, 14, 56–61. [Google Scholar] [CrossRef]
  16. Bond, A.H.; Ahmed, S.Z. Knowledge-based automatic dimensioning. Artif. Intell. Eng. 1989, 4, 32–40. [Google Scholar] [CrossRef]
  17. Chen, K.Z.; Feng, X.A.; Lu, Q.S. Intelligent dimensioning for mechanical parts based on feature extraction. Comput.-Aided Des. 2001, 33, 949–965. [Google Scholar] [CrossRef]
  18. Chen, K.Z.; Feng, X.A.; Lu, Q.S. Intelligent location-dimensioning of cylindrical surfaces in mechanical parts. Comput.-Aided Des. 2002, 34, 185–194. [Google Scholar] [CrossRef]
  19. Cheng, Y.; Ni, Z.; Liu, T.; Liu, X. An intelligent approach for dimensioning completeness inspection in 3D based on transient geometric elements. Comput.-Aided Des. 2014, 53, 14–27. [Google Scholar] [CrossRef]
  20. Li, C.L.; Lee, Y.H.; Yu, K.M. Automatic datum dimensioning for plastic injection mould design and manufacturing. Int. J. Adv. Manuf. Technol. 2006, 28, 370–378. [Google Scholar] [CrossRef]
  21. An, H.; Yan, G.; Lei, Y. 3D Automatic Dimensioning Based on GB/T 24734. J. Beihang Univ. 2012, 38, 416–421. [Google Scholar]
  22. Hou, B.; Guo, J. 3D Automatic Dimensioning for Simple Parts. Mech. Des. Manuf. Eng. 2014, 43, 72–75. [Google Scholar]
  23. Liu, J.; Wang, J.; Ma, X.; Lian, W.; Ye, J. 3D Part Drawing Automatic Dimensioning. J. Xi’an Technol. Univ. 2008, 28, 526–530. [Google Scholar]
  24. Wang, B.; Zheng, G.; Duan, L. Automatic Dimensioning Algorithm for Shaft Parts. J. Beihang Univ. 2013, 39, 829–834. [Google Scholar]
  25. Guo, J.; Wan, J.; Qu, L.; Li, L.; Zhang, J. Automatic Dimensioning Method for Array Features Aimed at Digital Inspection. Manuf. Autom. 2018, 40, 89–91. [Google Scholar]
  26. Liu, M. Algorithm for Checking Dimension Closure in Engineering Drawings. J. Eng. Graph. 2005, 150, 31–35. [Google Scholar]
  27. Yuan, B.; Huang, G.; Sun, J. An Automatic Layout Algorithm for Dimensions. J. Tsinghua Univ. 2000, 40, 61–64. [Google Scholar]
  28. Huang, X.; Chen, G.; Chen, L.; Wang, Q. Grid-Based Method for Automatic Layout of Annotations. J. Comput.-Aided Des. Graph. 2008, 20, 1070–1077. [Google Scholar]
  29. Tian, J.; Liu, X.; Tang, W.; Liu, S. Automatic Annotation Algorithm for Node Diagrams in Steel Structures. J. Comput.-Aided Des. Graph. 1999, 11, 210–213. [Google Scholar]
  30. Wang, T.; Mo, R.; Wan, N. Automatic Layout Algorithm and Implementation of Dimension Annotations in Engineering Drawings. Aviat. Comput. Technol. 2010, 40, 73–76. [Google Scholar] [CrossRef]
  31. Ping, X. Research on Adaptive Methods for Dimension Annotations in Engineering Drawings. J. East China Jiaotong Univ. 1999, 1999, 61–65. [Google Scholar]
  32. Zhang, S.; Ji, Y.; Tan, J.; Peng, Q. Adaptive Processing of Interference for Non-Associative Dimension Annotations. J. Zhejiang Univ. 2001, 35, 676–680. [Google Scholar]
  33. Lu, Y.; Yang, J.; Wen, G.; Zhou, B.; Zhong, Z. Anti-Interference Method for Coordinate Dimensions in Engineering Drawings Based on Layout Optimization. J. Cent. South Univ. 2010, 41, 546–552. [Google Scholar]
  34. Chen, L.; Chen, L.; Lang, P.; Ding, W. Automatic Adjustment Technology for Parametric Dimension Annotations in Engineering Drawings. Mech. Des. Res. 2016, 2016, 73–76. [Google Scholar]
  35. Ouyang, S.; Niu, Q.; Liu, W.; Zhou, X. Automatic Annotation and Layout of Dimensions in Engineering Drawings Based on 3D Parametric Models. Mould Ind. 2014, 40, 17–22. [Google Scholar]
  36. Li, X.; Hou, B.; Liu, F. Research on Automatic Adjustment Methods for 3D Dimension Annotation Positions Based on Variant Design. Mod. Manuf. Eng. 2018, 2018, 11–17. [Google Scholar]
  37. Liu, F.; Geng, L.; Jiang, Y.; Wu, Q. A Method for Adaptive Adjustment of Dimension Annotations in Engineering Drawings. Mech. Des. Manuf. Eng. 2022, 458, 186–190. [Google Scholar]
  38. He, J.; Xu, Y.; Zhang, Z. A New Method for Automatic Detection of Dimension Closure Loops. Mech. Electron. 1997, 74, 5–6. [Google Scholar]
  39. Liu, C.; Wang, S. A New Algorithm for Dimension Closure Check. J. Comput.-Aided Des. Graph. 1997, 9, 84–89. [Google Scholar]
  40. Shang, W.; Sui, T.; Hua, L.; Zhou, C. Intelligent Path Search Algorithm for Dimension Closure Check. J. Shenyang Univ. Technol. 2003, 22, 80–83. [Google Scholar]
  41. Tan, Z.; Sui, T.; Wang, L.; Gu, X.; Ren, Z. A method for completeness testing of dimensioning in 2D drawing. Mech. Mater. 2013, 319, 351–355. [Google Scholar]
  42. Yan, Z.; Dong, Y.; He, J.; Gui, X.; Tao, G. Algorithm for Completeness Check of Dimension Annotations in 3D Models. China Mech. Eng. 2023, 34, 1967–1974. [Google Scholar]
  43. Zhang, S.; You, Y.; Li, B.; Cheng, D. Research on 3D MBD Model Dimension Completeness Check and Analysis Technology in Digital Design and Manufacturing. J. Graph. Sci. 2020, 42, 599–605. [Google Scholar]
  44. Luo, L.; Liu, Y.; Zheng, G. Algorithm for Checking Engineering Dimension Completeness in 3D Part Models. J. Comput.-Aided Des. Graph. 2018, 30, 1748–1754. [Google Scholar] [CrossRef]
  45. Fu, C.; Chen, Z.; Peng, Y.; Yang, W. A Method for Reviewing 3D Geometric Tolerance Annotation Information. J. Comb. Mach. Tools Autom. Process. Technol. 2020, 06, 142–146. [Google Scholar]
  46. Kang, J.; Yang, C. Fast Annotation Based on Freeman Chain Code Model Features. J. Comb. Mach. Tools Autom. Process. Technol. 2022, 06, 67–71. [Google Scholar]
  47. Stefenon, S.F.; Cristoforetti, M.; Cimatti, A. Automatic digitalization of railway interlocking systems engineering drawings based on hybrid machine learning methods. Expert Syst. Appl. 2025, 213, 127532. [Google Scholar] [CrossRef]
  48. Ou, E.; Kim, M.; Loh, P.-L.; Allen, T.; Agasie, R.; Liu, K. Automatic recognition system for document digitization in nuclear power plants. Nucl. Eng. Des. 2022, 398, 111975. [Google Scholar] [CrossRef]
  49. Wu, Q.; Liu, Y.; Chang, Y. Comprehensive Dimension Synthesis Method for Disc Cam Mechanisms with Flat-Faced Followers. J. Eng. Des. 2016, 23, 116–123. [Google Scholar]
  50. Bai, W.; Li, Q.; Chen, W.; Liu, S. Topology Optimization Maximum Dimension Control Method Based on Mapping. Eng. Mech. 2017, 34, 18–26. [Google Scholar]
  51. Chen, X.; Zheng, C.; Chang, B. Multi-Objective Word Joint Framework Semantic Analysis Model Integrating Knowledge. J. Chin. Inf. Process. 2024, 38, 25–33. [Google Scholar]
  52. Gao, C.; Tang, H.; Shi, Z.; Zhang, R.; Yang, B. Semantic Element Method for Constructing Evolution Routes. J. Chin. Eng. Mach. 2024, 22, 421–426. [Google Scholar]
  53. Wei, W.; Ding, X.; Guo, M.; Yang, Z.; Liu, H. Overview of Text Similarity Calculation Methods. Comput. Eng. 2024, 50, 18–32. [Google Scholar]
  54. Yang, L.; Xiang, Z.; Zhao, C.; Xu, J.; Gao, P. Study on Air-Rail Appearance Design Integrating Feature Semantics and Fuzzy Hierarchical Analysis. Packag. Eng. 2024, 45, 150–157+167. [Google Scholar]
  55. Meister, F.; Khanal, P.; Daub, R. Digital-Supported Problem Solving for Shopfloor Steering Using Case-Based Reasoning and Bayesian Networks. Procedia CIRP 2023, 119, 140–145. [Google Scholar] [CrossRef]
  56. Raja, K.V.; Siddharth, R.; Yuvaraj, S.; Kumar, K.A.R. An Artificial Intelligence Based Automated Case-Based Reasoning (CBR) System for Severity Investigation and Root-Cause Analysis of Road Accidents–Comparative Analysis with the Predictions of ChatGPT. J. Eng. Res. 2024, 12, 895–903. [Google Scholar] [CrossRef]
  57. Wu, T.; Yu, G.; Yuan, D.; Liu, J.; Li, J.; Sun, H. Intelligent Control Method for Aeration Process Based on Case-Based Reasoning. Control Eng. 2023, 30, 2041–2047. [Google Scholar]
  58. Deng, J.; Ye, Z.; Xie, B.; Zeng, X. Case-Based Reasoning Design Method for Extrusion Casting Process Parameters. Mach. Des. Manuf. 2024, 02, 140–145. [Google Scholar] [CrossRef]
  59. Hu, Y.; Wan, Y.; Li, Z.; Qi, Z. Research on Gas Emergency Decision Support System Integrating Knowledge Graphs and Case-Based Reasoning. Fire Sci. Technol. 2024, 43, 143–148. [Google Scholar]
  60. Theodorakos, I.; Andersen, M.S. Improving Ultrasound-Based Bone Registration Using the Iterative Closest Point Algorithm Paired with a Complex Optimization Solver. Med. Eng. Phys. 2024, 126, 104153. [Google Scholar] [CrossRef]
  61. Yu, J.; Wu, X.; Zhao, H. Improved Euclidean Distance Clustering Center-Based ICP Point Cloud Registration Method. Laser Infrared 2024, 54, 1541–1546. [Google Scholar]
  62. Fotsing, C.; Menadjou, N.; Bobda, C. Iterative Closest Point for Accurate Plane Detection in Unorganized Point Clouds. Autom. Constr. 2021, 125, 103610. [Google Scholar] [CrossRef]
  63. Kozjek, D.; Porter, C.; Carter, F.M.; Bhattad, P.; Brackman, P.; Lisovich, A.; Mogonye, J.E.; Cao, J. Iterative Closest Point-Based Data Fusion of Non-Synchronized In-Situ and Ex-Situ Data in Laser Powder Bed Fusion. J. Manuf. Syst. 2022, 66, 179–199. [Google Scholar] [CrossRef]
  64. Lopez, D.; Haas, C.; Narasimhan, S. Specific Object Finding in Point Clouds Based on Semantic Segmentation and Iterative Closest Point. Autom. Constr. 2023, 156, 105116. [Google Scholar] [CrossRef]
  65. Chen, Z.; Ren, W.; Wu, L. Surface Curvature-Driven Steel Billet Point Cloud Simplification Algorithm Guided by KD-Tree. Laser Optoelectron. Prog. 2025, 62, 0215006. [Google Scholar]
  66. Tang, J.; Lin, S.; Zhou, Z.; Si, W.; Wang, T.; Zheng, Z. Fast Point Cloud Registration Method Based on Feature Transformation Combined with KD-Tree Improved ICP. Comput. Sci. 2023, 50 (Suppl. S2), 260–264. [Google Scholar]
  67. Wu, Y.; Zhu, D.; Wang, X. Tree Enhanced Deep Adaptive Network for Cancer Prediction with High Dimension Low Sample Size Microarray Data. Appl. Soft Comput. 2023, 136, 110078. [Google Scholar] [CrossRef]
  68. Sun, C.; Lian, H.; Shi, X.; Tong, F. DBR-RANSAC Target Tracking Algorithm Based on KD-Tree Optimization in Dense Clutter Environment. Mod. Radar 2021, 43, 16–23. [Google Scholar]
  69. Zhao, F.; Ma, Y.; Dai, C. Point Cloud Segmentation Algorithm Based on Improved RANSAC. Sci. Technol. Eng. 2021, 21, 9455–9460. [Google Scholar]
  70. Zhao, X.; Ma, J.; Chen, S.; Guo, L.; Xu, C. Scene-Oriented KD-Tree Point Cloud Filtering Algorithm. Laser J. 2021, 42, 74–78. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.