Method for extracting ship design structure information by analyzing ship deck DXF drawing
The ship deck DXF drawings are analyzed through the dynamic rule engine, combined with geometric relationships and logical associations, and automatically extracted ship design structure information and generated structured data, solving the problem of insufficient identification and integration capabilities of complex structure information in the existing technology, and achieving efficient and accurate design information extraction and data generation.
Patent Information
- Application Number
- CN202510211459.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-25
- Publication Date
- 2025-05-27
AI Technical Summary
The prior art is difficult to effectively analyze the complex structural information in the ship deck DXF drawings, especially the lack of identification and integration capabilities for geometric and logical relationships unique to ship design, resulting in incomplete extraction of design information and inefficient efficiency.
Through a dynamic rule engine combined with standardized methods, the basic elements and complex nested elements in the ship deck DXF drawings are analyzed, and geometric relationships are used to automatically extract and judge ship design structure information, and structured data are generated.
It realizes the automated extraction and classification of ship design structure information, improves analysis efficiency and accuracy, and the generated structured data supports efficient digitalization of subsequent design and manufacturing processes.
Smart Images

Figure CN120046245A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of ship design, and particularly to a method for extracting ship design structure information by parsing DXF drawings of ship decks. Background Art
[0002] Ship design is a highly complex and specialized engineering field, and its deck design usually contains rich geometric information and industry-specific annotation rules. These design information are usually stored in the DXF (Drawing Exchange Format) file format. The DXF format has strong versatility and can carry various geometric shapes, text annotations, and dimension information. However, due to the unique industry specifications involved in ship design, traditional DXF parsing methods are difficult to meet the specific requirements of the ship design field.
[0003] Currently, conventional tools for parsing DXF drawings focus more on the fields of architectural design or mechanical design, mainly for extracting geometric information of basic graphic elements (such as lines, circles, polylines, etc.). These methods usually lack the ability to identify the unique structure information in ship deck design (such as section lines, deck plate seams, watertight bulkheads, manhole markings, etc.). Especially in ship design, there are complex geometric relationships and logical associations between different graphic elements. For example, the position matching between section lines and plate seams, and the association between dimension annotations and manholes. These characteristics pose higher requirements on existing methods.
[0004] In addition, existing parsing methods are difficult to automatically associate and integrate complex nested graphic elements (such as blocks or annotations) in the drawing with basic graphic elements, resulting in the inability to efficiently extract complete ship design structure information. This limitation not only increases the workload of manual processing but also may reduce the accuracy of information extraction, thus affecting the efficiency of subsequent design and manufacturing processes.
[0005] Therefore, there is an urgent need for a method that can automatically extract ship design structure information and generate structured data for ship deck DXF drawings of basic and complex graphic elements, combined with geometric relationships and logical associations, through a dynamic rule engine, to support the efficient digital processes of ship design and manufacturing. Summary of the Invention
[0006] The present invention provides a method for extracting ship design structure information by parsing DXF drawings of ship decks, to solve the problem of how to parse basic and complex graphic elements in DXF drawings of ship decks, utilize geometric relationships and logical associations, combine a dynamic rule engine and a standardization method, automatically extract and determine ship design structure information, and generate structured data to support subsequent design and manufacturing processes.
[0007] To solve the above technical problems, the present invention provides a method for extracting ship design structure information by parsing the DXF drawing of the ship deck, including:
[0008] Read the DXF drawing file of the ship deck, parse the basic primitive information in the file, extract the geometric attributes and classification information of the primitives, and generate a basic primitive data set;
[0009] Based on the basic primitive data set, parse the complex nested primitives in the DXF drawing, extract the enhanced features of the complex primitives, and generate a complex primitive feature set through the virtual entity generation method;
[0010] Based on the basic primitive data set and the complex primitive feature set, combined with the ship design specifications, make a determination through a dynamic rule engine to generate corresponding ship design structure information;
[0011] Utilize the geometric relationship and logical relevance between the primitives to construct a ship design structure model and generate structure model data;
[0012] Perform format conversion and standardization processing on the structure model data, output it in a structured data format, and perform consistency verification on the generated structured data to feedback and optimize the determination logic of the rule engine.
[0013] Further, the parsing of the basic primitive information includes the following steps:
[0014] Parse the line, circle, polyline, and text information in the DXF drawing file and extract their geometric attributes;
[0015] Classify and organize the primitives according to the type and the layer to which they belong;
[0016] Perform geometric attribute processing on the classified primitives to generate a standardized basic primitive data set.
[0017] Further, the parsing of the complex nested primitives includes the following steps:
[0018] Based on the basic primitive data set, identify the complex nested primitives in the DXF drawing, including Insert and Dimension primitives;
[0019] Parse the geometric relationship of the basic primitives in the complex nested primitives and extract their enhanced features;
[0020] Through the virtual entity generation method, combine the feature information of the complex nested primitives with the basic primitive attributes to generate a complex primitive feature set.
[0021] Further, the determination steps of the dynamic rule engine include:
[0022] Based on the basic primitive dataset and the complex primitive feature set, match the ship design specifications through a dynamic rule engine to make a preliminary determination for each primitive;
[0023] According to the preliminary determination results, further determine the specific design structures of the sectional lines, deck plate seams, watertight bulkheads, and manholes;
[0024] Classify the determined ship design structure information according to primitive types and structure categories to generate a corresponding ship design structure dataset.
[0025] Furthermore, the steps for constructing the ship design structure model include the following:
[0026] Based on the ship design structure information, analyze the geometric relationships between primitives and establish logical associations between primitives;
[0027] Extract key structure features from the geometric relationships and logical associations to generate a complete ship design structure model;
[0028] Organize the data of the ship design structure model to generate standard-compliant structure model data.
[0029] Furthermore, the steps for format conversion and standardization processing of the structure model data include the following:
[0030] Parse the primitive types, geometric attributes, and logical associations in the ship design structure model;
[0031] Convert the data into JSON, XML, table format, or a custom intermediate format to generate standardized structured data;
[0032] Perform redundancy cleaning and data completion on the structured data.
[0033] Furthermore, the consistency verification steps include the following:
[0034] Verify the geometric attributes in the structured data, including the correctness of coordinates, dimensions, and positions;
[0035] Verify whether the logical associations between primitives comply with the ship design specifications;
[0036] Check whether the structured data matches the predefined standard output format.
[0037] Furthermore, the steps for feedback to optimize the determination logic of the rule engine include the following:
[0038] Collect the feedback information from the consistency verification and analyze the accuracy of the determination rules;
[0039] Adjust the rule priorities in the rule engine and update the judgment parameters according to the feedback results;
[0040] After optimizing the rule engine, reapply it to the judgment of the ship design structure information.
[0041] Further, the virtual entity generation method includes the following:
[0042] Extract the enhanced features of the complex nested primitive and the geometric attributes of the basic primitive;
[0043] Combine the geometric attributes and enhanced features into virtual entities according to predefined rules;
[0044] Generate a set of virtual entities including geometric relationships, logical associations, and design specification markings.
[0045] Further, the dynamic rule engine realizes the judgment of the following primitives by combining multiple design specifications:
[0046] The length, direction, and associated structure of the sectional line;
[0047] The arrangement and nesting relationship of the marking symbols in the deck plate seam;
[0048] The size of the manhole and its associated position with the marked text.
[0049] The key innovations of the present invention include:
[0050] (1) The intelligent application of the dynamic rule engine. Innovatively adopt the dynamic rule engine to match the ship design specifications, and achieve efficient adaptation to diverse design scenarios through rule priority adjustment and parameter update.
[0051] (2) The virtual entity generation method for complex nested primitives. Propose a virtual entity generation method, combine the feature information of complex nested primitives with the attributes of basic primitives, and generate an enhanced feature set to provide accurate data support for the judgment of ship design structures.
[0052] (3) The joint analysis of geometric relationships and logical associations. Through the joint analysis of geometric relationships and logical associations, a complete ship design structure model is constructed, solving the problem of difficult multi-primitive association judgment.
[0053] The following are its main beneficial effects:
[0054] (1) Efficiently parse basic and complex primitive information. By classifying and parsing basic primitives (such as lines, circles, texts, etc.) and complex nested primitives (such as Insert, Dimension) in DXF drawings and extracting geometric attributes, a comprehensive understanding of the data of ship deck design drawings is achieved. Compared with the traditional manual processing method, the parsing efficiency and accuracy are significantly improved.
[0055] (2) Intelligent determination of the dynamic rule engine. By combining the dynamic rule engine to match and determine the basic primitive data set and complex primitive feature set, the automatic extraction and classification of ship design structure information are ensured. Compared with the static rule method, the dynamic rule engine has flexibility and can adjust the rule logic in real time according to different design specifications, improving the applicability in complex design scenarios.
[0056] (3) Precise modeling of logical associations and geometric relationships. Through the analysis of geometric relationships and logical associations between primitives, a complete ship design structure model is constructed in the present invention. This model provides a detailed description of key design structures such as sectional lines, deck seams, watertight bulkheads, and manholes, providing standardized structural data support for subsequent shipbuilding. Description of the Drawings
[0057] Figure 1 It is a schematic flowchart of a method for extracting ship design structure information by parsing ship deck DXF drawings provided by an embodiment of the present application. Detailed Embodiments
[0058] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs; the terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above description of the drawings are intended to cover non-exclusive inclusion. The terms "first", "second", etc. in the specification and claims of this application or the above drawings are used to distinguish different objects and not to describe a specific order.
[0059] Reference to "embodiment" herein means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of this application. The phrase appears in various places in the specification and does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.
[0060] Embodiment 1: Refer to Figure 1, is a schematic flowchart of a method for extracting ship design structure information by parsing ship deck DXF drawings provided by an embodiment of the present invention. This process can at least include steps S100 - S500:
[0061] S100. Obtain the ship deck DXF drawing and parse the basic primitive information therein, extract the geometric attributes and classification information of the primitives, and generate a basic primitive data set;
[0062] S200. Based on the basic primitive data set, parse the complex nested primitives in the DXF drawing, extract the enhanced features of the complex primitives, and generate a complex primitive feature set through a virtual entity generation method;
[0063] S300. Based on the basic primitive data set and the complex primitive feature set, combine the design specifications, and make a determination through a dynamic rule engine to generate corresponding ship design structure information;
[0064] S400. According to the ship design structure information, utilize the geometric relationship and logical relevance between primitives to construct a ship design structure model and generate structure model data;
[0065] S500. Standardize the structure model data and output it in a structured data format, and at the same time perform consistency verification on the generated structured data to feedback and optimize the determination logic of the rule engine.
[0066] Step S100 at least includes steps S110 - S130:
[0067] S110: Read the input ship deck DXF drawing file, parse the basic primitive information in the file, and extract its geometric attributes and primitive types.
[0068] Specifically, the S110 module receives the DXF drawing file of the ship deck design as input, and this file stores the ship deck design information in the industry - common DXF format. This file usually contains rich design data, including but not limited to basic primitive information such as lines (Line), polylines (Polyline), circles (Circle), arcs (Arc), and texts (Text).
[0069] Furthermore, read the content of the input DXF file, and parse the blocks (Block) and the entities (Entity) contained therein through a parsing tool. The parsing tool can identify information such as layers (Layer), primitive types, and primitive geometric attributes (such as start point, end point, radius, angle) in the DXF file.
[0070] For example, for a DXF file containing segmented lines and deck contour lines, extract the start coordinates (x 1 , y1 )), end coordinates (x 2 , y 2 ), line type, and the layer it belongs to (Layer).
[0071] For a circle (Circle), extract geometric information such as the center coordinates (x, y), radius r, and the layer it belongs to.
[0072] Furthermore, based on the parsed information, identify and record the type and attributes of each primitive. For example:
[0073] Primitive type: Identify the primitive as Line, Polyline, Circle, Arc, Text, etc.
[0074] Geometric attributes: Extract data such as the start and end points of a line, the set of vertices of a polyline, the center and radius of a circle, the text content and position, etc.
[0075] Layer information: Record the layer name (Layer Name) where the primitive is located, providing a basis for subsequent classification and processing.
[0076] Furthermore, store the parsed primitive type, geometric attributes, and layer information as a preliminary set of basic primitive information. Each primitive is recorded as an independent data item, and the data structure includes the primitive type, coordinate information, and geometric features. This set will be used as the input data for the subsequent classification step.
[0077] S120: Classify from the parsed primitive information, sort different types of primitives, and generate a preliminary set of classified primitives.
[0078] In S120, based on the set of basic primitive information generated by the S110 module, classify and sort the extracted primitives to provide a clear grouping of primitives for subsequent processing.
[0079] First, according to the primitive type information recorded by the S110 module, classify basic primitives such as lines (Line), polylines (Polyline), circles (Circle), arcs (Arc), texts (Text), etc. by type.
[0080] For example, lines (Line) and polylines (Polyline) may be classified as line segments; circles (Circle) and arcs (Arc) are classified as circular shapes; texts (Text) are classified separately as text.
[0081] After classification, the data set of each type of primitive is stored as a separate subset for subsequent geometric processing.
[0082] Furthermore, use the layer information of the primitive to further subdivide each type of primitive. For example:
[0083] In the design drawings, the deck outline lines may be concentrated in the layer named "DeckOutline", while the sectional lines may be in the layer named "SectionLines".
[0084] Based on the layer names, the graphic elements belonging to different design contents are classified into corresponding groups, thus generating a preliminary set of classified graphic elements.
[0085] Furthermore, the classified graphic elements are stored in a standardized data format to generate a preliminary set of classified graphic elements and provide input for subsequent modules. The structure of this set includes graphic element types, geometric attributes, and classification labels (such as the belonging layer or design content).
[0086] S130: Process the geometric attributes of the preliminary set of classified graphic elements to generate a standardized basic graphic element data set.
[0087] The S130 module receives the preliminary set of classified graphic elements generated by the S120 module and further processes the geometric attributes of the graphic element set to generate a standardized basic graphic element data set that meets the design specifications.
[0088] First, for each type of graphic element, according to the industry specifications of ship design, standardize its geometric attributes:
[0089] Line: Calculate geometric characteristics such as the length of the line segment and the direction vector, and store the starting point, ending point, and length information in a standardized manner;
[0090] Polyline: Check whether it is closed and calculate the lengths of all line segments between vertices and the area of the overall shape;
[0091] Circle: Correct the center coordinates and radius, and record its area and perimeter;
[0092] Text: Extract the annotation content and store the position in a standardized manner.
[0093] Furthermore, perform data verification on the classified graphic elements to check whether the geometric attributes are complete and comply with the specifications. For example:
[0094] For an unclosed polyline, mark its status as "unclosed" and complete its missing vertex information;
[0095] Correct or mark abnormal radius data of the circle (such as negative values or missing values).
[0096] Furthermore, integrate the data set that has been geometrically standardized and verified into a standardized basic primitive data set. This data set includes complete geometric information, classification labels, and related primitive markers (such as whether it is closed or abnormal). This data set will be used as the input data for subsequent modules (such as S200 complex primitive parsing).
[0097] Inter-module correlation: The correlation between S110 and S120: The set of basic primitive information extracted by the S110 module is directly used as the input data for the classification and sorting by the S120 module. The classification of primitive types and layers by S120 depends on the basic information parsed by S110.
[0098] The correlation between S120 and S130: The preliminary set of classified primitives generated by S120 is the basic data source for the geometric property processing by S130. Based on this, S130 standardizes the geometric properties to ensure the integrity and consistency of the data.
[0099] Impact on subsequent modules: The standardized basic primitive data set generated by S130 is an important input when the subsequent S200 module processes complex nested primitives, directly affecting the generation of the complex primitive feature set.
[0100] Step S200 includes at least steps S210 - S230:
[0101] S210: Based on the basic primitive data set, identify complex nested primitives in the DXF drawing, and extract the basic primitives and related attributes it contains.
[0102] The S210 module parses the complex nested primitives in the DXF drawing based on the standardized basic primitive data set generated by the S130 module, and extracts the basic composition and related attributes of the complex primitives.
[0103] Specifically, read all primitive information from the standardized basic primitive data set generated by the S130 module, including types (such as Line, Polyline, Circle, Text, etc.), geometric properties (such as coordinates, radius, length, etc.), and classification information (such as layer name and annotation content).
[0104] For example, for a DXF drawing, the basic primitive information it contains may include the deck contour line represented by a polyline, the section line represented by a line, and text for dimension annotation.
[0105] Furthermore, from the basic primitive data set, identify complex nested primitives in the DXF drawing by parsing the nested and combined relationships between primitives.
[0106] Complex nested graphic elements include Insert (inserted drawing blocks) and Dimension (dimensioning), etc.
[0107] Graphic elements of Insert type: By analyzing the drawing block name and the entities it contains, identify whether it is a specific identifier of the ship structure (such as seam lines, marks on section lines).
[0108] Graphic elements of Dimension type: By parsing its associated geometric properties and the graphic elements it points to, identify the dimensions and positions it annotates.
[0109] Furthermore, for each complex nested graphic element, extract the basic graphic elements and related attributes it contains, including:
[0110] The type and geometric information of the associated graphic elements;
[0111] The drawing block name (Block Name) and the layer name (Layer Name) it belongs to;
[0112] The hierarchical structure and reference relationship of the nested graphic elements.
[0113] For example, for a drawing block (Insert) representing a mark on a section line, the basic graphic elements it contains may include a straight line and three parallel short oblique lines. Extract the information of these basic graphic elements and record their relative positions and combination relationships.
[0114] S220: Analyze the geometric relationships of the complex nested graphic elements, extract their enhanced features, and generate complex graphic element features.
[0115] The S220 module receives the complex nested graphic elements output by the S210 module and the information of the basic graphic elements they contain, further analyzes the geometric relationships of the complex nested graphic elements, and extracts enhanced features.
[0116] Specifically, analyze the geometric relationships of the basic graphic elements in the complex nested graphic elements, identify their geometric structure characteristics and logical relationships, including:
[0117] Spatial position relationship: Such as the relative position and distance between basic graphic elements.
[0118] Combination characteristics: Such as whether line segments are parallel, intersect, and whether they form a specific identification pattern (such as a specific symbol on a section line).
[0119] Dimension information: For graphic elements of Dimension type, parse the dimension values it annotates and the corresponding geometric features.
[0120] Furthermore, based on the results of the geometric relationship analysis, extract the enhanced features of the complex nested graphic elements, including:
[0121] Geometric characteristic features: Such as shape, direction, size, etc.
[0122] Logical association features: such as the relationship between dimension markings and associated basic graphic elements, and the combination rules among elements within a graphic block.
[0123] Layer features: Combine the layer information of complex nested graphic elements and extract their associations with design specifications.
[0124] For example, for a marker graphic block representing a segmented line, its enhanced features may include: the type of marker symbol, the accuracy of dimension markings, the distance between the straight line and the marker symbol, etc.
[0125] Integrate the extracted enhanced features to generate a feature data structure for each complex nested graphic element, including its geometric attributes, enhanced features, and logical association information.
[0126] This feature data structure will be used as the input for the subsequent S230 module to generate virtual entities.
[0127] For example, the features of a complex graphic element may include: associated graphic element types (straight line, marker symbol), positional relationships, layer names, and attributes related to design specifications.
[0128] S230: Through the virtual entity generation method, combine the feature information of complex nested graphic elements with the basic graphic element attributes to generate a set of complex graphic element features.
[0129] Based on the complex graphic element feature data structure generated by the S220 module, the S230 module uses the virtual entity generation method to combine the feature information with the basic graphic element attributes to generate a set of complex graphic element features.
[0130] First, extract the enhanced feature information from the complex graphic element feature data structure generated by the S220 module and integrate it with the geometric attributes of the basic graphic elements:
[0131] Store the geometric attributes of the basic graphic elements (such as position and size) and the enhanced features (such as geometric relationships and logical associations) together as the basic unit of the virtual entity;
[0132] For example, for a marker graphic block, its basic graphic element attributes include the start and end points of the straight line, and the enhanced features include the relative position and direction between the straight line and the marker symbol.
[0133] Furthermore, based on the integrated feature data, according to the virtual entity generation rules, combine the basic attributes and feature information of the complex nested graphic elements into virtual entities.
[0134] Each virtual entity contains complete geometric, logical, and attribute information and can represent all the key characteristics of complex nested graphic elements.
[0135] For example, a virtual entity may include: the linear attribute representing the segmented line, the geometric relationship of the marking symbol, and the layer to which it belongs.
[0136] Furthermore, all virtual entities are integrated to generate a set of complex primitive features. This set is the total set of feature data for all complex nested primitives, including the geometry, enhanced features, and logical association information of the primitives.
[0137] This feature set will be used as the input for subsequent modules (such as the S300 rule engine determination) to provide a basis for the determination of the ship design structure.
[0138] Inter-module relevance: Relevance between S210 and S220: The basic primitive information of the complex nested primitives extracted by the S210 module is directly used as the input data for the geometric relationship analysis of the S220 module. S220 further extracts enhanced features using the analysis results of S210.
[0139] Relevance between S220 and S230: The complex primitive feature data structure generated by the S220 module is directly used as the basis for generating virtual entities in the S230 module. S230 integrates these features into virtual entities and generates a feature set.
[0140] Impact on subsequent modules: The complex primitive feature set generated by S230 is the core input for the S300 rule engine determination, directly affecting the determination accuracy and efficiency of the ship design structure.
[0141] Step S300 at least includes steps S310 - S330:
[0142] S310: Based on the basic primitive data set and the complex primitive feature set, use a dynamic rule engine to match the ship design specifications and make a preliminary determination for each primitive.
[0143] The S310 module receives the standardized basic primitive data set generated by the S130 module and the complex primitive feature set generated by the S230 module, and uses a dynamic rule engine to match the ship design specifications and make a preliminary determination for each primitive.
[0144] Specifically, according to the ship design specifications and industry standards, load the determination rules in the dynamic rule engine. The rule engine includes:
[0145] Basic rules: Used to identify the uses and types of basic primitives. For example, whether a straight line is a segmented line, and whether a circle is a structural feature of a deck manhole.
[0146] Complex rules: Used to match specific structures in the complex primitive feature set. For example, whether the arrangement of certain specific markings conforms to the seam markings specified in the design specifications.
[0147] Further, read the geometric attributes (such as start point, end point, line type, dimensions) and classification information of each primitive from the basic primitive dataset, and read the enhanced features (such as association relationships, logical characteristics) from the complex primitive feature set. Input these primitive data into the dynamic rule engine and match them item by item with the predefined rules:
[0148] For example, after the line primitive (Line) is input into the rule engine, it is initially determined whether it is a segmented line based on its length, layer name, and the attributes of adjacent primitives.
[0149] For the Dimension primitive, it is determined whether it belongs to the dimension annotation in the design specification based on the annotated dimension value, the geometric entity it points to, and the layer information.
[0150] Further, record the determination result after rule matching as the preliminary determination information. The preliminary determination result of each primitive includes the type, usage, and the structure type mark that conforms to the design specification (such as "segmented line", "deck plate seam", "watertight bulkhead mark").
[0151] The preliminary determination result will be used as the input for further determination by the S320 module.
[0152] S320: From the primitives with preliminary determination, further determine the specific design structures of segmented lines, deck plate seams, watertight bulkheads, and manholes according to the rules of the design specification.
[0153] Based on the preliminary determination information generated by the S310 module, the S320 module further combines the detailed rules in the design specification to make a refined determination of the usage and specific design structure of the primitives.
[0154] First, from the preliminary determination results generated by the S310 module, screen out the primitives that may belong to the key structures of ship design, including:
[0155] The line primitive initially determined as a "segmented line";
[0156] The polyline primitive initially determined as a "deck plate seam";
[0157] The combination of a line and a dashed line initially determined as a "watertight bulkhead mark";
[0158] The circular primitive and related text annotations initially determined as a "manhole".
[0159] Further, for the screened-out primitives, perform a secondary match using the detailed rules in the rule engine:
[0160] For the segmented line, check its line type, position, and associated dimension annotations to determine whether it meets the specification requirements of ship sectional design;
[0161] For the deck plate seams, analyze whether the vertex coordinates of the polyline form a specific plate seam shape and check the associated marking symbols;
[0162] For the watertight bulkhead markings, verify whether the combined relationship between the straight lines and the dashed lines complies with the design specifications;
[0163] For the manholes, combine the radius of the circular primitive and the associated text annotation to determine whether it meets the dimensional requirements of the manhole design.
[0164] Furthermore, record the secondary matching results of each primitive as specific design structure determination information, including:
[0165] The structure type to which the primitive belongs (such as "main deck section line", "watertight bulkhead marking", "circular manhole");
[0166] The matching results of the design specifications (such as whether it meets the standard dimensions and whether it satisfies the structural layout requirements).
[0167] This information will serve as the basic data for the S330 module to generate the structural data set.
[0168] S330: Generate the corresponding ship design structure data set according to the primitive type and structure classification for the determined ship design structure information.
[0169] The S330 module receives the specific design structure determination information generated by the S320 module and generates the ship design structure data set according to the primitive type and structure classification.
[0170] First, from the determination information output by the S320 module, integrate and classify according to the primitive type and structural use:
[0171] Section line: Record the starting point, ending point, line type, dimension annotation, etc. of each section line, and classify it as the main deck section line or the secondary section line according to the location;
[0172] Plate seam: Record the shape, marking symbol and position attributes of the polyline;
[0173] Watertight bulkhead: Integrate the combined information of the straight lines and the dashed lines, and record its location and annotation content;
[0174] Manhole: Record the radius, position and associated text annotation information of the circular primitive.
[0175] Furthermore, store the integrated classification information as the ship design structure data set. The structure of the data set includes:
[0176] Primitive type;
[0177] Geometric attributes;
[0178] The design structure type to which it belongs;
[0179] Matching results of the design specifications;
[0180] This data set provides input for subsequent modules (such as modeling and output processing).
[0181] Furthermore, perform a consistency check on the generated data set, including:
[0182] Matching of graphic elements and determination structure types;
[0183] Integrity of geometric attributes;
[0184] Whether it meets the classification requirements of the design specifications.
[0185] After passing the check, store the data set in a standardized output format.
[0186] Inter-module correlation: Correlation between S310 and S320: The preliminary determination information output by the S310 module is the basic data source for the screening and detailed determination of the S320 module. S320 refines and verifies the preliminary results of S310.
[0187] Correlation between S320 and S330: The specific design structure information generated by the S320 module is directly input into the S330 module to generate a classified ship design structure data set.
[0188] Impact on subsequent modules: The structure data set generated by S330 provides key input for subsequent modules (such as modeling, output, and optimization) to ensure the integrity and consistency of design information.
[0189] Step S400 includes at least steps S410 - S430:
[0190] S410: Based on the ship design structure information, analyze the geometric relationships between graphic elements and establish logical associations between graphic elements.
[0191] The S410 module receives the ship design structure data set generated by the S330 module, analyzes the geometric relationships between graphic elements based on the geometric features and spatial distributions of the graphic elements, and establishes logical associations.
[0192] Specifically, extract the geometric information (such as position, size, direction, etc.) of each graphic element and the structure type markers (such as section lines, seam lines, manholes) from the ship design structure data set. Analyze the geometric relationships between graphic elements to identify the following features:
[0193] Adjacent relationship: Determine whether there is an adjacent or connection relationship between a straight line and a straight line, a polyline and a polyline, a circle and a straight line;
[0194] Intersection relationship: Analyze whether the straight lines intersect, calculate the position of the intersection point and its geometric association with other graphic elements;
[0195] Containment relationship: Determine whether a circular graphic element (such as a manhole) is located within a specific rectangular area (such as within a deck section area).
[0196] Furthermore, according to the design specifications and geometric relationships, establish the logical associations between graphic elements, including:
[0197] Section line and deck seam: Identify whether they are within the same design area and analyze their relative positional relationship;
[0198] Manhole and annotation text: Match it with the relevant text annotation according to the position and size of the circular graphic element;
[0199] Seam and marking symbol: Identify whether the seam contains specific marking symbols (such as a group of short slashes).
[0200] Record the obtained geometric relationships and logical associations as a relationship table. Each record includes the geometric relationship, logical association type, and relevant parameters (such as distance, angle, contained mark, etc.) between two or more graphic elements.
[0201] For example, record the distance relationship between a section line and an adjacent seam, and the matching result between a manhole and the annotation text.
[0202] S420: Extract the key structural features from the geometric relationships and logical associations to generate a complete ship design structure model.
[0203] The S420 module uses the geometric and logical relationship table generated by the S410 module, extracts the key structural features from it, and generates a complete ship design structure model.
[0204] First, screen the key structural features that match the ship design specifications from the geometric and logical relationship table, specifically including:
[0205] Section structure features: Extract the length of the section line, the positional relationship of adjacent seams, and the connection points with other structures;
[0206] Manhole features: Extract the radius of the circular graphic element and its associated annotation content, and verify whether it meets the size requirements of the manhole design;
[0207] Marking symbol features: Extract the type of marking symbols contained in the seam and their arrangement rules, and analyze whether they meet the specification requirements.
[0208] Furthermore, according to the extracted key structural features, combine each graphic element and its logical association into a complete ship design structure model, specifically including:
[0209] Area division: Based on the positional relationship between the segmentation line and the plate seam, the deck is divided into multiple segmentation areas;
[0210] Structural combination: Combine the associated structures such as plate seams, manholes and marking symbols in each segment area into an overall model unit;
[0211] Overall model construction: All unit models are combined according to the overall layout of the deck design to generate a complete ship design structure model.
[0212] Furthermore, the constructed ship design structure model is internally verified for consistency, checking:
[0213] Whether each segmented area completely covers the design scope;
[0214] Whether the logical association between graphics elements meets the requirements of the specification;
[0215] Whether there are repeated or missing structural elements.
[0216] S430: sorting the data of the ship design structure model to generate structure model data that meets the standards.
[0217] The S430 module performs data collation and standardization based on the ship design structure model generated by the S420 module to generate structural model data that meets the design requirements.
[0218] First, organize and optimize the data in the ship design structure model:
[0219] De-redundancy processing: remove repeated or redundant primitive information to ensure that each structural element is unique;
[0220] Data completion: Completing missing geometric attributes or annotation information, such as filling in missing marker symbols or completing dimension annotations;
[0221] Structural optimization: Adjust the geometric relationships in the model that do not meet the specifications, such as correcting the length of the segmentation line or adjusting the alignment of the plate seam.
[0222] Furthermore, according to the industry design standards and output format requirements, the data of the ship design structure model is stored in a standardized format, including:
[0223] JSON format: used for data exchange and storage;
[0224] Tabular format: used to generate design reports or directly input into manufacturing systems;
[0225] Database format: used for long-term storage and retrieval.
[0226] The data structure of each format includes: primitive type, geometric attributes, logical associations, and design structure type tags.
[0227] Further, perform a consistency check on the generated standardized data to ensure that:
[0228] The data content corresponds exactly to the structure model;
[0229] All structure types match the design specifications;
[0230] The output format meets the requirements of the application scenario.
[0231] After passing the check, export the structure model data in a specified format and store it in a database or a design management system.
[0232] Inter-module correlation: The correlation between S410 and S420: The geometric and logical relationship table generated by the S410 module provides basic data for the S420 module to extract key structure features. S420 uses this data to construct a complete ship design structure model.
[0233] The correlation between S420 and S430: The structure model generated by the S420 module is the core input for the S430 module to sort and standardize. S430 optimizes and outputs the model data.
[0234] Impact on subsequent modules: The standardized structure model data generated by S430 is the core input for subsequent manufacturing and analysis processes, ensuring the efficiency and consistency of the entire design process.
[0235] Step S500 includes at least steps S510 - S530:
[0236] S510: Perform format conversion and standardization processing on the structure model data to generate structured data.
[0237] The S510 module receives the ship design structure model data generated by the S430 module, and performs format conversion and standardization processing on the data according to industry specifications and output requirements to generate structured data.
[0238] Specifically, read the geometric attributes, logical associations, and design structure type information of each graphic element from the ship design structure model generated by the S430 module. Parse and convert this data according to a predefined format:
[0239] Standardization of geometric attributes: For example, uniformly convert the start and end coordinates of a sectional line to the global coordinate system; record the radius and position information of a circular manhole according to the standardized unit;
[0240] Expression of logical associations: Convert the association between a sectional line and a plate seam, and the arrangement relationship of marking symbols in the plate seam into a hierarchical structure representation;
[0241] Format Unification: Generate a nested data structure in JSON format or a tabular dataset (such as an Excel or SQL table) according to the output requirements.
[0242] Furthermore, verify the data to check for missing or redundant information:
[0243] Data Completion: For example, if the type information of certain plate seams is missing, fill it with default values; for cases where the length or direction of the sectional line is not recorded, recalculate and add it.
[0244] Redundancy Cleaning: Remove duplicate graphic elements or annotation information to ensure data uniqueness.
[0245] Furthermore, integrate the ship design structure information that has undergone format conversion and standardization processing into a structured dataset, ensuring that each record includes the following:
[0246] Graphic Element Type (such as sectional line, plate seam, manhole);
[0247] Geometric Attributes (such as length, radius, coordinates);
[0248] Logical Association (such as the relationship between adjacent graphic elements);
[0249] Belonging Structure Type (such as main deck sectional line, watertight bulkhead marking).
[0250] This dataset will be used as the input for the S520 module's consistency verification.
[0251] S520: Verify the consistency of the structured data.
[0252] The S520 module verifies the integrity, consistency, and compliance of the data based on the structured dataset generated by the S510 module.
[0253] Furthermore, specifically, verify the geometric attributes of each record to check if they meet the requirements of the ship design specifications:
[0254] Dimension Verification: For example, verify if the length of the sectional line is within the specified range; check if the radius of the circular manhole complies with the specifications;
[0255] Coordinate Verification: Check if the starting and ending coordinates of the sectional line and adjacent plate seams are correctly connected; verify if the center coordinates of the manhole are within the specified deck area.
[0256] Furthermore, based on the logical association information in the structured data, verify if the relationships between graphic elements are correct:
[0257] Association correctness: For example, check whether the association between the segmentation lines and the plate seams meets the design requirements; verify whether the marking symbols are correctly nested in the plate seams;
[0258] Area coverage verification: Check whether all segmented areas completely cover the deck design scope and whether there are any missing or overlapping area divisions.
[0259] Furthermore, in accordance with the ship design industry standards, conduct compliance verification on the generated data format and content:
[0260] Check whether the data fields are complete and whether they meet the requirements of the predefined output format;
[0261] Confirm whether the data units, field names, etc. are consistent with the industry specifications.
[0262] After the verification passes, transfer the results to the S530 module; if the verification fails, record the error information and return to the S510 module for correction.
[0263] S530: According to the consistency verification results, feedback and optimize the decision-making logic of the rules engine, and adjust the rule priorities and parameter settings.
[0264] The S530 module receives the consistency verification results generated by the S520 module and optimizes the decision-making logic of the rules engine based on the verification feedback.
[0265] First, collect the results of the consistency verification, including the records of passing and failing the verification. Analyze the failing records to identify the reasons for data inconsistency:
[0266] For example, the incorrect association relationship between some segmentation lines and plate seams may be due to the decision-making logic of the rules engine not fully considering some abnormal situations;
[0267] Missing or incorrect data may be due to inaccurate parameter settings of the rules engine.
[0268] Furthermore, according to the verification feedback, optimize the decision-making logic of the dynamic rules engine, including:
[0269] Adjust the rule priorities: Increase the decision-making priorities for common design structures and decrease the priorities for rare or secondary structures;
[0270] Expand the decision-making rules: Add handling rules for abnormal situations to the rules engine, for example, allowing the marking symbols to deviate from the center of the plate seam within a certain range and still be considered valid.
[0271] Furthermore, update the parameters of the rules engine according to the feedback results:
[0272] For example, readjust the dimensional tolerance range; correct the default value settings; optimize the geometric parameters (such as line length, angle range, etc.) in the determination rules.
[0273] The updated rule engine will be applied to the next round of data processing, forming a closed-loop feedback mechanism to improve the accuracy and consistency of subsequent processing.
[0274] Inter-module correlation: The correlation between S510 and S520: The structured data generated by the S510 module is the input for the consistency verification of the S520 module. S520 uses the data of S510 for verification and returns error messages for correction.
[0275] The correlation between S520 and S530: The verification result of the S520 module directly affects the optimization of the rule engine of the S530 module. S530 adjusts the logic and parameters of the rule engine by analyzing the verification feedback.
[0276] Impact on the front and rear modules: The optimized rule engine logic will be used in the S300 module to improve the accuracy and efficiency of the design structure determination, while ensuring high consistency of data output.
[0277] The key innovations of the present invention include:
[0278] (1) Intelligent application of the dynamic rule engine. Innovatively adopt the dynamic rule engine to match the ship design specifications, and achieve efficient adaptation to diverse design scenarios through rule priority adjustment and parameter update.
[0279] (2) Method for generating virtual entities of complex nested primitives. Propose a method for generating virtual entities, combine the feature information of complex nested primitives with the attributes of basic primitives to generate an enhanced feature set, and provide accurate data support for the determination of ship design structures.
[0280] (3) Joint analysis of geometric relationships and logical associations. Through the joint analysis of geometric relationships and logical associations, a complete ship design structure model is constructed, solving the problem of difficult determination of multi-primitive associations.
[0281] The following are its main beneficial effects:
[0282] (1) Efficiently analyze basic and complex primitive information. Through the classification and analysis of basic primitives (such as lines, circles, texts, etc.) and complex nested primitives (such as Insert, Dimension) in DXF drawings and the extraction of geometric attributes, a comprehensive understanding of the data of ship deck design drawings is achieved. Compared with the traditional manual processing method, the analysis efficiency and accuracy are significantly improved.
[0283] (2) Intelligent determination of the dynamic rule engine. By combining the dynamic rule engine to match and determine the basic primitive data set and complex primitive feature set, the automatic extraction and classification of ship design structure information are ensured. Compared with the static rule method, the dynamic rule engine has flexibility and can adjust the rule logic in real time according to different design specifications, improving its applicability in complex design scenarios.
[0284] (3) Precise modeling of logical association and geometric relationship. The present invention constructs a complete ship design structure model through the analysis of geometric relationships and logical associations between primitives. This model provides a refined description of key design structures such as section lines, deck plate seams, watertight bulkheads, and manholes, providing standardized structural data support for subsequent shipbuilding.
[0285] Obviously, the embodiments described above are only a part of the embodiments of the present application, rather than all of them. The accompanying drawings show the preferred embodiments of the present application, but do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosed content of the present application more thorough and comprehensive. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing specific embodiments, or perform equivalent replacements for some of the technical features. Any equivalent structure directly or indirectly using the content of the specification and drawings of the present application in other related technical fields shall be within the scope of the patent protection of the present application by the same token.
Claims
1. A method for extracting ship design structure information by parsing a ship deck DXF drawing, characterized in that: The method comprises the following steps: Read the ship deck DXF drawing file, parse the basic graphic element information in the file, extract the geometric attributes and classification information of the graphic element, and generate a basic graphic element data set; Based on the basic primitive data set, the complex nested primitives in the DXF drawing are parsed, the enhanced features of the complex primitives are extracted, and a complex primitive feature set is generated through a virtual entity generation method; Based on the basic graphic element data set and the complex graphic element feature set, combined with the ship design specifications, a dynamic rule engine is used to make a determination to generate corresponding ship design structure information; By using the geometric relationship and logical association between the graphic elements, a ship design structure model is constructed to generate structure model data; The structural model data is format converted and standardized, outputted into a structured data format, and the generated structured data is verified for consistency, and feedback is provided to optimize the decision logic of the rule engine.
2. The method according to claim 1, characterized in that The analysis of basic graphic element information includes the following steps: Parsing the straight lines, circles, polylines, arcs and text information in the DXF drawing file to extract their geometric properties and parameters; Classify and sort the graphic elements according to their types and layers; The classified graphic elements are subjected to geometric attribute processing to generate a standardized basic graphic element data set.
3. The method according to claim 1, characterized in that The method for parsing complex nested primitives comprises the following steps: Based on the basic primitive data set, identifying complex nested primitives in the DXF drawing, including Insert and Dimension primitives; Analyzing geometric relationships of basic primitives in the complex nested primitives to extract enhanced features; Through the virtual entity generation method, the feature information of the complex nested primitives is combined with the basic primitive attributes to generate a complex primitive feature set.
4. The method according to claim 1, characterized in that: The determination steps of the dynamic rule engine include: Based on the basic graphic element data set and the complex graphic element feature set, a dynamic rule engine is used to match the ship design specifications and make a preliminary judgment on each graphic element; Based on the preliminary determination results, further determine the specific design structures of the block lines, deck plate seams, watertight bulkheads and manholes; The determined ship design structure information is classified according to the graphic element type and structure to generate the corresponding ship design structure data set.
5. The method according to claim 1, characterized in that The construction of the ship design structure model comprises the following steps: Based on the ship design structure information, the geometric relationship between the graphic elements is analyzed to establish the logical association between the graphic elements; Extract key structural features from the geometric relationships and logical associations to generate a complete ship design structural model; The ship design structure model is data sorted to generate structure model data that meets the standards.
6. The method according to claim 1, characterized in that The format conversion and standardization of the structural model data comprises the following steps: Analyzing the types, geometric attributes and logical associations of the graphic elements in the ship design structure model; Convert the data into JSON, XML, table format or a custom intermediate format to generate standardized structured data; Redundancy cleaning and data completion are performed on the structured data.
7. The method according to claim 1, characterized in that The consistency verification step includes the following contents: Verifying the geometric attributes of the structured data, including the correctness of coordinates, size and position; Verify whether the logical association between the graphic elements complies with the ship design specifications; Check whether the structured data matches a predefined standard output format.
8. The method according to claim 1, characterized in that The decision logic of the feedback optimization rule engine includes the following steps: Collect feedback information from the consistency verification and analyze the accuracy of the judgment rules; Adjusting the rule priority in the rule engine and updating the determination parameters according to the feedback results; The rule engine is optimized and then reapplied to determine the ship design structure information.
9. The method according to claim 1, characterized in that: The virtual entity generation method comprises the following contents: Extracting enhanced features of the complex nested primitives and geometric properties of basic primitives; Combining the geometric attributes and the enhanced features into a virtual entity according to predefined rules; Generate a virtual entity set that includes geometric relationships, logical associations, and design specification tags.
10. The method according to claim 1, characterized in that The dynamic rule engine combines multiple design specifications to determine the following primitives: The length, direction and associated structure of the segmented lines; The arrangement and nesting relationship of the marking symbols in the deck plate seams; The dimensions of the manhole and its associated position with the annotation text.
Citation Information
Cited By
Method and system for automatically identifying entity primitive information data
CN120375410A
A method and system for automatically identifying entity graphic element information data
CN120375410B