Pipeline equiaxed graph generation method, device and equipment and storage medium
By receiving target pipeline information and drawing template configuration when generating isometric drawings of pipelines, querying the 3D model database to generate isometric views and display material lists, the problem of lacking a unified display standard in existing technologies is solved, thereby improving flexibility and efficiency.
Patent Information
- Application Number
- CN202512004193.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-29
- Publication Date
- 2026-01-27
- Estimated Expiration
- 2045-12-29
AI Technical Summary
Existing technologies lack a unified display standard when generating isometric diagrams of pipelines, which affects generation efficiency, fails to meet the display styles and effects of different scenarios, and lacks flexibility.
By receiving the target pipeline's number information and drawing template configuration information, the system queries the geometry and component information in the preset 3D pipeline model database, generates an isometric view, and displays a material list based on the configuration information, ensuring the uniformity and standardization of the page layout.
It improves the flexibility and efficiency of generating isometric diagrams of pipelines, and ensures the uniformity and standardization of the display effect.
Smart Images

Figure CN121415433A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the field of electric digital data processing, and in particular to a pipeline isometric drawing generation method and device, equipment and storage medium. BACKGROUND
[0002] In the design process of large industrial projects, the pipeline isometric drawing is a key deliverable connecting design, procurement, construction and commissioning and other links. It clearly expresses the spatial trend, size, slope, coordinates, fittings, valves, welding points and material information of a single pipeline in the form of three-dimensional axonometric projection. The drawing quality of the pipeline isometric drawing directly affects the construction efficiency, cost control and operation safety of the project, and therefore the industry has strict requirements on its standardization, accuracy and drawing efficiency.
[0003] In related technologies, in the process of generating a pipeline isometric drawing, an axial side view is generated according to the related data of a target pipeline and fixed page layout parameters, and the axial side view is displayed in a corresponding region, and related material information is labeled and displayed in the generated axial side view. However, there is a lack of unified display standards, which affects the generation efficiency of the pipeline isometric drawing, and the above-mentioned method of generating a pipeline isometric drawing cannot meet the display style and display effect of the pipeline isometric drawing in different scenarios, and lacks flexibility. SUMMARY
[0004] Embodiments of the present application provide a pipeline isometric drawing generation method, device, equipment and storage medium, which solves the problem that in the process of generating a pipeline isometric drawing, an axial side view is generated according to the related data of a target pipeline and fixed page layout parameters and displayed in a corresponding region, and related material information is labeled in the generated axial side view, which lacks unified display standards, affects the generation efficiency of the pipeline isometric drawing, and cannot meet the display style and display effect of the pipeline isometric drawing in different scenarios, and lacks flexibility. The target configuration information of the selected target drawing template and the related information of the target pipeline are received to generate a pipeline isometric drawing that meets the needs of different scenarios, improve the flexibility of generating a pipeline isometric drawing, and display the axial side view and the material table according to the page layout mode corresponding to the target drawing template, ensuring the standardization and uniformity of the display page, improving the generation efficiency of the pipeline isometric drawing, and fully guaranteeing the display effect of the pipeline isometric drawing.
[0005] In a first aspect, embodiments of the present application provide a pipeline isometric drawing generation method, comprising: receiving pipeline number information of a selected target pipeline and target configuration information of a target drawing template, the target configuration information including first configuration information of an axial side view region and second configuration information of a material table region; querying geometric information and component information corresponding to the pipeline number information in a preset three-dimensional pipeline model database, generating an axial side view based on the first configuration information, the geometric information and the component information, and displaying the axial side view in the axial side view area; counting the component information according to a list statistical item in the second configuration information, generating a material list based on a statistical result, and displaying the material list in the material table area, to obtain a pipeline isometric drawing containing the axial side view and the material list.
[0006] Optionally, the generating of the axial side view based on the first configuration information, the geometric information and the component information comprises: generating an initial axial side view according to the geometric information and the component information, and respectively performing perspective angle adjustment, label adjustment and style adjustment on the initial axial side view according to the first configuration information to obtain a target axial side view; performing page layout matching of the target axial side view and the axial side view area, determining a target filling position of the target axial side view according to a matching result, and filling the target axial side view into the target filling position.
[0007] Optionally, the page layout matching of the target axial side view and the axial side view area comprises: identifying key feature size information of the axial side view, generating a key feature size set, and determining a constraint feature size set associated with the axial side view area; calculating a size feature matching coefficient of the key feature size set and the constraint feature size set, and performing matching adjustment on the axial side view based on the size feature matching coefficient.
[0008] Optionally, the matching adjustment of the axial side view based on the size feature matching coefficient comprises: performing local scaling adjustment on a key feature of the axial side view based on the size feature matching coefficient to obtain a current key feature coordinate; calculating a feature anchor point translation amount according to the key feature size information and the current key feature coordinate, and performing translation processing on the key feature of the axial side view based on the feature anchor point translation amount.
[0009] Optionally, before the receiving of the pipeline number information of the selected target pipeline and the target configuration information of the target drawing template, the method further comprises: obtaining an initial drawing template, region division instructions and region configuration information, performing region segmentation on the initial drawing template based on the region division instructions to obtain a plurality of regions, and the plurality of regions at least include an axial measurement view area and a material table area; According to the region configuration information, a corresponding region is configured, and a standard drawing template including at least a configured axial view region and a configured material table region is generated.
[0010] Optionally, the region division instruction is used to divide the initial drawing template into regions, including: A drag trajectory is generated based on the region division instruction, and a starting point coordinate and an ending point coordinate of the drag trajectory are identified. A region division boundary is generated according to the starting point coordinate, the ending point coordinate, and a preset region shape, and the initial drawing template is divided into regions based on the region division boundary.
[0011] Optionally, the first configuration information includes at least one of an ISO view angle, a coordinate origin, a reference system positioning mode, a compass style, and a position, and the second configuration information includes at least one of a list dimension, a data source, a quantity unit, and a table style.
[0012] In a second aspect, an embodiment of the present application provides a pipeline isometric drawing generation device, including: An information receiving module is configured to receive pipeline number information of a selected target pipeline and target configuration information of a target drawing template, the target configuration information including first configuration information of an axial side view region and second configuration information of a material table region. An information querying module is configured to query geometric information and component information corresponding to the pipeline number information in a preset three-dimensional pipeline model database. An axial side view generation module is configured to generate an axial side view based on the first configuration information, the geometric information, and the component information, and display the axial side view in the axial side view region. An information statistical module is configured to statistically analyze the component information according to a list statistical item in the second configuration information. A material table generation module is configured to generate a material list based on the statistical result, and display the material list in the material table region, to obtain a pipeline isometric drawing including the axial side view and the material list.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, including one or more processors, and a storage device configured to store one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the pipeline isometric drawing generation method in the first aspect.
[0014] In a fourth aspect, the embodiments of the present application provide a storage medium containing computer executable instructions for executing the generation method of the pipe isometric drawing when executed by a computer processor.
[0015] The embodiments of the present application receive pipe number information of a selected target pipe and target configuration information of a target drawing template, the target configuration information including first configuration information of an axial side view area and second configuration information of a material table area; query geometric information and component information corresponding to the pipe number information in a preset three-dimensional pipe model database, generate an axial side view based on the first configuration information, the geometric information and the component information, and display the axial side view in the axial side view area; perform statistics on the component information according to a list statistical item in the second configuration information, generate a material list based on the statistical result, and display the material list in the material table area, to obtain a pipe isometric drawing containing the axial side view and the material list. In the above scheme, the pipe isometric drawing meeting different scene requirements can be generated according to the received target configuration information of the target drawing template and the related information of the target pipe, the flexibility of generating the pipe isometric drawing is improved, the axial side view and the material table are displayed according to the page layout mode corresponding to the target drawing template, the standardization and uniformity of the display page are ensured, the generation efficiency of the isometric drawing is improved, and the display effect of the pipe isometric drawing is fully guaranteed. BRIEF DESCRIPTION OF DRAWINGS
[0016] Figure 1 is a flowchart of a pipe isometric drawing generation method provided by the embodiments of the present application; Figure 2 is a flowchart of an axial side view generation method provided by the embodiments of the present application; Figure 3 is a flowchart of a page layout matching method provided by the embodiments of the present application; Figure 4 is a flowchart of a standard drawing template generation method provided by the embodiments of the present application; Figure 5 is an ISO drawing template management page schematic diagram provided by the embodiments of the present application; Figure 6 is an axial side view area configuration page schematic diagram provided by the embodiments of the present application; Figure 7 is a material table area configuration page schematic diagram provided by the embodiments of the present application; Figure 8 is a newly added initial drawing template setting page diagram provided by the embodiments of the present application; Figure 9 is a structural schematic diagram of a pipe isometric drawing generation device provided by the embodiments of the present application; Figure 10Fig. 1 is a structural schematic diagram of a pipeline isometric drawing generation device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0017] In order to make the purposes, technical solutions and advantages of the present application clearer, the specific embodiments of the present application are described in further detail below in combination with the drawings. It can be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, only parts related to the present application are shown in the drawings, but not all. Before discussing the example embodiments in more detail, it should be mentioned that some example embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the operations (or steps) as sequential processes, many of the operations can be implemented in parallel, concurrently or simultaneously. In addition, the order of the operations can be rearranged. The processes can be terminated when the operations are completed, but can also have additional steps not included in the drawings. The processes can correspond to methods, functions, procedures, subroutines, etc.
[0018] The technical solutions in the embodiments of the present application will be described clearly in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are some of the embodiments of the present application, but not all. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art belong to the scope of protection of the present application.
[0019] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally a category, and do not limit the number of objects, for example, the first object can be one or more. In addition, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / ", generally indicates that the objects before and after are in a "or" relationship.
[0020] The pipeline isometric drawing generation method, device, equipment and medium provided by the embodiments of the present application will be described in detail below in combination with the drawings, through specific embodiments and their application scenarios.
[0021] The pipeline isometric drawing generation method provided by the embodiments of the present application is used in the scenario of planning and adjusting the disinfection route. Based on the above application scenario, it can be understood that the execution subject of each step can be a computer device, which refers to any electronic device with data calculation, processing and storage capabilities, such as a mobile phone, a PC (Personal Computer), a tablet computer and the like, or a server and the like, and the embodiments of the present application do not limit this.
[0022] Figure 1 FIG. 1 is a flowchart of a configuration method of a management function template provided by the embodiments of the present application, as shown in FIG. 1, comprising: Figure 1 Step S101, receiving pipeline number information of a selected target pipeline and target configuration information of a target drawing template, the target configuration information comprising first configuration information of an axis side view area and second configuration information of a material table area.
[0023] The target pipeline can refer to an independent pipeline that needs to be drawn a pipeline isometric view from the whole system. The pipeline number is a unique and structured information assigned to each pipeline, which can represent the process system to which the pipeline belongs, the medium type, the pressure level, the pipe diameter, and the serial number, etc. For example, RE-W-150-200-001, where “RE” represents the process system to which the pipeline belongs, “W” represents the medium type, “150” represents the pressure level, “200” represents the pipe diameter, and “001” represents the first pipeline of this type. The target drawing template can refer to a standardized template file that is pre-created and configured by the user to define the layout structure, display style, and information specification of the final isometric view. The target configuration information can refer to a set of detailed parameters that the user sets in advance for each functional area in the target drawing template to define the content presentation rules. The axial side view area can refer to an independent functional block in the target drawing template that is pre-defined by visualization to carry pipeline three-dimensional isometric projection images and related annotation information. It is the core area of the pipeline isometric view that intuitively presents the spatial orientation of the pipeline. The first configuration information can refer to a set of key parameters that determine the basic presentation framework of the pipeline isometric side view when configuring the properties of the axial side view area. It can include feature annotation rules, target viewing angle, and style setting rules. Optionally, the first configuration information includes at least one of ISO viewing angle, coordinate origin, reference system positioning method, compass style, and position. The ISO viewing angle can refer to a parameter that provides a standardized viewing direction for the pipeline axial side view. Based on the isometric projection principle, a fixed viewing angle option (such as ISO1~4) is pre-set, which can be selected by the user through the area configuration information. The system will project and convert the pipeline three-dimensional geometric information according to the angle to generate an axial side view that intuitively reflects the spatial orientation of the pipeline. The coordinate origin can refer to a reference point pre-set in the axial side view area property configuration, which can be used as the starting point for measuring pipeline geometric information such as node position, pipeline orientation, and dimension annotation. All pipeline-related spatial coordinate data are calculated and displayed based on this point to ensure the accuracy of dimensions and positions in the axial side view. The reference system positioning method can refer to a reference rule used to standardize the spatial positioning of pipeline node positions and pipeline orientations in the view during the axial side view area configuration. The compass style and position can refer to a parameter combination set by the user during the axial side view area property configuration, which is used to clearly define the visual form of the compass and its specific placement orientation in the axial side view area. The material table area can refer to an independent functional block in the target drawing template that is pre-defined by visualization to carry a list of all components associated with the target pipeline. The second configuration information can refer to a set of detailed parameters that the user sets in advance for the material table area in the target drawing template to define the information dimension, display style, and data source of the material list.Optionally, the second configuration information includes at least one of a list dimension, a data source, a quantity unit, and a table style. The list dimension can refer to a rule set set by the user in the material table area attribute configuration for standardizing the material information display dimension, such as a serial number, a name, and a specification. The data source can refer to an original data source identifier set by the user in the material table area attribute configuration for each list dimension for extracting data. The data unit can refer to a parameter set by the user in the material table area attribute configuration for unifying the quantitative data measurement standard. The table style can refer to a rule set by the user in the material table area attribute configuration for standardizing the material list visual form, such as a table border, a font, a layout, and a partition.
[0024] In one embodiment, a target pipe selected by a user in a system for drawing a pipe isometric drawing is received, a target drawing template selected from a plurality of templates stored in a drawing template management module, and configuration information associated with the target drawing template, wherein the drawing template management module stores a plurality of types of drawing templates pre-configured by the user, such as a pipe ISO standard template, a process flow chart template, an equipment installation template A1, and an instrument piping template A3. Since the target drawing template at least includes an isometric side view area and a material table area, the target configuration information associated with the target drawing template at least includes first configuration information associated with the isometric test drawing area and second configuration information associated with the material table area.
[0025] In step S102, the geometric information and component information corresponding to the pipe number information are queried from a preset three-dimensional pipe model database, an axis side view is generated based on the first configuration information, the geometric information, and the component information, and the axis side view is displayed in the axis side view area.
[0026] The preset three-dimensional pipe model database can refer to a structured database containing three-dimensional geometric information, component information, and associated relationship data of all pipes of an industrial project constructed and stored in advance before the pipe isometric drawing is generated. The geometric information can refer to a quantitative data set for describing the spatial position, shape structure, and connection relationship of the target pipe. The component information can refer to a structured data set for describing the identity, attribute parameters, and associated relationship of the component in the industrial pipe system. The axis side view can refer to an engineering view obtained by converting the three-dimensional spatial form of the pipe into a two-dimensional plane image by using the axonometric projection method.
[0027] In one embodiment, a pipeline body line is drawn according to the pipeline node three-dimensional coordinates, the pipeline alignment and the slope, components are drawn according to the component type, the component position coordinates and the component symbol identification, etc., and are matched with the pipeline body to obtain a pipeline body structure diagram, a projection reference of the axial side view is determined according to the reference system positioning rule in the first configuration information, the pipeline body diagram is projected and calculated and the graphics are positioned based on the projection reference to generate the axial side view, and the axial side view is displayed in the axial side view area.
[0028] In step S103, component information is counted according to the list statistical item in the second configuration information, a material list is generated based on the counting result, the material list is displayed in the material table area, and a pipeline isohedron containing the axial side view and the material list is obtained.
[0029] The list statistical item can refer to a specific data entry in the material table area for classified statistical presentation and quantitative presentation of the component information associated with the target pipeline, that is, the column definition of the material list. The material list can refer to a standardized table in the material table area of the pipeline isohedron, which is automatically generated according to a preset configuration rule and is used for system presentation of all component core information associated with the target pipeline. The pipeline isohedron can refer to a standardized two-dimensional engineering drawing based on the orthographic projection technology, which converts the three-dimensional space form of the pipeline, the component information and the engineering parameters into a standardized two-dimensional engineering drawing conforming to international standards. The pipeline isohedron includes a standard two-dimensional pipeline engineering view and a material list of detailed installation and material list about the engineering view.
[0030] In one embodiment, the related parameters of the generated axial side view that need to be counted are determined according to the list statistical item in the second configuration information, such as the serial number, the description, the specification, the material number and the quantity, etc., the component information obtained by querying is counted from the serial number, the description, the specification, the material number and the quantity, etc., a material list that can be used to clearly indicate the material list is generated, and the material list is displayed at the center position of the material table area, so as to obtain the pipeline isohedron containing the axial side view and the material list.
[0031] The embodiment of the application receives pipe number information of a selected target pipe and target configuration information of a target drawing template, the target configuration information including first configuration information of an axial side view area and second configuration information of a material table area; queries geometric information and component information corresponding to the pipe number information in a preset three-dimensional pipe model database, generates an axial side view based on the first configuration information, the geometric information and the component information, and displays the axial side view in the axial side view area; performs statistics on the component information according to a list statistical item in the second configuration information, generates a material list based on the statistical result, and displays the material list in the material table area, to obtain a pipe isometric drawing containing the axial side view and the material list. In the above scheme, the pipe isometric drawing meeting different scene requirements can be generated according to the received target configuration information of the target drawing template and the related information of the target pipe, the flexibility of generating the pipe isometric drawing is improved, the axial side view and the material table are displayed according to the page layout mode corresponding to the target drawing template, the standardization and uniformity of the display page are ensured, the generation efficiency of the isometric drawing is improved, and the display effect of the pipe isometric drawing is fully guaranteed.
[0032] Figure 2 is a flowchart of an axial side view generation method provided by the embodiment of the application, as shown in Figure 2 , including: Step S1021, generating an initial axial side view according to the geometric information and the component information, and performing perspective adjustment, annotation adjustment and style adjustment on the initial axial side view according to the first configuration information to obtain a target axial side view.
[0033] The initial axial side view can refer to an axial measurement view used for initially presenting the three-dimensional space form of a pipe, which is generated based on the basic geometric data of the preset three-dimensional pipe model database according to the default or initial configuration of the axial measurement projection rule at the initial stage of the pipe isometric drawing generation process. The target axial side view can refer to a final axial measurement view meeting the standardized requirements of a project and capable of accurately conveying the three-dimensional space information of a pipe, which is generated based on the configuration rule of the first configuration information in the pipe isometric drawing generation process. The perspective adjustment can refer to an operation of adjusting the observation direction of the pipe isometric projection according to the project requirements or the space observation focus. The annotation adjustment can refer to an operation of optimizing and adjusting the position and display state of the annotation content in the view, such as the adjustment of the coordinate, pipe diameter and component number, etc. The style adjustment can refer to an operation of optimizing and adjusting the appearance style of the graphic elements and annotation elements in the view, such as the font adjustment and line type adjustment of the annotation elements, etc.
[0034] In one embodiment, the spatial position, morphological structure, attribute parameter and association relationship of the target pipeline are queried in the preset three-dimensional pipeline model database according to the pipeline number, and an initial axonometric view is generated according to the queried spatial position, morphological structure, attribute parameter and association relationship. The initial axonometric view is adjusted in view angle based on the target view angle in the first configuration information. According to the feature labeling rule, the coordinate value, pipe diameter size and component number of each pipeline in the axonometric view are positionally optimized and display controlled to ensure clear and readable labeling and no overlap. According to the style setting rule, the line thickness, color configuration and text font are adjusted to make the graphic elements meet the project drawing standard, and finally a pipeline axonometric view meeting the standardization requirement, accurate spatial information and clear visual hierarchy is generated.
[0035] In step S1022, the target axonometric view is matched with the axonometric view area in page layout, the target filling position of the target axonometric view is determined according to the matching result, and the target axonometric view is filled into the target filling position.
[0036] The target filling position can refer to the specific display position of the target axonometric view in the axonometric view area. In one embodiment, the size information of the target axonometric view is identified, and the size of the target axonometric view is matched with the size of the axonometric view area. For example, the distance of the target axonometric view to the boundary of the template axonometric view area is calculated according to the size of the target axonometric view and the size of the axonometric view area, so that the distance of the left and right boundaries of the target axonometric view to the left and right boundaries of the template axonometric view area is equal, and the distance of the upper and lower boundaries of the target axonometric view to the upper and lower boundaries of the template axonometric view area is also equal. At this time, it can be considered that the target axonometric view is matched with the axonometric view area, and the coordinates of the points on the boundaries of the target axonometric view in the axonometric view area are recorded. The area surrounded by the coordinates of the points on the boundaries is determined as the target filling position of the target axonometric view, and the target axonometric view is filled into the target position for display.
[0037] In the above scheme, the accuracy of the filling position of the target axonometric view in the drawing can be ensured through the page layout matching with the axonometric view area, the generation quality of the axonometric view is improved, and the overall standardization and readability of the drawing are enhanced.
[0038] Figure 3 is a flowchart of a page layout matching method provided by the embodiment of the present application, as shown in Figure 3 The page layout matching method includes the following steps: Step S10221, identify the key feature size information of the shaft side view, generate a key feature size set, and determine a constraint feature size set associated with the shaft side view area.
[0039] Step S10222, calculate the size feature matching coefficient of the key feature size set and the constraint feature size set, and adjust the shaft side view based on the size feature matching coefficient.
[0040] The key feature size information can refer to the core size data contained in the shaft side view that can determine its core form, layout adaptability and key display information during the generation of the pipe axis graph. The key feature size set can refer to a set of all core size data extracted from the shaft side view, which can represent the core form, key component layout and labeling specification. The constraint feature size set can refer to a set of a series of preset size data associated with the shaft side view area of the drawing template, which is used to limit the layout adaptation standard of the shaft side view. The size feature matching coefficient can refer to a quantitative index for quantifying the adaptation degree between the key feature size set of the shaft side view and the constraint feature size set of the shaft side view area of the drawing template.
[0041] In one embodiment, the coordinate data of all visible elements in the shaft side view is traversed to determine the extreme coordinates of the view in the unified coordinate system, the coordinates of the inflection point where the pipe direction changes, and the coordinates of the preset key target points such as the center coordinates of the mounting hole, valve, welding point, flange, etc. The feature size set is generated by combining all the identified extreme coordinates, inflection point coordinates and coordinates of the preset key target points. For example, if the center coordinates of the mounting hole (x th ,y th ), the hole spacing D t , the chamfer edge length C t , and the labeling are feature size set F t ={D t ,Ct,(x th ,y th)}。In one embodiment, the association between the pipe number and the set of constraint feature sizes at different viewing angles in the shaft side view area can be pre-set, and after receiving the selected pipe number, the set of target constraint feature sizes is determined according to the display viewing angle in the first configuration information and the set of constraint feature sizes at different viewing angles corresponding to the pre-set pipe number, wherein the set of constraint sizes can include the reasonable filling area range of each key feature, such as the reasonable filling area range of a certain inflection point, which can be x∈[120mm, 380mm] and y∈[80mm, 220mm]. The coordinates of each key feature in the set of key feature sizes are compared with the reasonable filling area range corresponding to the corresponding feature in the set of constraint sizes to determine whether each key feature is within the reasonable filling area range. If not, the deviation value of the key feature from the corresponding reasonable filling area range is calculated, and the size feature matching coefficient of the set of key feature sizes and the set of constraint feature sizes is calculated according to the calculated deviation values. For example, the set of key feature sizes is F t ={D t ,C t ,(x th ,y th )} and the set of constraint feature sizes is F a ={D a ,C a ,(x ah ,y ah )}, the feature size matching coefficient is calculated as k=D a / D t , and the shaft side view is scaled and adjusted according to the feature size matching coefficient, so that the feature anchor points of the target view are aligned with the area constraint anchor points. The target horizontal and vertical coordinates after adjustment can be calculated according to the feature size matching coefficient and the initial horizontal and vertical coordinates of the key feature, and the key feature is adjusted to the target horizontal and vertical coordinates.
[0042] The embodiments of the present application identify the key feature size information of the shaft side view, generate a set of key feature sizes, and determine a set of constraint feature sizes associated with the shaft side view area; calculate the size feature matching coefficient of the set of key feature sizes and the set of constraint feature sizes, and match and adjust the shaft side view based on the size feature matching coefficient. In the above scheme, the positioning accuracy of the shaft side view in the complex page environment is improved through the automatic alignment of the feature anchor points and the area constraint anchor points, and the layout standardization of the shaft drawing such as the pipe is significantly improved.
[0043] Optionally, the matching adjustment of the shaft side view based on the size feature matching coefficient includes: locally scaling and adjusting the key feature of the shaft side view based on the size feature matching coefficient to obtain the current key feature coordinates; calculating the feature anchor point translation amount based on the key feature size information and the current key feature coordinates, and performing translation processing on the key feature of the shaft side view based on the feature anchor point translation amount.
[0044] wherein the current key feature coordinate can refer to a specific coordinate position value of the key feature in the current coordinate system after local scaling adjustment of the key feature in the isometric view. The feature anchor point translation amount can refer to a quantitative displacement value for translating the key feature to the reasonable display area, which is calculated based on the key feature size information and the current key feature coordinate after local scaling. The feature anchor point translation amount is used to represent the direction and distance of displacement, which can be represented as (Δx, Δy). If Δx>0 or Δy>0, it indicates translation in the positive direction of the x-axis or the positive direction of the y-axis. If Δx<0 or Δy<0, it indicates translation in the negative direction of the x-axis or the negative direction of the y-axis.
[0045] In one embodiment, when it is determined according to the size feature matching coefficient that scaling adjustment of a certain key feature in the isometric view is needed, for example, magnification or reduction operation of a certain pipe section of a pipe, the end point coordinate of the pipe section after scaling is calculated by a corresponding scaling algorithm, and the end point coordinate is determined as the current key feature coordinate. The method for calculating the current key feature coordinate is: x th '=x th ×k, y th '=y th ×k. The difference between the original horizontal and vertical coordinates of the key feature and the current key feature coordinate is calculated, and the feature anchor point translation amount is calculated based on the difference, such as Δx=x ah -x th ', Δy=y ah -y th '. The key feature of the isometric view is translated according to the feature anchor point translation amount, so that the key feature can be accurately positioned to a suitable position after scaling adjustment.
[0046] The embodiment of the present application locally scales the key feature of the isometric view based on the size feature matching coefficient to obtain the current key feature coordinate. The feature anchor point translation amount is calculated according to the key feature size information and the current key feature coordinate, and the key feature of the isometric view is translated based on the feature anchor point translation amount. This can fully guarantee the accuracy and standardization of the isometric view in the page layout, and improve the overall generation quality of the isometric drawing of the pipe.
[0047] Figure 4 is a flowchart of a standard drawing template generation method provided by the embodiment of the present application, as shown in Figure 4 , which includes: Step S201, obtaining an initial drawing template, region division instructions and region configuration information, performing region segmentation on the initial drawing template based on the region division instructions to obtain a plurality of regions, the plurality of regions at least including an isometric view region and a material table region.
[0048] Step S202, configuring the corresponding region according to the region configuration information, generating a standard drawing template containing at least the configured axial view region and the configured material table region.
[0049] The initial drawing template can refer to a basic template carrier for customized configuration, which can be a newly created blank template carrier or a template configured in history. If the initial drawing template is a template configured in history, the user can modify the configuration in the initial drawing template to complete the target drawing template meeting the user's requirements. The region division instruction can refer to an operation instruction for function region segmentation of the initial drawing template. The region configuration information can refer to a parameter set for individualized attribute setting of each function region of the initial drawing template after segmentation. The standard drawing template can refer to the final form of the initial drawing template after customized processing, which is a standardized template carrier containing at least a preset function region and a material table region, and the standard drawing template can be determined as the target drawing template.
[0050] Figure 5 is a schematic diagram of an ISO drawing template management page provided by an embodiment of the present application, as shown in Figure 5 The ISO drawing template management page includes operation buttons such as "pipeline ISO standard template", "equipment installation template A1", "instrument piping template A3", "process flow diagram template", "add", "copy", "modify", "delete", and "close". In an embodiment, a "new" instruction or a "modify" instruction selected by the user in the ISO drawing template management page is received. If it is a "modify" instruction, a historical drawing template corresponding to the instruction is obtained, which is any one of "pipeline ISO standard template", "equipment installation template A1", "instrument piping template A3", or "process flow diagram template", and the configuration information of the historical drawing template is modified according to the region configuration information and the region division instruction. If it is a "new" instruction, a preset blank template carrier is obtained, and the blank region of the blank template is divided into regions according to the region division instruction. The region division instruction can be the region vertex coordinates input by the user in the region division setting page, so that a rectangular frame with a corresponding position and size is generated based on the region vertex coordinates. The region division instruction includes division instructions of multiple different content display regions, at least including a division instruction of an axial view region and a division instruction of a material table region. After determining the position and range of the axial view region and the material table region based on the region division instruction, the blank page is divided into regions based on the position and range, obtaining the axial view region and the material table region. The axial view region is configured according to the first configuration information. Figure 6 is a schematic diagram of an axial view region configuration page provided by an embodiment of the present application, as shown in Figure 6As shown, the font, attribute, positioning, and alternative text of the region can be configured, such as the font type, font size, and character spacing, and the configuration information is saved. The material table region is configured according to the second configuration information. Figure 7 is a schematic diagram of a material table region configuration page provided by an embodiment of the present application, as shown in Figure 7 As shown, the font, attribute, column definition, and style of the region can be configured, such as the font type, font size, and character spacing, and the configuration information is saved, and a specification drawing template containing the configured isometric view region and the configured material table region is generated. During the region configuration process, the user usually selects a target region to be configured after dividing the regions, and sets the configuration information of the target region. After the system receives the configuration information, the configuration information is bound to the target region for configuration, thereby completing the configuration of the target region. Similarly, the configuration of other regions is the same.
[0051] In another possible embodiment, the region division instruction can further include a division instruction of a text description region and a division instruction of a custom text region. Figure 8 is a newly added initial drawing template setting page diagram provided by an embodiment of the present application, as shown in Figure 8 As shown, it includes an isometric view region 31, a material table region 32, a text description region 33, and a custom text region 34. The text description region 33 can be a region for displaying some general technical instructions or matters needing attention. The custom text region 34 can be a region for displaying a drawing name, a drawing number, project information, and other text that needs to be dynamically filled. There can be multiple custom text regions. Correspondingly, after obtaining the isometric view region 31, the material table region 32, the text description region 33, and the custom text region 34 according to the region division instruction, the corresponding regions are configured according to the received region configuration information, and a specification drawing template containing the configured isometric view region, the configured material table region, the configured text description region, and the configured custom text region is generated.
[0052] The embodiment of the present application obtains an initial drawing template, a region division instruction, and region configuration information, divides the initial drawing template into multiple regions based on the region division instruction, and obtains an isometric view region and a material table region. The corresponding regions are configured according to the region configuration information, and a specification drawing template containing the configured isometric view region and the configured material table region is generated, thereby improving the flexibility of template setting and the diversity of display effects, and ensuring the generation quality of subsequent pipe axis drawings.
[0053] Optionally, the initial drawing template is regionally segmented based on the region division instruction, including: generating a dragging track based on the region division instruction, identifying a track starting point coordinate and a track ending point coordinate of the dragging track; generating a region division boundary according to the track starting point coordinate, the track ending point coordinate and a preset region shape, and regionally segmenting the initial drawing template based on the region division boundary.
[0054] The dragging track can refer to a position change track formed by a dragging operation of a user on a template visualization interface to segment the initial drawing template and define a functional region. The track starting point coordinate can refer to a two-dimensional coordinate corresponding to a position where the user first clicks when performing the dragging operation on the visualization interface. The track ending point coordinate can refer to a two-dimensional coordinate corresponding to a position where the user releases an operation device when completing the dragging operation on the visualization interface, that is, a two-dimensional coordinate of a stop position of the dragging track. The region division boundary can refer to a closed boundary line generated on the initial drawing template according to track data generated by the user dragging operation and the preset region shape, used to clearly divide the physical range of different functional regions and ensure that the regions are independent and do not overlap.
[0055] In an embodiment, the user can perform a dragging operation on the template visualization interface by using a mouse or a touch device, and the system can capture and record the track starting point coordinate and the track ending point coordinate of the dragging track in real time. After obtaining the track starting point coordinate and the track ending point coordinate, the system can calculate and generate a region division boundary according to a preset region shape, such as a rectangle, a circle or the like, in combination with the track starting point coordinate and the track ending point coordinate. For example, if the preset region shape is a rectangle, the diagonal line of the rectangle can be determined according to the track starting point coordinate and the track ending point coordinate, and then the four vertex coordinates of the rectangle can be determined to generate a rectangular region division boundary. The system can regionally segment the initial drawing template based on the generated region division boundary, and divide the initial drawing template into a plurality of independent functional regions, the plurality of regions at least including an axonometric view region and a material table region, and can further include a text description region, a self-defined text region and the like according to actual needs.
[0056] The embodiments of the present application improve the flexibility and accuracy of region segmentation by generating a dragging track based on a region division instruction, identifying a track starting point coordinate and a track ending point coordinate, and then generating a region division boundary for region segmentation, thereby meeting the personalized customization needs of the user for the drawing template.
[0057] Figure 9 is a structural schematic diagram of a pipeline isometric drawing generation device provided by the embodiments of the present application, as shown in Figure 9 , comprising: An information receiving module 41 is configured to receive pipe number information of a selected target pipe and target configuration information of a target drawing template, the target configuration information including first configuration information of an axonometric view region and second configuration information of a material table region. The information query module 42 is configured to query geometric information and component information corresponding to the pipe number information in a preset three-dimensional pipe model database; The shaft side view generation module 43 is configured to generate a shaft side view based on the first configuration information, the geometric information and the component information, and display the shaft side view in the shaft side view area; The information statistics module 44 is configured to perform statistics on the component information according to a list statistics item in the second configuration information; The material list generation module 45 is configured to generate a material list based on the statistics result, and display the material list in the material list area, to obtain a pipe isometric drawing containing the shaft side view and the material list.
[0058] In the above scheme, the pipe isometric drawing meeting different scene requirements can be generated according to the received target configuration information of the target drawing template and the related information of the target pipe, the flexibility of generating the pipe isometric drawing is improved, the shaft side view and the material list are displayed according to the page layout mode corresponding to the target drawing template, the standardization and uniformity of the display page are ensured, the generation efficiency of the isometric drawing is improved, and the display effect of the pipe isometric drawing is fully guaranteed.
[0059] In one possible embodiment, the shaft side view generation module 43 is specifically configured to: generate an initial shaft side view according to the geometric information and the component information, and perform perspective adjustment, annotation adjustment and style adjustment on the initial shaft side view according to the first configuration information, to obtain a target shaft side view; perform page layout matching on the target shaft side view and the shaft side view area, determine a target filling position of the target shaft side view according to a matching result, and fill the target shaft side view into the target filling position.
[0060] In one possible embodiment, the shaft side view generation module 43 is specifically configured to: Identify the key feature dimensions of the axonometric view, generate a set of key feature dimensions, and determine the set of constraint feature dimensions associated with the axonometric view region; Calculate the size feature matching coefficient between the set of key feature dimensions and the set of constraint feature dimensions, and adjust the isometric view based on the size feature matching coefficient.
[0061] In one possible embodiment, the axonometric view generation module 43 is specifically used for: Based on the size feature matching coefficient, the key features of the isometric view are locally scaled and adjusted to obtain the current key feature coordinates; The feature anchor point translation is calculated based on the key feature size information and the current key feature coordinates, and the key features of the isometric view are translated based on the feature anchor point translation.
[0062] In one possible embodiment, a standard drawing template generation module is also included, which is used for: Obtain the initial drawing template, region division instructions, and region configuration information; divide the initial drawing template into regions based on the region division instructions to obtain multiple regions, wherein the multiple regions include at least an isometric view region and a bill of materials region. Based on the area configuration information, the corresponding areas are configured to generate a standard drawing template that includes at least the configured isometric view area and the configured bill of materials area.
[0063] In one possible embodiment, the specification drawing template generation module is specifically used for: Based on the region division instruction, a drag trajectory is generated, and the starting point coordinates and ending point coordinates of the drag trajectory are identified; The region segmentation boundary is generated based on the coordinates of the starting point of the trajectory, the coordinates of the ending point of the trajectory, and the preset region shape, and the initial drawing template is segmented based on the region segmentation boundary.
[0064] In one possible embodiment, the first configuration information includes at least one of: ISO viewpoint, coordinate origin, reference system positioning method, compass style and location, and the second configuration information includes at least one of: list dimension, data source, quantity unit and table style.
[0065] This application also provides an electronic device that can integrate a pipeline isometric diagram generation apparatus provided in this application. Figure 10 This is a schematic diagram of a device for generating isometric diagrams of pipelines according to an embodiment of this application. (Refer to...) Figure 10The device for generating the isometric pipe diagram includes: an input device 53, an output device 54, a memory 52, and one or more processors 51; the memory 52 is used to store one or more programs; when one or more programs are executed by one or more processors 51, the one or more processors 51 implement the isometric pipe diagram generation method provided in the above embodiments. The input device 53, output device 54, memory 52, and processors 51 can be connected via a bus or other means. Figure 10 Taking the example of a connection between China and Israel via a bus.
[0066] The memory 52, as a computing device readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the pipeline isometric diagram generation method provided in any embodiment of this application. The memory 52 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function; the data storage area may store data created based on the use of the device. Furthermore, the memory 52 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 52 may further include memory remotely located relative to the processor 51, and these remote memories can be connected to the device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0067] Input device 53 can be used to receive input digital or character information, and to generate key signal inputs related to user settings and function control of the device. Output device 54 may include display devices such as a display screen.
[0068] The processor 51 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 52, thereby realizing the above-mentioned method for generating the isometric diagram of the pipeline.
[0069] The pipeline isometric diagram generation apparatus, device, and computer provided above can be used to execute the pipeline isometric diagram generation method provided in any of the above embodiments, and have corresponding functions and beneficial effects.
[0070] This application embodiment also provides a storage medium for storing computer-executable instructions. When executed by a computer processor, the computer-executable instructions are used to execute a method for generating isometric diagrams of pipes as provided in the above embodiment. The method for generating isometric diagrams of pipes includes: receiving pipe number information of a selected target pipe and target configuration information of a target drawing template, wherein the target configuration information includes first configuration information of an isometric view area and second configuration information of a material list area; querying geometric information and component information corresponding to the pipe number information in a preset three-dimensional pipe model database; generating an isometric view based on the first configuration information, the geometric information, and the component information; and displaying the isometric view in the isometric view area; performing statistics on the component information according to the list statistics items in the second configuration information; generating a material list based on the statistics results; and displaying the material list in the material list area to obtain an isometric diagram of pipes containing the isometric view and the material list.
[0071] Storage medium – any type of memory device or storage device. The term “storage medium” is intended to include: mounting media, such as CD-ROMs, floppy disks, or magnetic tape devices; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (e.g., hard disks or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. Furthermore, storage media may reside in a first computer system in which a program is executed, or may reside in a different second computer system connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term “storage medium” can include two or more storage media that may reside in different locations (e.g., in different computer systems connected via a network). Storage media may store program instructions (e.g., specifically implemented as a computer program) executable by one or more processors.
[0072] Of course, the computer-executable instructions provided in the embodiments of this application are not limited to the method for generating isometric diagrams of pipes as described above, but can also perform related operations in the method for generating isometric diagrams of pipes provided in any embodiment of this application.
[0073] The pipeline isometric diagram generation apparatus, device, and storage medium provided in the above embodiments can execute the pipeline isometric diagram generation method provided in any embodiment of this application. For technical details not described in detail in the above embodiments, please refer to the pipeline isometric diagram generation method provided in any embodiment of this application.
[0074] The above description is merely a preferred embodiment and the technical principles employed in this application. This application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions that can be made by those skilled in the art will not depart from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of this application, the scope of which is determined by the scope of the claims.
Claims
1. A method for generating isometric diagrams of pipelines, characterized in that, include: Receive the pipe number information of the selected target pipe and the target configuration information of the target drawing template. The target configuration information includes the first configuration information of the isometric view area and the second configuration information of the bill of materials area. The system queries the geometric and component information corresponding to the pipe number information in the preset three-dimensional pipe model database, generates an axonometric view based on the first configuration information, the geometric information and the component information, and displays the axonometric view in the axonometric view area. The component information is statistically analyzed based on the list statistics items in the second configuration information. A material list is generated based on the statistical results and displayed in the material table area to obtain an isometric view of the pipes that includes the isometric view and the material list.
2. The method for generating isometric diagrams of pipelines according to claim 1, characterized in that, The step of generating an isometric view based on the first configuration information, the geometric information, and the component information includes: An initial isometric view is generated based on the geometric information and the component information. The initial isometric view is then adjusted in terms of viewpoint, annotation, and style according to the first configuration information to obtain the target isometric view. The target axonometric view is matched with the axonometric view area in the page layout. Based on the matching result, the target fill position of the target axonometric view is determined, and the target axonometric view is filled into the target fill position.
3. The method for generating isometric diagrams of pipelines according to claim 2, characterized in that, The step of matching the target axonometric view with the axonometric view area for page layout includes: Identify the key feature dimensions of the axonometric view, generate a set of key feature dimensions, and determine the set of constraint feature dimensions associated with the axonometric view region; Calculate the size feature matching coefficient between the set of key feature dimensions and the set of constraint feature dimensions, and adjust the isometric view based on the size feature matching coefficient.
4. The method for generating isometric diagrams of pipelines according to claim 2, characterized in that, The matching adjustment of the isometric view based on the size feature matching coefficient includes: Based on the size feature matching coefficient, the key features of the isometric view are locally scaled and adjusted to obtain the current key feature coordinates; The feature anchor point translation is calculated based on the key feature size information and the current key feature coordinates, and the key features of the isometric view are translated based on the feature anchor point translation.
5. The method for generating isometric diagrams of pipelines according to claim 1, characterized in that, Before receiving the pipe number information of the selected target pipe and the target configuration information of the target drawing template, the following is also included: Obtain the initial drawing template, region division instructions, and region configuration information; divide the initial drawing template into regions based on the region division instructions to obtain multiple regions, wherein the multiple regions include at least an isometric view region and a bill of materials region. Based on the area configuration information, the corresponding areas are configured to generate a standard drawing template that includes at least the configured isometric view area and the configured bill of materials area.
6. The method for generating isometric diagrams of pipelines according to claim 5, characterized in that, The process of dividing the initial drawing template into regions based on the region division instruction includes: Based on the region division instruction, a drag trajectory is generated, and the starting point coordinates and ending point coordinates of the drag trajectory are identified; The region segmentation boundary is generated based on the coordinates of the starting point of the trajectory, the coordinates of the ending point of the trajectory, and the preset region shape, and the initial drawing template is segmented based on the region segmentation boundary.
7. The method for generating isometric diagrams of pipelines according to claim 1, characterized in that, The first configuration information includes at least one of the following: ISO viewpoint, coordinate origin, reference system positioning method, compass style and position. The second configuration information includes at least one of the following: column definition, data source, quantity unit and table style.
8. An apparatus for generating isometric diagrams of pipelines, characterized in that, include: The information receiving module is used to receive the pipe number information of the selected target pipe and the target configuration information of the target drawing template. The target configuration information includes the first configuration information of the isometric view area and the second configuration information of the bill of materials area. The information query module is used to query the geometric information and component information corresponding to the pipeline number information in a preset three-dimensional pipeline model database; An axonometric view generation module is used to generate an axonometric view based on the first configuration information, the geometric information and the component information, and display the axonometric view within the axonometric view area; The information statistics module is used to perform statistics on the component information based on the list statistics items in the second configuration information; The material table generation module is used to generate a material list based on statistical results and display the material list in the material table area to obtain an isometric drawing of the pipe that includes the isometric view and the material list.
9. An electronic device, characterized in that, The device includes: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the method for generating isometric diagrams of pipes as described in any one of claims 1-7.
10. A storage medium for storing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform the method for generating isometric diagrams of pipes as described in any one of claims 1-7.
Citation Information
Patent Citations
Three-dimensional pipeline generation method and device based on drawing conversion and product
CN115994395A
Engineering quantity information acquisition method and device and storage medium
CN117807969A
Pipeline manufacturing drawing manufacturing method, system and equipment and storage medium
CN118821249A
Spraying system detection method and device, computer equipment and storage medium
CN120385491A
Piping materials managing device and method
KR1020140127998A