DXF vector and VLM visual double-channel CAD drawing analysis method
By adopting a dual-channel collaborative architecture of DXF vector and VLM vision, the problems of insufficient semantic understanding and geometric accuracy in CAD drawing parsing are solved, high-precision alignment and reliable quantification are achieved, the reliability and applicability of CAD drawing parsing are improved, and structured knowledge base support is provided.
Patent Information
- Application Number
- CN202611384233.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-08
- Publication Date
- 2026-11-27
AI Technical Summary
In existing CAD drawing analysis technologies, the lack of semantic understanding capabilities of a single vector channel and the insufficient geometric precision of a single visual channel lead to discrepancies between the analysis results and the design intent. This makes it particularly difficult to guarantee the reliability of the judgment results in complex engineering drawings.
It adopts a dual-channel collaborative architecture of DXF vector and VLM vision. By accurately extracting geometric information through the vector channel and combining it with the semantic understanding of the vision channel, it establishes an affine transformation coordinate mapping mechanism and a multi-dimensional confidence scoring system to achieve high-precision alignment and reliable quantification. It also sets up a three-level progressive confidence judgment mechanism to integrate the advantages of the vector channel and the vision channel.
It achieves geometric accuracy and semantic integrity in CAD drawing parsing results, significantly improves the reliability and applicability of parsing complex drawings, reduces the frequency of manual intervention, and provides a structured knowledge base to support downstream tasks.
Smart Images

