CAD drawing instant positioning method and device based on spatial index analysis
By performing multi-level splitting and semantic analysis on multi-version CAD drawings, a three-level correlation diagram of component-layer-drawing is established, which solves the problems of complex spatial relationships and semantic information processing in CAD drawings, and realizes efficient and instant drawing retrieval and positioning.
Patent Information
- Application Number
- CN202510884049.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2045-06-30
AI Technical Summary
The prior art is difficult to effectively process complex spatial relationships and semantic information in CAD drawings, resulting in inefficient search efficiency, insufficient immediacy and inaccurate positioning of multi-version CAD drawings.
Through the method based on spatial index analysis, multi-level split identification of multi-version CAD drawings is carried out, three-level correlation maps of components-layer-drawings are established, semantic analysis and spatial associations are performed, and the drawing spatial index mapping table is constructed to achieve real-time positioning and visual feedback.
It improves the search efficiency and positioning accuracy of multi-version drawings, and realizes immediate and accurate drawing query.
Smart Images

Figure CN120372039A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of CAD drawing positioning, and specifically relates to an instant positioning method and device for CAD drawings based on spatial index analysis. Background Art
[0002] CAD drawings often have multiple versions, containing a vast amount of graphic, text, and annotation information, including detailed design content from macroscopic layout to microscopic components. However, in practical applications, it is difficult to quickly and accurately locate the required information in multiple versions of CAD drawings. Most of the existing CAD drawing retrieval and positioning methods rely on simple keyword searches or manual browsing, which can meet the requirements when dealing with a small number of drawings, but when faced with a large number of multi-version CAD drawings, the efficiency is extremely low; and due to the high spatial correlation and semantic complexity of the information in CAD drawings, simple keyword matching cannot effectively understand the spatial position relationship and semantic meaning of the components in the drawings, resulting in a large deviation between the retrieval results and the actual requirements, and it is difficult to achieve fast retrieval and precise positioning.
[0003] Therefore, in the current related technologies, there are technical problems such as difficulty in effectively processing complex spatial relationships and semantic information in drawings, low retrieval efficiency of multi-version CAD drawings, insufficient instantaneity, and inaccurate positioning. Summary of the Invention
[0004] This application provides an instant positioning method and device for CAD drawings based on spatial index analysis, which solves the technical problems in the prior art of difficulty in effectively processing complex spatial relationships and semantic information in drawings, low retrieval efficiency of multi-version CAD drawings, insufficient instantaneity, and inaccurate positioning, and achieves the technical effects of improving the retrieval efficiency, query instantaneity, and positioning accuracy of multi-version drawings.
[0005] This application provides an instant positioning method for CAD drawings based on spatial index analysis. The method includes: obtaining multi-version target CAD drawings, performing multi-level splitting and identification on the multi-version target CAD drawings to obtain drawing version information, drawing layer information, and a drawing component set; associating and indexing the drawing version information, drawing layer information, and drawing component set to build a three-level association graph of component - layer - drawing; performing semantic parsing and spatial association on each drawing text annotation in the multi-version target CAD drawings to obtain a drawing component spatial semantic label set; embedding and associating the drawing component spatial semantic label set into the three-level association graph of component - layer - drawing to construct a drawing spatial index mapping table; inputting a drawing semantic query request, performing matching indexing on the drawing semantic query request based on the drawing spatial index mapping table to generate a component query topological path; and performing instant positioning and visual feedback in the multi-version target CAD drawings based on the component query topological path to determine the drawing instant positioning result.
[0006] In a possible implementation, the CAD drawing instant positioning method based on spatial index analysis further performs the following processing: obtaining a drawing version identification rule, where the identification content of the drawing version identification rule includes a project number, a drawing type, and a timestamp; classifying and identifying the versions of the multi-version target CAD drawings according to the drawing version identification rule to obtain the drawing version information; presetting a layer classification rule to classify the layers of each version of the drawing in the multi-version target CAD drawings to obtain the drawing layer information; identifying the component boundaries and extracting the attribute types of each version of the drawing in the multi-version target CAD drawings to obtain the drawing component set.
[0007] In a possible implementation, the CAD drawing instant positioning method based on spatial index analysis further performs the following processing: building a drawing index coding system, where the coding content of the drawing index coding system includes drawing version, drawing layer, and drawing component; performing index coding on the drawing version information, drawing layer information, and drawing component set based on the drawing index coding system to obtain a drawing version identification code, a drawing layer identification code, and a drawing component identification code; hierarchically associating the drawing version identification code, the drawing layer identification code, and the drawing component identification code to obtain a drawing version-layer-component association identification code set; performing reverse traceability indexing based on the drawing version-layer-component association identification code set to build a three-level association graph of component-layer-drawing.
[0008] In a possible implementation, the CAD drawing instant positioning method based on spatial index analysis further performs the following processing: traversing and extracting each drawing annotation information in the multi-version target CAD drawings to obtain a multi-version drawing annotation text set; performing text denoising and word segmentation processing on the multi-version drawing annotation text set according to the drawing application requirement standard to obtain a multi-version drawing annotation word segmentation set; mining and obtaining the drawing professional domain knowledge base of the multi-version target CAD drawings, and performing graph-level cascading construction on the drawing professional domain knowledge base to obtain a drawing professional knowledge graph; performing semantic parsing and spatial association on the multi-version drawing annotation word segmentation set based on the drawing professional knowledge graph to obtain a drawing component spatial semantic label set.
[0009] In a possible implementation, the CAD drawing instant positioning method based on spatial index analysis further performs the following processing: Semantically match the multi-version drawing annotation word segmentation set based on the drawing expertise knowledge graph to obtain a multi-version annotation matching semantic set; If the semantic match fails, calculate the word vector similarity between the multi-version drawing annotation word segmentation set and the drawing expertise knowledge graph, and determine a multi-version annotation similar semantic set according to the calculation result of the word vector similarity; Obtain a multi-version drawing annotation semantic set according to the multi-version annotation matching semantic set and the multi-version annotation similar semantic set; Generate semantic labels and component spatial associations for the multi-version drawing annotation semantic set to obtain a drawing component spatial semantic label set.
[0010] In a possible implementation, the CAD drawing instant positioning method based on spatial index analysis further performs the following processing: Associate the multi-version drawing annotation semantic set with the drawing component set to obtain a multi-version drawing component semantic set; Define a drawing semantic label template, and use the drawing semantic label template to generate semantic labels for the multi-version drawing component semantic set to obtain a multi-version drawing component semantic label set; Perform spatial positioning identification on the component information of each component in the drawing component set to obtain a multi-version drawing component spatial coordinate set; Perform an association mapping between the multi-version drawing component semantic label set and the multi-version drawing component spatial coordinate set to obtain the drawing component spatial semantic label set.
[0011] In a possible implementation, the CAD drawing instant positioning method based on spatial index analysis further performs the following processing: Embed the drawing component spatial semantic label set into the component-layer-drawing three-level association graph for cross-layer association to obtain an initial drawing index mapping table; Perform conflict detection on the initial drawing index mapping table to obtain conflict index components; Based on the conflict index components, correct and update the initial drawing index mapping table to obtain a drawing spatial index mapping table.
[0012] In a possible implementation, the CAD drawing instant positioning method based on spatial index analysis further performs the following processing: Classify and identify the conflict index components to obtain component index conflict types; Construct index conflict type correction rules, and use the index conflict type correction rules to match and correct the component index conflict types to determine component index correction information; Update the initial drawing index mapping table based on the component index correction information to obtain the drawing spatial index mapping table.
[0013] In a possible implementation, the CAD drawing instant positioning method based on spatial index analysis further performs the following processing: obtaining an index conflict correction type, where the index conflict correction type includes spatial overlap conflict, semantic label conflict, and cross-layer reference conflict; respectively associating and integrating correction strategies based on the index conflict correction type to construct an index conflict type correction rule.
[0014] This application also provides a CAD drawing instant positioning device based on spatial index analysis. The device includes: a drawing multi-level splitting unit for obtaining multi-version target CAD drawings, performing multi-level splitting identification on the multi-version target CAD drawings to obtain drawing version information, drawing layer information, and a drawing component set; an associated graph building unit for associating and indexing the drawing version information, drawing layer information, and drawing component set to build a component-layer-drawing three-level associated graph; a semantic parsing unit for performing semantic parsing and spatial association on each drawing text annotation in the multi-version target CAD drawings to obtain a drawing component spatial semantic label set; an index mapping table building unit for embedding and associating the drawing component spatial semantic label set into the component-layer-drawing three-level associated graph to build a drawing spatial index mapping table; a query topological path generation unit for inputting a drawing semantic query request, performing matching indexing on the drawing semantic query request based on the drawing spatial index mapping table to generate a component query topological path; and an instant positioning result determination unit for performing instant positioning and visual feedback in the multi-version target CAD drawings based on the component query topological path to determine a drawing instant positioning result.
[0015] It is intended to perform multi-level splitting identification on multi-version target CAD drawings through the CAD drawing instant positioning method and device based on spatial index analysis proposed in this application; associate and index the drawing version information, drawing layer information, and drawing component set; perform semantic parsing and spatial association on each drawing text annotation; embed and associate the drawing component spatial semantic label set into the component-layer-drawing three-level associated graph; perform matching indexing on the drawing semantic query request based on the drawing spatial index mapping table; and perform instant positioning and visual feedback based on the component query topological path to determine a drawing instant positioning result. This solves the technical problems in the prior art, such as the difficulty in effectively processing complex spatial relationships and semantic information in drawings, low retrieval efficiency of multi-version CAD drawings, insufficient instantaneity, and inaccurate positioning, and achieves the technical effects of improving the retrieval efficiency, query instantaneity, and positioning accuracy of multi-version drawings. Description of the Drawings
[0016] To more clearly illustrate the technical solutions of the embodiments of the present disclosure, the accompanying drawings of the embodiments of the present disclosure will be briefly introduced below. Flowcharts are used in this application to illustrate the operations performed by the devices according to the embodiments of the present application. It should be understood that the operations above or below do not necessarily need to be executed precisely in sequence. On the contrary, various steps can be processed in reverse order or simultaneously as needed. At the same time, other operations can also be added to these processes, or one or several steps can be removed from these processes.
[0017] Figure 1 Schematic flow diagram of the instant positioning method for CAD drawings based on spatial index analysis provided by the embodiments of the present application.
[0018] Figure 2 Schematic structural diagram of the instant positioning device for CAD drawings based on spatial index analysis provided by the embodiments of the present application.
[0019] Explanation of reference numerals: multi-level drawing splitting unit 10, associated graph building unit 20, semantic parsing unit 30, index mapping table construction unit 40, query topology path generation unit 50, instant positioning result determination unit 60. Detailed implementation manners
[0020] The above description is only an overview of the technical solutions of the present application. In order to be able to understand the technical means of the present application more clearly, it can be implemented according to the content of the description. And in order to make the above and other purposes, features and advantages of the present application more obvious and understandable, the following specifically gives the detailed implementation manners of the present application.
[0021] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations of the present application. All other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present application.
[0022] In the following description, "some embodiments" are involved, which describe a subset of all possible embodiments. However, it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict. The terms "first / second" involved are only used to distinguish similar objects and do not represent a specific order for the objects. The terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, device, product, or server comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or modules not clearly listed or inherent to these processes, methods, products, or devices. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application.
[0023] The embodiments of this application provide an instant positioning method for CAD drawings based on spatial index analysis, as Figure 1 shown. The method includes: Step S100, obtain multi-version target CAD drawings, and perform multi-level splitting and identification on the multi-version target CAD drawings to obtain drawing version information, drawing layer information, and a drawing component set.
[0024] Preferably, collect different versions of CAD drawings in different design stages of a project, that is, multi-version target CAD drawings. There may be differences in the overall layout, detailed design, and dimension markings of these drawings. Then, perform multi-level splitting and identification on the multi-version target CAD drawings, that is, refine and classify the complex CAD drawing information to obtain drawing version information, drawing layer information, and a drawing component set. Specifically, each version of the CAD drawing includes a specific version number, version name, and version update time, etc. By extracting and identifying the drawing version information, the differences between different version drawings are clarified. For example, the version number may increase according to a rule, such as from 1.0, 1.1, 1.2, etc., and each version number corresponds to different design modification contents; the version name describes the main modification contents or applicable stages of this version, such as "preliminary design version", "detailed design version", "construction version", etc.; the version update time records the specific time of creation or last modification of this version.
[0025] Preferably, the drawing layer information refers to multiple layers contained in a CAD drawing. Each layer has its specific uses and functions, which may include, but are not limited to, a contour line layer, a center line layer, a dimension layer, a fill layer, etc. By splitting and identifying the drawing layer information, the attributes of each layer, such as the name of the layer, the visibility of the layer, the color of the layer, the line type, etc., are determined. For example, the contour line layer uses solid lines to represent the outer shape of an object and the color is black; the center line layer uses dotted lines to represent the symmetry axis of the object and the color is red. At the same time, the hierarchical relationship and organizational structure between the layers are obtained to clarify the mutually related layers and independent layers. The drawing components refer to the basic elements that make up the graphics in a CAD drawing, such as points, lines, surfaces, circles, rectangles, polygons, and complex graphics composed of basic elements, such as mechanical parts, building components, etc. Splitting and identifying the drawing component set is to identify the geometric information of each component, such as the type, position, size, shape, etc., as well as the attribute information of the component, such as the name, material, number, etc., and then form the drawing component set.
[0026] Preferably, step S100 further includes step S110 of obtaining the drawing version identification rule, where the identification content of the drawing version identification rule includes the project number, the drawing type, and the timestamp; step S120 of classifying and identifying the versions of the multi-version target CAD drawings according to the drawing version identification rule to obtain the drawing version information; step S130 of classifying the drawings of each version in the multi-version target CAD drawings according to a preset layer classification rule to obtain the drawing layer information; step S140 of identifying the component boundaries and extracting the attribute types of the drawings of each version in the multi-version target CAD drawings to obtain the drawing component set.
[0027] Preferably, obtain the drawings of different versions in a project and identify their drawing version identification rules. The identification content includes the project number, the drawing type, and the timestamp. Among them, the project number is a unique number for each project. Through the project number, the specific project can be quickly located and different project drawings can be distinguished; the drawing type refers to various types of CAD drawings, such as architectural drawings, structural drawings, electrical drawings, etc. For example, "ARCH" represents an architectural drawing and "STRUCT" represents a structural drawing; the timestamp records the creation or modification time of the drawing version. Classify and identify the multi-version target CAD drawings according to the drawing identification rule, that is, assign a version identification that conforms to the rule to each drawing, so that it is possible to clearly understand the project, type, and version time to which each drawing belongs, and then obtain the drawing version information.
[0028] Preferably, the preset layer classification rule is used to classify the drawings of each version of the multi-version target CAD drawings. The preset layer classification rule is a set rule for classifying the layers in the drawings. For example, it is stipulated that all graphic elements representing walls are placed in the "wall layer", and all annotation information is placed in the "annotation layer", so as to clarify the content and use of each layer in each drawing, and thus obtain detailed drawing layer information, including layer names, element types included in the layer, etc. Then, computer graphics processing is used to identify the component boundaries and extract the attribute types from the drawings of each version in the multi-version target CAD drawings, specifically including identifying the boundaries of each component in the drawing and extracting the attribute information of each component, such as the name, material, size, etc. of the component. Finally, the identified and extracted component information is combined into a drawing component set.
[0029] Step S200, associate and index the drawing version information, the drawing layer information, and the drawing component set to build a three-level association map of component-layer-drawing.
[0030] Preferably, the drawing version information, the drawing layer information, and the drawing component set are associated and indexed, that is, the corresponding relationship between the drawing version information, the drawing layer information, and the drawing component set is established, including quickly determining the elements in other related data sets through one element, similar to establishing an association table. Specifically, each component in a CAD drawing is located on a specific layer. By recording the layer information to which each component belongs, a mapping relationship from the component to the layer is established in the map, that is, the association between the component and the layer is established; each CAD drawing contains multiple layers, and different versions of the drawing may have different layer structures. By determining which drawing each layer belongs to and the version information of the drawing, a mapping relationship from the layer to the drawing is established in the map, that is, the association between the layer and the drawing is established; then, by integrating the mapping associations between the component and the layer, and between the layer and the drawing, a three-level association map of component-layer-drawing is established, that is, based on the component, through the layer as an intermediate bridge, it is connected to the drawing version information. Each component can be traced back to the layer and drawing version where it is located. Conversely, from the drawing version information, the layers and components included in it can also be gradually located. Through the three-level association map, the layer and drawing version where the component is located can be quickly located, improving the efficiency and accuracy of information query.
[0031] Further, step S200 further includes step S210 of building a drawing index coding system, where the coding content of the drawing index coding system includes drawing version, drawing layer, and drawing component; step S220 of performing index coding on the drawing version information, drawing layer information, and drawing component set based on the drawing index coding system to obtain a drawing version identification code, a drawing layer identification code, and a drawing component identification code; step S230 of hierarchically associating the drawing version identification code, the drawing layer identification code, and the drawing component identification code to obtain a drawing version-layer-component association identification code set; and step S240 of performing reverse traceability indexing based on the drawing version-layer-component association identification code set to build a three-level association graph of component-layer-drawing.
[0032] Preferably, a drawing index coding system is built. The coding content of the drawing index coding system includes drawing version, drawing layer, and drawing component, that is, the drawing version, drawing layer, and drawing component information are coded, and each piece of information corresponds to a coding rule. Specifically, by integrating the project number, design date, number of modifications, etc., an index identification code is generated for each version of the drawing to obtain a drawing version identification code. For example, the drawing version code of a building project is "PROJ001-20250427-V3", where "PROJ001" is the project number, "20250427" is the date, and "V3" represents the third modified version; by combining the layer name, function, usage, etc., the drawing layer information is index-coded to obtain a drawing layer identification code. For example, "WALL-LAYER-01" represents the first wall layer, and "WINDOW-LAYER-02" represents the second window layer; by combining the attribute information such as the type, size, and position of the component, the drawing component set is index-coded to obtain a drawing component identification code. For example, the code for a circular column may be "COLUMN-CIRCLE-D500-POS(10,20)", indicating a circular column with a diameter of 500 located at the position of coordinates (10,20).
[0033] Preferably, the drawing version identification code, the drawing layer identification code, and the drawing component identification code are associated according to the hierarchical relationship to form a drawing version-layer-component associated identification code set, so as to reflect the hierarchical structure of the drawing information, that is, the component exists in a specific layer, and the layer belongs to a specific version of the drawing, thereby clearly understanding the layer and drawing version to which each component belongs; finally, the drawing version-layer-component associated identification code set is used for reverse traceability indexing, that is, starting from the component identification code, through the hierarchical relationship in the associated identification code set, the layer and drawing version to which the component belongs are searched in reverse, so as to build the three-level associated map of the component-layer-drawing. Specifically, according to the component identification code, the layer identification code where it is located can be found through the association relationship, and then the drawing version identification code to which the layer belongs can be determined. The association relationships among all components, layers, and drawing versions are displayed in the form of a map, presenting the hierarchical structure and mutual relationships of the information in the CAD drawing, enabling users to quickly locate the required component, layer, or drawing version, and improving the management and query efficiency of the drawing information.
[0034] Step S300, perform semantic parsing and spatial association on each drawing text annotation in the multi-version target CAD drawing to obtain a drawing component spatial semantic label set.
[0035] Preferably, the target CAD drawing contains various text annotations for conveying design intentions, explaining component attributes, and technical requirements. For example, in architectural drawings, there will be annotations for wall thickness, door and window sizes, and room functions; in mechanical drawings, there will be annotations for part tolerances, surface roughness, and material types, etc. Performing semantic parsing on each drawing text annotation means converting the text annotation into semantic information that can be understood and processed by a computer. Specifically, the words in the text annotation are identified and classified. For example, in the annotation "Column: C30 concrete, side length 500mm", it is identified that "column" is the component name, "C30 concrete" is the material attribute, and "side length 500mm" is the dimension attribute; the semantics of the words in the text are understood, such as determining from the annotation that "C30 concrete" and "side length 500mm" are the attribute information describing the "column" component; then each drawing text annotation is spatially associated, that is, the text annotation after semantic parsing is spatially associated with the component in the drawing to determine the specific component corresponding to each text annotation. For example, according to the position of the text annotation in the drawing, the component near it is searched, and it is judged whether the annotation is related to it, and the geometric relationship between the text annotation and the component, such as inclusion, adjacency, alignment, etc., is analyzed; finally, each drawing component is given a label that can describe its semantic information and spatial position, and then a drawing component spatial semantic label set is formed, which helps to perform accurate drawing spatial index mapping and fast query positioning.
[0036] Further, step S300 further includes step S310, traversing and extracting each drawing annotation information in the multi-version target CAD drawings to obtain a multi-version drawing annotation text set; step S320, performing text denoising and word segmentation on the multi-version drawing annotation text set according to the drawing application requirement standard to obtain a multi-version drawing annotation word segmentation set; step S330, mining and obtaining the drawing professional field knowledge base of the multi-version target CAD drawings, and performing graph cascade construction on the drawing professional field knowledge base to obtain a drawing professional knowledge graph; step S340, performing semantic parsing and spatial association on the multi-version drawing annotation word segmentation set based on the drawing professional knowledge graph to obtain a drawing component spatial semantic label set.
[0037] Preferably, traverse and extract the text annotation information of each drawing in the multi-version target CAD drawings for explaining the graphic meaning, dimensions, technical requirements, etc., to form a multi-version drawing annotation text set, and then perform text denoising and word segmentation on the multi-version drawing annotation text set according to the drawing application requirement standard. Specifically, the requirement standards for the annotation text in different drawing application scenarios are different. Performing text denoising on the multi-version drawing annotation text set means removing noise information such as irrelevant symbols, duplicate content, and incorrect spellings to make the text cleaner and more accurate. Then, perform word segmentation on the multi-version drawing annotation text set, that is, divide the denoised text according to the boundaries of words, and split the continuous text string into individual words. For example, segment "Architectural Structure Design Specification" into "architecture", "structure", "design", and "specification" to facilitate semantic analysis and processing of the text more conveniently.
[0038] Preferably, according to relevant professional literature, standards and specifications, design manuals and other materials in the drawing professional field, mine the drawing-related knowledge to obtain the drawing professional field knowledge base of the multi-version target CAD drawings, which includes professional terms, concepts, relationships, specifications, etc. Then, perform graph cascade construction on the drawing professional field knowledge base. Specifically, use professional terms, concepts, component names, etc. as graph nodes, and use node relationships (such as "belongs to", "contains", "associates", etc.) as the edges of the graph to analyze and associate the knowledge in the knowledge base to form a drawing professional knowledge graph.
[0039] Preferably, the knowledge and relationships in the drawing professional knowledge graph are utilized to understand the information in the multi-version drawing annotation word segmentation set. Specifically, each word in the annotation word segmentation set is matched and associated with the nodes in the knowledge graph to determine its accurate meaning in the professional field, including the semantic role and attributes in the drawing and the combination relationships between words; the annotation information is associated with the spatial positions in the drawing, that is, by analyzing the position of the annotation in the drawing and its spatial relationships with other graphic elements, the position of the specific component corresponding to each annotation in the drawing is determined; finally, a drawing component spatial semantic tag set is constructed, which includes the name of the component, attributes (such as materials, dimensions, etc.) and its spatial position information in the drawing, etc., helping to achieve more efficient drawing information retrieval and positioning.
[0040] Furthermore, step S340 further includes step S341, performing semantic matching on the multi-version drawing annotation word segmentation set based on the drawing professional knowledge graph to obtain a multi-version annotation matching semantic set; step S342, if the semantic matching fails, calculating the word vector similarity between the multi-version drawing annotation word segmentation set and the drawing professional knowledge graph, and determining a multi-version annotation similar semantic set according to the calculation result of the word vector similarity; step S343, obtaining a multi-version drawing annotation semantic set according to the multi-version annotation matching semantic set and the multi-version annotation similar semantic set; step S344, performing semantic tag generation and component space association on the multi-version drawing annotation semantic set to obtain a drawing component spatial semantic tag set.
[0041] Preferably, semantic matching means comparing each word or phrase in the multi-version drawing annotation word segmentation set with the nodes and relationships in the drawing professional knowledge graph to find whether the annotation word segmentation matches the node name or relationship description in the knowledge graph. If an annotation word segmentation can find an exact matching node or relationship in the knowledge graph, the corresponding semantic information is extracted, and finally a multi-version annotation matching semantic set is obtained; when an annotation word segmentation has no direct matching semantics in the knowledge graph, the word vector similarity between it and each node in the knowledge graph is calculated. Among them, the word vector is used to convert words into numerical representations in the vector space. By calculating the distance between vectors (such as cosine similarity), the similarity degree between words is measured. Then, according to the calculation result of the word vector similarity, a threshold is set (such as similarity greater than 0.8), and the annotation word segmentation whose similarity with the nodes in the knowledge graph exceeds the threshold and its similar semantic information are combined to form a multi-version annotation similar semantic set.
[0042] Preferably, the multi-version annotation matching semantic set and the multi-version annotation similar semantic set are then merged to obtain a multi-version drawing annotation semantic set, which contains various semantic contents in the multi-version drawing annotations; finally, the information in the multi-version drawing annotation semantic set is processed to generate semantic labels for each annotation, summarizing the core semantic features of the components or information represented by the annotation; then the generated semantic labels are associated with the spatial position information of the specific components in the drawing, including analyzing the position, coordinates of the annotation in the drawing, and the relative relationship with other graphic elements, etc., to determine the specific position and range of each component in the drawing space; finally, a set containing the semantic labels of each component in the drawing and their position information in space, that is, the drawing component spatial semantic label set, is obtained, which helps to realize more intelligent and efficient drawing information management.
[0043] Further, step S344 further includes step A1 of associating the multi-version drawing annotation semantic set with the drawing component set to obtain a multi-version drawing component semantic set; step A2 of defining a drawing semantic label template and using the drawing semantic label template to generate semantic labels for the multi-version drawing component semantic set to obtain a multi-version drawing component semantic label set; step A3 of performing spatial positioning identification on the component information in the drawing component set to obtain a multi-version drawing component spatial coordinate set; step A4 of performing an associative mapping on the multi-version drawing component semantic label set and the multi-version drawing component spatial coordinate set to obtain the drawing component spatial semantic label set.
[0044] Preferably, the multi-version drawing annotation semantic set is associated with the drawing component set, that is, according to the corresponding relationship between the component name or number and the component mentioned in the annotation, the semantic information in the annotation semantic set is matched and connected with the specific components in the component set to obtain a multi-version drawing component semantic set; a drawing semantic label template is predefined, including specifying the format, content composition, value range, etc. of the semantic label, and using the defined drawing semantic label template to process the semantic information of each component in the multi-version drawing component semantic set, extracting and organizing relevant information according to the requirements of the template, generating corresponding semantic labels, and combining them to form a multi-version drawing component semantic label set.
[0045] Preferably, the spatial positions of each component in the drawing component set are determined and identified using the CAD drawing coordinates, including obtaining the coordinate positions of the components on the drawing plane (such as X, Y coordinates) and the position information in the three-dimensional space (if it is a three-dimensional drawing), and then combining the spatial positioning identification information of all components to generate a multi-version drawing component spatial coordinate set, which records the spatial position coordinates of each component in the multi-version drawing; finally, the multi-version drawing component semantic label set and the multi-version drawing component spatial coordinate set are associated and mapped, that is, the semantic label of each component in the semantic label set is associated with its corresponding spatial position information in the spatial coordinate set, obtaining a drawing component spatial semantic label set, which combines the semantic information and spatial position information of the components, so as to more efficiently query, analyze, locate and manage the target CAD version drawing.
[0046] Step S400, embed and associate the drawing component spatial semantic label set into the component-layer-drawing three-level association graph to construct a drawing space index mapping table.
[0047] Preferably, embed and associate the drawing component spatial semantic label set into the component-layer-drawing three-level association graph, that is, connect and integrate the information in the drawing component spatial semantic label set with the corresponding elements in the component-layer-drawing three-level association graph. Specifically, associate the spatial semantic label of each component with the component node in the graph, so that the components in the graph not only have the hierarchical relationship information in the drawing, but also contain detailed spatial and semantic description information. For example, find the component node representing a certain window in the graph, and embed the spatial semantic label of the window (such as position coordinates, dimensions, functions, etc.) into the node, so that the components in the graph can more comprehensively reflect the actual situation in the drawing.
[0048] Preferably, then construct a drawing space index mapping table according to the enriched three-level association graph, which is used to quickly locate the relevant component, layer or drawing information in the drawing according to different query conditions. For example, the name of the component, a certain attribute in the semantic label (such as function, material, etc.), or the spatial position information of the component (coordinate range, etc.) can be used as the index key to quickly find the position of the corresponding component in the graph, and then obtain the layer where the component is located, the drawing to which it belongs and other relevant detailed information, thereby improving the efficiency of drawing management, query and analysis and facilitating users to quickly and accurately obtain the required drawing space information.
[0049] Further, step S400 further includes step S410 of embedding the spatial semantic tag set of the drawing components into the component-layer-drawing three-level association graph for cross-layer association to obtain an initial drawing index mapping table; step S420 of performing conflict detection on the initial drawing index mapping table to obtain conflict index components; and step S430 of correcting and updating the initial drawing index mapping table based on the conflict index components to obtain a drawing spatial index mapping table.
[0050] Preferably, in an actual CAD drawing, there may be spatial or semantic connections between components in different layers. The spatial semantic tag set of the drawing components, which includes component spatial information (such as position, size, etc.) and semantic information (such as component type, function, etc.), is associated with the component nodes in the component-layer-drawing three-level association graph for cross-layer association to establish associations between components in different layers. An initial drawing index mapping table is constructed based on the enriched three-level association graph, that is, using certain features of the components (such as component name, attributes in the semantic tags, spatial position, etc.) as index keys to establish a mapping relationship between them and the positions of the components in the graph, as well as the relevant layer and drawing information. Through the index keys, the components in the graph can be quickly located and their relevant information can be obtained.
[0051] Preferably, conflict detection is performed on the initial drawing index mapping table, that is, checking whether there are situations where the index keys are inconsistent with the actual component information or association relationships, or where different index keys point to the same component but the information is contradictory, etc. For example, there may be two different semantic tags that both point to the same component, but the functions or attributes of the component described by these two tags conflict; or the component found according to the spatial position index key does not match the actual component at that position, etc. Then, the component corresponding to the detected conflicting index is determined as the conflict index component. Then, for the conflict index component, analyze the cause of the conflict and modify, adjust, or supplement the relevant information in the initial drawing index mapping table. For example, if the conflict is caused by an incorrect semantic tag, correct the semantic tag; if the spatial position index is inaccurate, re-determine the correct spatial position information of the component, etc. Finally, a corrected and improved drawing index mapping table, that is, a drawing spatial index mapping table, is obtained, which can more accurately reflect the spatial positions, semantic information of the components in the drawing, and their association relationships, so as to facilitate efficient query, management, and analysis of CAD drawings.
[0052] Further, step S430 further includes step S431, classifying and identifying the conflict index component to obtain the component index conflict type; step S432, constructing an index conflict type correction rule, and using the index conflict type correction rule to match and correct the component index conflict type to determine the component index correction information; step S433, updating the initial drawing index mapping table based on the component index correction information to obtain the drawing space index mapping table.
[0053] Preferably, classify and identify the conflict index component to obtain the component index conflict type. For example, there may be semantic conflicts, that is, different semantic labels describe the same component contradictorily; spatial conflicts, where the indexed spatial position does not match the actual spatial position of the component; or association conflicts, where the association relationship between the component and the layer or drawing is incorrect, etc. Based on the actual application requirements of CAD drawings and industry standards, corresponding correction rules are formulated according to different component index conflict types. For example, for semantic conflicts, determine its accurate semantics according to the geometric features, location of the component, and its relationship with other components; for spatial conflicts, recalculate and determine the correct spatial position of the component based on the scale of the drawing, coordinate system, and the positions of other reference components; for association conflicts, repair the association relationship between the component and the layer or drawing with reference to the drawing design logic and layer management specifications. Then, match the conflict type of each conflict index component with the constructed index conflict type correction rule, and correct the conflict according to the corresponding rule to obtain the component index correction information of each conflict index component, including the correct semantic label, spatial position information, and accurate association relationship, etc. Finally, use the component index correction information to update the information of the corresponding conflict index component in the initial drawing index mapping table, that is, replace the incorrect or conflicting information in the initial table with the corrected component information, to obtain the drawing space index mapping table, which can more accurately reflect the true situation of the components in the CAD drawing and facilitate users to quickly and accurately obtain the drawing information data through the index.
[0054] Further, step S432 further includes step B1, obtaining the index conflict correction type, where the index conflict correction type includes spatial overlap conflict, semantic label conflict, and cross-layer reference conflict; step B2, respectively performing correction strategy association and correction strategy integration based on the index conflict correction type to construct the index conflict type correction rule.
[0055] Preferably, different types of index conflicts in the drawing space index mapping table are identified, including spatial overlap conflicts, semantic label conflicts, and cross-layer reference conflicts. Among them, spatial overlap conflicts refer to the situation where, in the drawing space, due to coordinate annotation errors, scale setting problems, or inaccurate component space definitions, the spatial position indexes of different components overlap, that is, according to the index information, two or more components seem to occupy the same spatial position; semantic label conflicts refer to the situation where, due to manual annotation errors or inconsistent semantic specifications in different versions of the drawings, the semantic labels assigned to components are contradictory or inaccurate; cross-layer reference conflicts refer to the situation where, due to chaotic layer management or improper handling of cross-layer relationships during the drawing update process, problems occur in the associated references of components between different layers.
[0056] Preferably, correction strategies are associated based on the types of index conflict corrections. Specifically, for spatial overlap conflicts, recheck and calibrate the coordinate information of the components, and adjust the positions of the overlapping components according to the scale of the drawing and other accurately annotated components to ensure that each component has a unique and reasonable position in space; for semantic label conflicts, refer to the geometric shape of the component, its connection relationship with other components, and the relevant descriptions in the drawing to determine its accurate function and type, and then update the semantic label; for cross-layer reference conflicts, check the link settings between layers, confirm the existence and correctness of the referenced components in the target layer, and repair or re-establish the cross-layer reference relationship according to the actual design intention; finally, integrate the correction strategies corresponding to each type of index conflict correction to form index conflict type correction rules, which can provide specific and feasible solutions for different types of index conflicts, thereby improving the accuracy and reliability of the drawing space index mapping table.
[0057] Step S500, input a drawing semantic query request, and perform matching indexing on the drawing semantic query request based on the drawing space index mapping table to generate a component query topological path.
[0058] Preferably, the user inputs a drawing semantic query request according to the needs, that is, a query instruction generated based on the semantic information of the drawing (component type, function, location, etc.). Then, the drawing semantic query request input by the user is compared and matched with the indexes in the drawing space index mapping table, including searching and filtering each field in the table. According to the semantic conditions in the query request, it is determined which components meet the requirements, and the logical path from the query request to the components that meet the conditions is determined, that is, the logical path based on the semantic structure and index relationship of the drawing. For example, from the "semantic label" field of the index mapping table, a set of components of the "window" type is found, and then in this set, components located on the first floor are further filtered through the "spatial coordinates" or "location description" field, and graphically represented as a directed graph from the query condition node (such as "windows on the first floor") to the specific component node, where the edges represent the logical steps and relationships of the query, and finally the logical path from the query request to the target component, that is, the component query topological path, is formed to facilitate determining the corresponding component according to the query request.
[0059] Step S600, based on the component query topological path, perform instant positioning and visual feedback in the multi-version target CAD drawings to determine the drawing instant positioning result.
[0060] Preferably, according to the component query topological path, quickly find the target component that meets the query conditions in the multi-version CAD drawings. Specifically, according to the steps indicated by the topological path, search and locate in each version of the CAD drawings. If the topological path indicates that components with specific semantic labels need to be found first, search for the corresponding labels in the relevant data structure of the CAD drawings, and then continue to filter according to the subsequent steps until the specific position of the target component in the current version of the CAD drawings is found; after completing the positioning of the target components in the multi-version CAD drawings, present the positioning result to the user in a visual manner on the graphical interface of the CAD drawings. For example, distinguish the target component from other non-target components with specific colors, line styles, or transparencies, etc., so that the user can intuitively see the position of the query result in the drawing, and at the same time provide the detailed attributes (name, size, material, etc.) of the component to help the user more comprehensively understand the target component; finally, determine the drawing instant positioning result, including the accurate position information of the target components found in the multi-version CAD drawings and the relevant visual display status, which helps to quickly and accurately determine the specific position and relevant information of the components queried by oneself in the CAD drawings.
[0061] In the above text, reference is made to Figure 1 has been described in detail the instant positioning method of CAD drawings based on spatial index analysis according to the embodiments of the present invention. Next, reference will be made to Figure 2Describe a CAD drawing instant positioning device based on spatial index analysis according to an embodiment of the present invention.
[0062] The CAD drawing instant positioning device based on spatial index analysis according to an embodiment of the present invention is used to solve the technical problems existing in the prior art, such as the difficulty in effectively processing complex spatial relationships and semantic information in drawings, the low retrieval efficiency of multi-version CAD drawings, the lack of instantaneity, and inaccurate positioning. It achieves the technical effects of improving the retrieval efficiency of multi-version drawings, the instantaneity of querying, and the positioning accuracy. As Figure 2 shown, the CAD drawing instant positioning device based on spatial index analysis includes: a drawing multi-level splitting unit 10, an associated graph building unit 20, a semantic parsing unit 30, an index mapping table building unit 40, a query topological path generation unit 50, and an instant positioning result determination unit 60.
[0063] The drawing multi-level splitting unit 10 is used to obtain multi-version target CAD drawings, perform multi-level splitting identification on the multi-version target CAD drawings to obtain drawing version information, drawing layer information, and a drawing component set; the associated graph building unit 20 is used to perform associated indexing on the drawing version information, drawing layer information, and drawing component set to build a three-level associated graph of component-layer-drawing; the semantic parsing unit 30 is used to perform semantic parsing and spatial association on each drawing text annotation in the multi-version target CAD drawings to obtain a drawing component spatial semantic label set; the index mapping table building unit 40 is used to embed and associate the drawing component spatial semantic label set into the three-level associated graph of component-layer-drawing to build a drawing spatial index mapping table; the query topological path generation unit 50 is used to input a drawing semantic query request, perform matching indexing on the drawing semantic query request based on the drawing spatial index mapping table, and generate a component query topological path; the instant positioning result determination unit 60 is used to perform instant positioning and visual feedback in the multi-version target CAD drawings based on the component query topological path to determine the drawing instant positioning result.
[0064] Next, the specific configuration of the drawing multi-level splitting unit 10 will be described in detail. The drawing multi-level splitting unit 10 further includes: obtaining a drawing version identification rule, the identification content of the drawing version identification rule including a project number, a drawing type, and a time stamp; performing version classification identification on the multi-version target CAD drawings according to the drawing version identification rule to obtain the drawing version information; presetting a layer classification rule to classify the layers of each version of the drawing in the multi-version target CAD drawings to obtain the drawing layer information; performing component boundary recognition and attribute type extraction on each version of the drawing in the multi-version target CAD drawings to obtain the drawing component set.
[0065] Next, the specific configuration of the associated graph construction unit 20 will be described in detail. The associated graph construction unit 20 further includes: constructing a drawing index coding system, where the coding content of the drawing index coding system includes drawing version, drawing layer, and drawing component; indexing and coding the drawing version information, drawing layer information, and drawing component set based on the drawing index coding system to obtain a drawing version identification code, a drawing layer identification code, and a drawing component identification code; hierarchically associating the drawing version identification code, the drawing layer identification code, and the drawing component identification code to obtain a drawing version-layer-component associated identification code set; and performing reverse traceability indexing based on the drawing version-layer-component associated identification code set to construct the component-layer-drawing three-level associated graph.
[0066] Next, the specific configuration of the semantic parsing unit 30 will be described in detail. The semantic parsing unit 30 further includes: traversing and extracting each drawing annotation information in the multi-version target CAD drawings to obtain a multi-version drawing annotation text set; performing text denoising and word segmentation processing on the multi-version drawing annotation text set according to the drawing application requirement standard to obtain a multi-version drawing annotation word segmentation set; mining and obtaining the drawing professional domain knowledge base of the multi-version target CAD drawings, and performing graph cascading construction on the drawing professional domain knowledge base to obtain a drawing professional knowledge graph; and performing semantic parsing and spatial association on the multi-version drawing annotation word segmentation set based on the drawing professional knowledge graph to obtain a drawing component spatial semantic label set.
[0067] Next, the specific configuration of the semantic parsing unit 30 will be further described in detail. The semantic parsing unit 30 further includes: performing semantic matching on the multi-version drawing annotation word segmentation set based on the drawing professional knowledge graph to obtain a multi-version annotation matching semantic set; if the semantic matching fails, calculating the word vector similarity between the multi-version drawing annotation word segmentation set and the drawing professional knowledge graph, and determining a multi-version annotation similar semantic set according to the calculation result of the word vector similarity; obtaining a multi-version drawing annotation semantic set according to the multi-version annotation matching semantic set and the multi-version annotation similar semantic set; and performing semantic label generation and component spatial association on the multi-version drawing annotation semantic set to obtain a drawing component spatial semantic label set.
[0068] Next, the specific configuration of the semantic parsing unit 30 will be further described in detail. The semantic parsing unit 30 further includes: associating the multi-version drawing annotation semantic set and the drawing component set to obtain a multi-version drawing component semantic set; defining a drawing semantic label template, and using the drawing semantic label template to generate semantic labels for the multi-version drawing component semantic set to obtain a multi-version drawing component semantic label set; performing spatial positioning identification on each component information in the drawing component set to obtain a multi-version drawing component spatial coordinate set; associating and mapping the multi-version drawing component semantic label set and the multi-version drawing component spatial coordinate set to obtain the drawing component spatial semantic label set.
[0069] Next, the specific configuration of the index mapping table construction unit 40 will be described in detail. The index mapping table construction unit 40 further includes: embedding the drawing component spatial semantic label set into the component-layer-drawing three-level association graph for cross-layer association to obtain an initial drawing index mapping table; detecting conflicts in the initial drawing index mapping table to obtain conflict index components; based on the conflict index components, correcting and updating the initial drawing index mapping table to obtain a drawing space index mapping table.
[0070] Next, the specific configuration of the index mapping table construction unit 40 will be further described in detail. The index mapping table construction unit 40 further includes: classifying and identifying the conflict index components to obtain component index conflict types; constructing index conflict type correction rules, and using the index conflict type correction rules to match and correct the component index conflict types to determine component index correction information; based on the component index correction information, updating the initial drawing index mapping table to obtain the drawing space index mapping table.
[0071] Next, the specific configuration of the index mapping table construction unit 40 will be further described in detail. The index mapping table construction unit 40 further includes: obtaining index conflict correction types, where the index conflict correction types include spatial overlap conflicts, semantic label conflicts, and cross-layer reference conflicts; respectively associating and integrating correction strategies based on the index conflict correction types to construct the index conflict type correction rules.
[0072] The CAD drawing instant positioning device based on spatial index analysis provided by the embodiments of the present invention can execute the CAD drawing instant positioning method based on spatial index analysis provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.
[0073] Although this application makes various references to certain modules in the apparatus according to embodiments of this application, however, any number of different modules can be used and run on the user terminal and / or server. The various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are only for the convenience of mutual distinction and are not used to limit the protection scope of the present invention.
[0074] The above specific implementation manners do not constitute a limitation to the protection scope of this application. Those skilled in the art should understand that various modifications, combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principle of this application shall be included within the protection scope of this application.
Claims
1. An instant positioning method for CAD drawings based on spatial index analysis, characterized in that, The method includes: Obtain multi-version target CAD drawings, perform multi-level splitting identification on the multi-version target CAD drawings to obtain drawing version information, drawing layer information, and a drawing component set; Associate and index the drawing version information, drawing layer information, and drawing component set to build a three-level component-layer-drawing association graph; Perform semantic parsing and spatial association on each drawing text annotation in the multi-version target CAD drawings to obtain a drawing component spatial semantic tag set; Embed and associate the drawing component spatial semantic tag set into the three-level component-layer-drawing association graph to construct a drawing spatial index mapping table; Input a drawing semantic query request, perform matching indexing on the drawing semantic query request based on the drawing spatial index mapping table, and generate a component query topological path; Perform real-time positioning and visual feedback in the multi-version target CAD drawings based on the component query topological path to determine the drawing real-time positioning result.
2. The instant positioning method for CAD drawings based on spatial index analysis according to claim 1, characterized in that The obtaining of the drawing version information, drawing layer information, and drawing component set includes: Obtain a drawing version identification rule, and the identification content of the drawing version identification rule includes a project number, a drawing type, and a timestamp; Classify and identify the versions of the multi-version target CAD drawings according to the drawing version identification rule to obtain the drawing version information; Preset a layer classification rule to classify the layers of each version of the drawing in the multi-version target CAD drawings to obtain the drawing layer information; Identify the boundaries of components and extract the attribute types of each version of the drawing in the multi-version target CAD drawings to obtain the drawing component set.
3. The CAD drawing instant positioning method based on spatial index analysis according to claim 1, wherein The building of the three-level component-layer-drawing association graph includes: Build a drawing index coding system, and the coding content of the drawing index coding system includes drawing version, drawing layer, and drawing component; Based on the drawing index coding system, perform index coding on the drawing version information, drawing layer information, and drawing component set to obtain a drawing version identification code, a drawing layer identification code, and a drawing component identification code; Hierarchically associate the drawing version identification code, the drawing layer identification code, and the drawing component identification code to obtain a drawing version-layer-component association identification code set; Perform reverse traceability indexing based on the drawing version-layer-component association identification code set to build the three-level component-layer-drawing association graph.
4. The CAD drawing instant positioning method based on spatial index analysis according to claim 1, wherein The obtaining of the drawing component spatial semantic tag set includes: Traverse and extract each drawing annotation information in the multi-version target CAD drawings to obtain a multi-version drawing annotation text set; Perform text denoising and word segmentation processing on the multi-version drawing annotation text set according to the drawing application requirement standard to obtain a multi-version drawing annotation word segmentation set; Mine and obtain the drawing professional field knowledge base of the multi-version target CAD drawings, and perform graph cascading construction on the drawing professional field knowledge base to obtain a drawing professional knowledge graph; Based on the drawing professional knowledge graph, perform semantic parsing and spatial association on the multi-version drawing annotation word segmentation set to obtain a drawing component spatial semantic tag set.
5. The CAD drawing instant positioning method based on spatial index analysis according to claim 4, wherein The obtaining of the drawing component spatial semantic tag set includes: Semantically match the multi-version drawing annotation tokenization set based on the drawing professional knowledge graph to obtain a multi-version annotation matching semantic set; If the semantic matching fails, calculate the word vector similarity between the multi-version drawing annotation tokenization set and the drawing professional knowledge graph, and determine the multi-version annotation similar semantic set according to the calculation result of the word vector similarity; According to the multi-version annotation matching semantic set and the multi-version annotation similar semantic set, obtain the multi-version drawing annotation semantic set; Perform semantic label generation and component space association on the multi-version drawing annotation semantic set to obtain the drawing component space semantic label set.
6. The CAD drawing instant positioning method based on spatial index analysis according to claim 5, characterized in that The performing semantic label generation and component space association on the multi-version drawing annotation semantic set to obtain the drawing component space semantic label set includes: Associate the multi-version drawing annotation semantic set with the drawing component set to obtain a multi-version drawing component semantic set; Define a drawing semantic label template, and use the drawing semantic label template to perform semantic label generation on the multi-version drawing component semantic set to obtain a multi-version drawing component semantic label set; Perform spatial positioning identification on the component information of each component in the drawing component set to obtain a multi-version drawing component spatial coordinate set; Perform an association mapping on the multi-version drawing component semantic label set and the multi-version drawing component spatial coordinate set to obtain the drawing component space semantic label set.
7. The CAD drawing instant positioning method based on spatial index analysis according to claim 1, wherein The constructing the drawing space index mapping table includes: Embed the drawing component space semantic label set into the component-layer-drawing three-level association graph for cross-layer association to obtain an initial drawing index mapping table; Perform conflict detection on the initial drawing index mapping table to obtain conflict index components; Based on the conflict index components, correct and update the initial drawing index mapping table to obtain the drawing space index mapping table.
8. The instant positioning method for CAD drawings based on spatial index analysis according to claim 7, wherein, The obtaining the drawing space index mapping table includes: Classify and identify the conflict index components to obtain the component index conflict type; Construct an index conflict type correction rule, and use the index conflict type correction rule to match and correct the component index conflict type to determine the component index correction information; Based on the component index correction information, update the initial drawing index mapping table to obtain the drawing space index mapping table.
9. The CAD drawing instant positioning method based on spatial index analysis according to claim 8, wherein The constructing the index conflict type correction rule includes: Obtain the index conflict correction type, and the index conflict correction type includes spatial overlap conflict, semantic label conflict, and cross-layer reference conflict; Based on the index conflict correction type, perform correction strategy association and correction strategy integration respectively to construct the index conflict type correction rule.
10. An instant positioning device for CAD drawings based on spatial index analysis, characterized in that, The device is used to implement the CAD drawing instant positioning method based on spatial index analysis according to any one of claims 1 to 9, and the device includes: A drawing multi-level splitting unit, configured to obtain a multi-version target CAD drawing, perform multi-level splitting identification on the multi-version target CAD drawing to obtain drawing version information, drawing layer information, and a drawing component set; An associated graph construction unit for associating and indexing the drawing version information, drawing layer information, and drawing component set to construct a three-level associated graph of component-layer-drawing; A semantic parsing unit for semantic parsing and spatial association of each drawing text annotation in the multi-version target CAD drawing to obtain a drawing component spatial semantic tag set; An index mapping table construction unit for embedding and associating the drawing component spatial semantic tag set into the three-level associated graph of component-layer-drawing to construct a drawing space index mapping table; A query topology path generation unit for inputting a drawing semantic query request, matching and indexing the drawing semantic query request based on the drawing space index mapping table, and generating a component query topology path; An instant positioning result determination unit for instant positioning and visual feedback in the multi-version target CAD drawing based on the component query topology path to determine the drawing instant positioning result.
Citation Information
Patent Citations
Quick index method and quick index device for classifying large-scale spatial data
CN107391745A
Natural resource data index statistical method and system based on geographic multilevel grid
CN113010620A
Historical version backtracking method for vector layers and pattern spots
CN113486034A
Multi-level multi-thematic spatial data organization and retrieval method and device
CN113792068A
Layer indexing method and device of live-action three-dimensional image and electronic equipment
CN116821385A
Cited By
BIM modeling method and device based on large language model, equipment, medium and product
CN121071999A
BIM modeling method, device, equipment, medium and product based on large language model
CN121071999B
Typical frame-type strander part drawing design query method and system
CN121434263A