Figure CN123182255A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of computer vision processing technology, specifically, it relates to a dual-channel CAD drawing parsing method using DXF vector and VLM vision. Background Technology
[0002] Computer-aided design (CAD) technology, as a core support for modern industrial design and manufacturing, generates CAD drawings that contain complete geometric information, topological structure, and semantic attributes of engineering projects. In numerous engineering fields such as architecture, machinery, and electronics, CAD drawings are the cornerstone of expressing design intent and transmitting information, while drawing parsing is the crucial step in transforming graphical design data into computable and understandable structured information. The accuracy and completeness of drawing parsing directly affect the effectiveness of subsequent downstream tasks such as engineering review, data mining, and intelligent applications; therefore, this technology has always been a key research focus in the field of engineering information technology.
[0003] Among them, the DXF format, as an open graphics exchange standard led by Autodesk, has become the de facto standard for vector data exchange in the CAD field due to its relatively standardized data structure and wide application ecosystem. However, most existing solutions for parsing the DXF format only focus on extracting geometric elements and lack the ability to explore the deep semantic relationships in drawings. When faced with complex multi-layer nesting, block reference nesting, and massive amounts of annotation information, it is often difficult to establish an accurate object semantic model.
[0004] Existing technologies in CAD drawing analysis generally suffer from the following technical bottlenecks: First, while vector channels can acquire precise geometric coordinates and attribute information of graphic elements, they lack the ability to understand the spatial relationships and design intentions implicit in the graphic layout, leading to discrepancies between the analysis results and the designer's true intentions. Second, although pure visual channel image recognition schemes can capture the overall visual presentation of drawings, they are limited by image resolution and the cognitive limitations of visual models, resulting in significant deficiencies in fine-grained geometric measurement and precise attribute recognition. Third, in single-channel analysis mode, the advantages of the two technical approaches are difficult to integrate, and there is a lack of effective cross-validation mechanisms for error judgments. Especially when facing typical scenarios in complex engineering drawings, such as multiple view projections, local magnified annotations, and repeated references of standard components, the reliability of judgment results from a single technical path is difficult to guarantee. These technical deficiencies severely restrict the reliability and applicability of CAD drawing analysis in intelligent engineering applications, urgently requiring a new analysis scheme that can synergistically integrate the advantages of vector and visual channels. Summary of the Invention
[0005] The purpose of this invention is to provide a dual-channel CAD drawing parsing method using DXF vector and VLM vision, which mainly solves the problems of insufficient semantic understanding ability of a single vector channel and insufficient geometric accuracy of a single vision channel.
[0006] To achieve the above objectives, the technical solution adopted by the present invention is as follows:
[0007] Compared with the prior art, the present invention has the following beneficial effects:
[0008] (1) This invention overcomes the technical shortcomings of a single vector channel lacking semantic understanding and a single visual channel lacking geometric accuracy by constructing a dual-channel collaborative architecture of deterministic analysis of vector channels and semantic understanding of visual channels. The vector channel accurately extracts the geometric coordinates, layer attributes, and view segmentation boundaries of primitive entities, ensuring the absolute accuracy of geometric information; the visual channel uses a visual language model to perform multimodal fusion understanding of rasterized rendered images, providing the ability to recognize the overall visual presentation and deep semantic association of drawings. The two channels complement each other, enabling the analysis results to have both vector-level geometric accuracy and visual-level semantic integrity.
[0009] (2) This invention achieves high-precision alignment and quantifiable confidence between the vector channel and the visual channel by establishing an affine transformation coordinate mapping mechanism based on DXF text entity anchor points and a multi-dimensional weighted fusion confidence scoring system. Using the text entity vector coordinates as the world coordinate system reference point and the center point of the text recognition bounding box as the pixel coordinate reference point, the affine transformation matrix parameters are calculated to accurately calibrate the visual channel positioning results, eliminating possible perspective distortion and scaling errors in the visual channel. Simultaneously, a comprehensive confidence score is calculated by weighted fusion from multiple dimensions, including bounding box confidence, character recognition editing distance, geometric measurement deviation, and semantic consistency cosine similarity, providing quantifiable confidence evidence for each analytical conclusion.
[0010] (3) This invention, by setting up a three-level progressive confidence judgment mechanism, achieves an orderly connection from fully automatic judgment to manual review, significantly improving the reliability and applicability of complex multi-view CAD drawing analysis. Level L1 high confidence direct judgment can realize the automatic output of items with clear geometric information, complete attributes, and no ambiguity; Level L2 medium confidence completes the analysis items that require numerical summarization through precise measurement; Level L3 low confidence items enter the manual review loop, and the review results are fed back to the confidence scoring model for iterative optimization. This mechanism not only greatly reduces the frequency of manual intervention, but also continuously optimizes the accuracy of automatic judgment through continuous learning, effectively solving the technical problems of lack of cross-validation mechanism and difficulty in detecting erroneous judgments in the existing single-channel analysis.
[0011] (4) This invention constructs a CAD drawing content map that integrates deterministic truth data from the vector channel with semantic understanding results from the visual channel. By combining vector retrieval with strong rule package matching, it achieves a complete transformation from drawing data to a structured knowledge base. The content map establishes a hierarchical knowledge system containing entity archives, view archives, relationship networks, semantic tags, and normative clauses through five sub-processes: entity extraction, relation extraction, view aggregation, tag association, and difference calculation. This provides a directly callable structured knowledge foundation for downstream tasks such as engineering review, compliance verification, and data mining, making up for the shortcomings of existing technologies that limit the analysis results to the geometric element level. Attached Figure Description
[0012] Figure 1 This is a schematic diagram of the overall technical solution architecture of the method of the present invention.
[0013] Figure 2 This is a schematic diagram of the core principle framework for dual-channel fusion of the DXF vector channel and the VLM visual channel in an embodiment of the present invention.
[0014] Figure 3 This is a flowchart illustrating the logical flow of DXF vector channel parsing and feature extraction in an embodiment of the present invention.
[0015] Figure 4 This is a flowchart illustrating the logical flow of VLM visual channel understanding and semantic feature extraction in an embodiment of the present invention. Detailed Implementation
[0016] The present invention will be further described below with reference to the accompanying drawings and embodiments. The embodiments of the present invention include, but are not limited to, the following embodiments.
[0017] like Figure 1 As shown, this invention discloses a dual-channel CAD drawing parsing method using DXF vector and VLM visual methods. This method achieves comprehensive and in-depth parsing of CAD drawings by constructing a dual-channel collaborative parsing architecture that combines a vector channel deterministic truth visual channel with semantic understanding.
[0018] The system receives raw CAD drawing files from user uploads or file system interfaces. It automatically identifies the format using file magic number recognition or file header parsing, resulting in three main categories: DWG, DXF, and PDF vector formats. For drawings identified as DWG, the system calls the LibreDWG open-source library or the ODA (Open Design Alliance) toolset to convert the format to DXF. The LibreDWG library supports all DWG versions from R9 to 2018, employing high-precision floating-point operations during conversion to maintain solid geometry accuracy to at least eight decimal places, ensuring accurate transfer of coordinate data. For drawings containing block references, the nesting depth of the block references is at least 64 levels, enabling complete parsing of nested block structures in complex assembly drawings.
[0019] Regarding attribute preservation, layer colors and line types remain completely consistent during the conversion process, with no attribute loss or distortion. For drawings identified as PDF vector format, the system uses PyMuPDF to perform deep analysis, extracting all vector primitives including line segments, polylines, arcs, text, and filled areas. During extraction, compound paths are recursively decomposed to ensure the geometric integrity of nested paths. For gradient fill areas, the system uses a region discretization method to convert them into several discrete fill areas to preserve visual effects. The final output of the normalization process is standardized drawing data in a unified format, containing complete primitive geometric and attribute information, providing a unified data input for subsequent dual-channel analysis.
[0020] Next, the system constructs a vector channel deterministic analysis pipeline based on the output standardized drawing data. The core objective of this pipeline is to extract deterministic information from all primitive entities in the drawing and generate vector channel deterministic ground truth data. In the geometric coordinate extraction stage, the system traverses all entity segments in the DXF file, extracting one-dimensional, two-dimensional, or three-dimensional geometric coordinate information for each entity, including the start and end coordinates of lines, the center coordinates and radius of circles, the start and end angles and radii of arcs, the vertex sequence of polylines, and the boundary vertex sequence of filled regions. In the attribute extraction stage, the system extracts rendering attributes for each entity, such as layer name, color index, linetype name, line width value, transparency value, and visibility flag.
[0021] In the block reference processing stage, the system parses the block name, insertion point coordinates, scaling ratio, and rotation angle of the block reference entity, and recursively parses nested sub-entities within the block. The system assigns a globally unique handle identifier to each parsed primitive entity, using 64-bit unsigned integer encoding to ensure that each entity has a globally unique identifier within the same drawing file. Attribute mapping relationships are stored in key-value pair format, supporting flexible expansion of extended attribute fields such as layer name, block name, color, linetype, lineweight, transparency, and visibility.
[0022] In the dimensioning analysis stage, the system extracts detailed information about the DIMENSION entity, including dimension type, dimension text, measurement values, definition points, and leader line endpoints. In the view segmentation boundary extraction stage, the system employs an automatic recognition algorithm based on DXF frame entities and viewport entities. The boundary range of each view is determined by the closed polyline of the frame; the first and last connected vertices of the frame polyline define a closed view clipping region. The precise clipping region of the view is calculated using the insertion point coordinates, width parameters, and height parameters of the viewport entity. Viewport entities typically possess special attributes such as layer freeze status and clipping boundaries; the system utilizes these attributes to automatically segment multi-view drawings. Figure 3 As shown, the output of the vector channel deterministic analytical pipeline is a structured list of primitive entities. Each entity contains information such as geometric coordinates, attribute mapping, handle identifier, and view affiliation. This information serves as the deterministic reference data for subsequent visual channel calibration and dual-channel fusion.
[0023] Then, the system constructs a visual channel semantic understanding pipeline based on the output standardized drawing data. The core value of the visual channel lies in using a visual language model to provide overall visual presentation and semantic understanding capabilities for the drawings, compensating for the shortcomings of the vector channel in semantic understanding. For example... Figure 2 As shown, the visual channel first receives the view segmentation boundary information extracted by the vector channel, and divides the original drawing data into multiple independent view regions based on the boundary coordinates of each view. The result of view segmentation is stored in the form of a coordinate list, with each coordinate point corresponding to a precise position in the drawing coordinate system. The system rasterizes and renders each view region to obtain a PNG image. The rendering resolution is calculated based on the precise size of the vector drawing and the preset output DPI, where the default output DPI is set to 300. When the drawing contains ultra-fine annotation elements, the system automatically detects and dynamically increases the DPI to 600 to ensure that the visual language model can recognize subtle annotation symbols and text. During the rendering process, an anti-aliasing algorithm is used to ensure smooth line edges, and high-precision font embedding is used for text rendering to ensure readability. The rendered PNG images are named and organized according to view number to form a view image sequence.
[0024] like Figure 4As shown, the visual language model adopts a multimodal large language model architecture. Its input simultaneously receives rendered PNG images and a pre-defined parsing list. The parsing list is a structured task definition file, which includes view description requirements, annotation recognition rules, and symbol semantic definitions. The view description requirements define the types of visual features to be extracted for each view area, such as wall outlines, door and window positions, and room partitions in architectural floor plans. The annotation recognition rules define the recognition modes and result formats for engineering annotations such as dimension annotations, geometric tolerance annotations, and surface roughness annotations. The symbol semantic definitions define the meanings of various professional symbols, such as geometric tolerance symbols, welding symbols, and surface treatment symbols in mechanical drawings, and elevation symbols, compasses, and fire protection markings in architectural drawings. After receiving the image and the list, the visual language model extracts the visual features of the image through an image encoder, parses the structured requirements of the list through a language encoder, and then performs multimodal fusion understanding in the large language model to generate a structured result that conforms to the specifications. The output includes semantic information such as category labels, bounding box coordinates, text recognition content, symbol type, and relative positional relationships for each element within the view. The output of the visual channel semantic understanding pipeline is a list of visual semantic conclusions for each view region. Each conclusion includes fields such as conclusion category, conclusion content, boundary range, and associated entities.
[0025] Subsequently, dual-channel alignment arbitration is performed. The system establishes a coordinate mapping relationship between the vector channel and the visual channel, achieving precise conversion between pixel coordinates and world coordinates. The positioning results of the visual channel are precisely calibrated using the geometric coordinates of DXF text entities as anchor points, and a corresponding confidence score is assigned to each visual conclusion. The coordinate mapping adopts a two-dimensional affine transformation model, with transformation parameters determined by at least four sets of control points. DXF text entities are selected as feature points for the control points. The system filters text entities with clear geometric boundaries from the deterministic ground truth data output by the vector channel, using their vector coordinates as reference points for the world coordinate system. Simultaneously, the system extracts the center coordinates of the bounding box of the corresponding text from the text recognition results output by the visual channel as reference points for pixel coordinates. By establishing four or more sets of correspondences, the system calculates the parameters of the affine transformation matrix. The mathematical expression for the affine transformation is:
[0026]
[0027] In the formula, , These are the x and y coordinates in the world coordinate system obtained after coordinate transformation, taken from the true reference coordinates of the text entity output by the DXF vector channel; , denoted as x and y, respectively, are the x and y coordinates of the center point of the bounding box for text recognition output by the visual channel in the image pixel coordinate system; a and b are the linear transformation coefficients in the first row of the affine transformation matrix, jointly representing the horizontal scaling factor and shear transformation coefficient during the transformation from the image pixel coordinate system to the world coordinate system; c represents the translation coefficient in the third column of the first row of the affine transformation matrix, representing the horizontal translation amount during the transformation from the pixel coordinate system to the world coordinate system; d and e are the linear transformation coefficients in the second row of the affine transformation matrix, jointly representing the vertical shear factor and vertical scaling factor during the transformation from the image pixel coordinate system to the world coordinate system; f represents the translation coefficient in the third column of the second row of the affine transformation matrix, representing the vertical translation amount during the transformation from the pixel coordinate system to the world coordinate system. The matrix parameters are solved using the least squares method to obtain the optimal transformation. Affine transformation can accurately describe the combination of geometric transformations such as translation, rotation, scaling, and shear, effectively eliminating perspective distortion and scaling errors that may exist in the visual channel. After affine transformation calibration, the visual positioning accuracy reaches the sub-pixel level, and the coordinate transformation error is less than 0.5 pixels.
[0028] The confidence score employs a multi-dimensional weighted fusion method, with scoring dimensions including bounding box confidence for visual recognition, edit distance for character recognition, percentage deviation for geometric measurements, and cosine similarity for semantic consistency. Bounding box confidence is directly output by the visual language model, reflecting the model's certainty in target localization. Edit distance for character recognition measures the similarity between the recognized text and the reference text, calculated as the normalized ratio of the Levinstein distance to the reference text length. Percentage deviation for geometric measurements measures the deviation between the visual channel measurement results and the deterministic results of the vector channel, calculated as the percentage of the absolute deviation to the reference value. Cosine similarity for semantic consistency measures the similarity between the semantic vector of the visual conclusion and the entity attribute vector of the vector channel, calculated using a vectorized representation. The weights of each dimension are dynamically adjusted according to the drawing type; architectural drawings emphasize semantic consistency, while mechanical drawings emphasize geometric measurement deviation. The default setting for the overall confidence threshold is 0.85. Results with confidence scores above the threshold proceed to subsequent processing, while results below the threshold are marked as low-confidence items and placed in the suspected processing queue.
[0029] The system constructs a CAD drawing content graph, Atlas, as a structured knowledge base, providing a structured knowledge foundation for engineering review and data mining. The content graph employs a hybrid storage architecture combining a relational database and a full-text indexing engine. The SQLite database stores structured entity files, view files, and a discrepancy list. Entity files contain complete information such as handle identifiers, geometric coordinates, attribute mappings, and associated tags for graphic entities. View files contain view-level aggregated information such as boundary coordinates, a list of included entities, view type, and view description. The discrepancy list contains change records resulting from drawing version comparisons, including detailed information on added, deleted, and modified entities. The FTS5 full-text search engine is built upon a semantic tag library and a specification clause library, providing millisecond-level inverted index support for tag and clause retrieval. The semantic tag library includes a multi-layered tag system encompassing manually generated semantic tags for entities and views, automatically generated semantic tags from machine learning, and domain ontology-related tags. The code library contains design code provisions related to drawings, such as building fire protection codes, accessibility design codes, and building area calculation codes. Each provision includes fields such as provision number, provision content, applicable conditions, and a list of associated entities.
[0030] The construction process of the content graph Atlas includes five sub-processes: entity extraction, relation extraction, view aggregation, tag association, and difference calculation. The entity extraction process converts each graphic entity in the deterministic truth data of the vector channel into an entity archive record, preserving its complete attribute information. The relation extraction process analyzes the spatial and semantic relationships between entities, including topological relationships such as adjacency, containment, and separation; geometric relationships such as parallel, perpendicular, and tangent; and semantic relationships such as belonging to the same component or the same functional area, establishing a relationship network between entities. The view aggregation process aggregates entities within the same view according to spatial clustering and organizational structure, forming view archive records. The tag association process associates semantic tags and specification clauses with entity archives and view archives through vector retrieval, forming a multi-dimensional retrieval index. The difference calculation process automatically identifies newly added, deleted, and modified graphic entities when parsing multiple versions of drawings, generating a difference list recording the change type, change location, and change content. Difference analysis is based on the unique handle identifier for a one-to-one correspondence comparison at the entity level, ensuring the accuracy and completeness of version comparison.
[0031] In the three-level confidence level judgment and output process, the system implements a three-level confidence level judgment mechanism on the fused analysis results, achieving a complete judgment chain from automatic to semi-automatic through a progressive judgment strategy. Level L1 is a high-confidence direct judgment. When the deterministic result of the vector channel and the high-confidence result of the visual channel are completely consistent and the overall confidence level is not less than 0.95, the system automatically outputs the judgment result without manual intervention. Level L1 direct judgment is suitable for entity analysis projects with clear geometric information, complete attributes, and no ambiguity, such as the identification and attribute extraction of standard primitives. Level L2 is a medium-confidence level requiring precise measurement. When the analysis project requires precise calculation of geometric dimensions or quantity statistics and the overall confidence level is between 0.70 and 0.95, the system enters the measurement mode. In the measurement mode, the system calls the geometric data of the vector channel to perform precise mathematical operations, including length summation, area calculation, quantity statistics, coordinate measurement, etc., and the calculation results are output as the L2 level judgment conclusion. Level L2 measurement is suitable for analysis projects that require numerical summation, such as total length calculation, total area calculation, component quantity statistics, etc. Level L3 represents low-confidence suspected items. When there is a contradiction between the vector channel and the visual channel, or when the overall confidence level is less than 0.70, the system will mark the parsed item as a suspected item and enter the manual review loop.
[0032] The manual review loop generates structured review task orders for the L3 level suspected case list. The order includes screenshots of the original drawings, vector channel conclusions, visual channel conclusions, and a confidence analysis report. Engineers use the order interface to view the drawing context, compare the dual-channel analysis results, analyze the confidence distribution, and refer to the specification library before making a review decision. After review, engineers can choose to accept the vector channel results, accept the visual channel results, or make manual corrections. Upon completion of the review, the system feeds the review results back to the confidence scoring model for subsequent iterative optimization. As the number of review samples accumulates, the parameters of the confidence scoring model are incrementally updated, gradually improving the accuracy of automatic judgment and reducing the burden of manual review.
[0033] In the final output stage, the system matches the vector retrieval with the mandatory rule package to output the final parsing results. Vector retrieval, based on the FTS5 index and semantic vector index of the content graph, performs similarity matching on the user query, returning the most relevant entity files, view files, tags, and clauses. The mandatory rule package is implemented using a rule engine, with rule definitions including the standard clause number, applicable conditions, decision logic, and threshold parameters. Rule matching is executed in priority order, supporting AND, OR, and NOT logical combinations between rules. For example, when the drawing contains fire compartment boundaries, the rule package automatically checks whether the fire compartment area exceeds the standard limit, whether the evacuation distance meets the requirements, and whether the evacuation door direction is correct. The rule execution results are cross-validated with the vector retrieval results to ensure that the output results satisfy both precise rule constraints and semantic relevance.
[0034] In a specific application example, taking a construction drawing analysis project as an example, firstly, the user uploads the DWG format source file of the construction drawing. After the system recognizes it as DWG format, it calls the LibreDWG library to perform DWG to DXF conversion, maintaining geometric accuracy and layer attributes during the conversion process. The vector channel analyzes the pipeline to extract all wall lines, doors, windows, annotations, and other entities, assigning each entity a unique 64-bit handle identifier, and identifying the drawing frame and viewport to determine eight view areas. The visual channel renders each of the eight view areas as a 300 DPI PNG image. The visual language model identifies the semantic content of each view, such as wall layout, room function annotations, and elevation information, according to the preset architectural drawing analysis list. The L2 alignment arbitration layer calculates the affine transformation matrix using the coordinates of the DXF text entities as anchor points, calibrating the bounding box results of the visual channel. The measured coordinate transformation error is 0.3 pixels, and the average comprehensive confidence score is 0.89. The content map stores the structured archives of all entities, the aggregated archives of the eight views, and a library of code provisions, including building fire protection codes. After performing a three-level confidence assessment, the system automatically outputs an L1-level judgment for 90% of the analysis results, performs L2-level area calculations for 8% of the analyzed items, and generates manual review work orders for the 2% of suspected items. After the engineer completes the review, the system feeds back the review results to optimize the confidence model. Finally, the system returns all entities and their attribute information related to the "fire compartment boundary" queried by the user through vector retrieval, and verifies the area compliance of each fire compartment through a strong rule package.
[0035] The above embodiments are merely one of the preferred embodiments of the present invention and should not be used to limit the scope of protection of the present invention. Any modifications or refinements made to the main design concept and spirit of the present invention that are not of substantial significance, but solve the same technical problem as the present invention, should be included within the scope of protection of the present invention.
Claims
1. A method for parsing CAD drawings using both DXF vector and VLM visual channels, characterized in that, Includes the following steps: S1 automatically identifies the format of the original CAD drawing file and calls the corresponding conversion tool to convert the drawing file into standardized drawing data in a unified format based on the identification result; S2, constructs a deterministic analytical pipeline for vector channels based on standardized drawing data, and determines the boundary range of each view based on the closed polyline of the drawing frame; S3, based on standardized drawing data and boundary range, constructs a visual channel semantic understanding pipeline to obtain the structured semantic results of the drawing to be parsed; S4. Establish the coordinate mapping relationship between the vector channel and the visual channel, calibrate the positioning results of the visual channel, and assign a comprehensive confidence score to each visual conclusion. S5, based on the deterministic truth data of the vector channel and the semantic understanding results of the visual channel, constructs a CAD drawing content map as a structured knowledge base; S6 utilizes a structured knowledge base to perform a three-level confidence judgment mechanism on the fused parsing results, and finally outputs parsing results that conform to the preset specifications; The three-level confidence level determination mechanism includes L1 level high confidence level direct determination, L2 level medium confidence level calculation, and L3 level low confidence level suspected item manual review.
2. The method for parsing CAD drawings using both DXF vector and VLM visual channels according to claim 1, characterized in that, The automatically recognized file formats include DWG, DXF, and PDF vector formats; the automatic format recognition is achieved through file magic number recognition or file header parsing.
3. The method for parsing CAD drawings using both DXF vector and VLM visual channels according to claim 2, characterized in that, The vector channel deterministic parsing pipeline extracts the geometric coordinates and rendering attribute information of each primitive entity by traversing the entity segments in the DXF file, and assigns a globally unique identifier and a parsing block reference entity to each primitive entity and recursively parses its nested sub-entities; wherein, the rendering attribute information includes layer name, color index, linetype name, line width value, transparency value and visibility flag.
4. The method for parsing CAD drawings using both DXF vector and VLM visual channels according to claim 3, characterized in that, The visual channel semantic understanding pipeline is used to rasterize and render each view area to obtain a view image. The view image and the preset parsing list are input into the visual language model for multimodal fusion understanding, thereby generating a structured semantic result of the drawing to be parsed, including element category labels, bounding box coordinates, text recognition content, and symbol types.
5. The method for parsing CAD drawings using both DXF vector and VLM visual channels according to claim 4, characterized in that, The parsing list includes view description requirements, annotation recognition rules, and symbol semantic definitions. The view description requirements are used to define the types of visual features to be extracted for each view area. The annotation recognition rules are used to define the recognition modes and result formats for dimension annotations, geometric tolerance annotations, and surface roughness annotations. The symbol semantic definitions are used to define the meanings of various professional symbols.
6. The method for parsing CAD drawings using both DXF vector and VLM visual channels according to claim 5, characterized in that, The coordinate mapping adopts a two-dimensional affine transformation model. By selecting text entities with clear geometric boundaries as control points, using the vector coordinates of the text entities as reference points of the world coordinate system, and using the coordinates of the center point of the bounding box of the corresponding text in the text recognition result as the reference point of the pixel coordinates, the parameters of the affine transformation matrix are calculated to calibrate the positioning results of the visual channel.
7. The method for parsing CAD drawings using both DXF vector and VLM visual channels according to claim 6, characterized in that, The comprehensive confidence score is achieved using a multi-dimensional weighted fusion method. The scoring dimensions of the multi-dimensional weighted fusion method include the bounding box confidence of visual recognition, the edit distance of character recognition, the percentage deviation of geometric measurements, and the cosine similarity of semantic consistency.
8. The method for parsing CAD drawings using both DXF vector and VLM visual channels according to claim 7, characterized in that, The content graph adopts a hybrid storage architecture that combines a relational database with a full-text indexing engine. The construction process of the content graph includes five sub-processes: entity extraction, relation extraction, view aggregation, tag association, and difference calculation. Entity extraction converts each primitive entity in the vector channel deterministic truth data into an entity archive record. Relation extraction analyzes the topological, geometric, and semantic relationships between entities. View aggregation aggregates entities within the same view according to spatial clustering to form view archive records.
9. A method for parsing CAD drawings using both DXF vector and VLM visual channels according to claim 8, characterized in that, In step S6, the L1 level high confidence direct judgment is applicable to entity parsing projects with clear geometric information, complete attributes and no ambiguity. The L2 level medium confidence measurement includes length summation, area calculation, quantity statistics and coordinate measurement. The L3 level low confidence suspected projects enter the manual review loop and the review results are fed back to the confidence scoring model for iterative optimization.
10. A method for parsing CAD drawings using both DXF vector and VLM visual channels according to claim 9, characterized in that, The final output is achieved through vector retrieval and matching with strong rule packages. The vector retrieval is based on the full-text index of the content graph and the semantic vector index for similarity matching. The strong rule packages are implemented using a rule engine. The rule definitions include the normative clause number, applicable conditions, judgment logic and threshold parameters. The rule matching results are cross-validated with the vector retrieval results.
