Modular reuse method, system, storage medium and equipment for pipeline three-dimensional model
By creating a parameterized skeleton model and dividing component types, building pipeline configurations and assigning values, modular multiplexing of the three-dimensional pipeline model is achieved, solving the problems of low modeling efficiency and insufficient design constraints, and improving design quality and consistency.
Patent Information
- Application Number
- CN202310077842.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-16
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2043-01-16
AI Technical Summary
The existing three-dimensional modeling software has problems such as low modeling efficiency and lack of design constraints in pipeline design, resulting in inconsistent design results and many repetitive operations.
By creating a parametric skeleton model, dividing active and driven components, defining interfaces and marking elements, building pipeline configurations and assigning values, forming a modular multiplexing method, and using three-dimensional software to realize the modular design of the pipeline model.
Improve modeling efficiency, reduce duplicate operations, ensure design consistency and quality, and support modular applications in multiple scenarios.
Smart Images

Figure CN116049987B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer-aided design technology, and in particular to a method, system, storage medium, and device for modular reuse of pipeline three-dimensional models. Background Art
[0002] With the advancement of design methods and concepts, modular design is becoming a growing trend in large-scale piping design. While modular piping has made significant progress, 3D modeling has not seen significant advancements. While existing 3D design software offers parametric modeling capabilities, the increasing number of components within a unit makes parametric modeling and layout difficult. Consequently, current 3D piping design still relies on the traditional part-by-part layout approach. Specifically, designers must select and place each component within a unit one by one. This approach presents several challenges: First, modeling efficiency is low. When there are multiple similar modular units, designers must repeat the modeling process multiple times. This means that pipeline variables cannot be interchanged after modeling, making it impossible to reuse a single design for different design scenarios. Second, there is a lack of design constraints. For the same design scenario, different designers can produce widely varying results, resulting in inconsistent layouts and varying component models.
[0003] Therefore, to address the above problems, it is urgent to propose a new modular method for pipeline three-dimensional models. Summary of the Invention
[0004] The purpose of the embodiments of the present application is to provide a modular reuse method, system, storage medium and device for pipeline three-dimensional models to solve the technical problems of low modeling efficiency and lack of design constraints when placing components one by one during pipeline three-dimensional design.
[0005] In a first aspect, a modular reuse method for a pipeline 3D model is provided, comprising:
[0006] Creating a parameterized skeleton model of the pipeline according to the spatial position of the pipeline model to be modularized, defining an interface between the skeleton model and an external design environment, and setting marking elements within the skeleton model;
[0007] Analyzing the relative positions of the components in the pipeline model and dividing the components in the pipeline model into active components and passive components;
[0008] Creating a pipeline configuration, the pipeline configuration including pipeline variables, the relative position relationship between the active component and the marking element, and the relative position relationship between the passive component and the active component, assigning values to the pipeline variables, and grouping the assigned values of the pipeline variables into an assignment set.
[0009] The skeleton model, pipeline configuration and assignment set are combined into a pipeline module;
[0010] The pipeline module is placed in the three-dimensional software. During the three-dimensional modeling, the pipeline module is selected, the skeleton model is instantiated through the interface, and then the assignment set and pipeline configuration are parsed to realize modular reuse of the pipeline three-dimensional model.
[0011] In one embodiment, the step of providing a marking element within the skeleton model further comprises:
[0012] The marking elements are numbered one by one, and the numbering is a combination of numbers and brief descriptions. The marking elements include at least one of points, lines, surfaces and coordinate axes.
[0013] In one embodiment, creating a pipeline configuration includes creating a configuration file, in which the pipeline variables are marked with preset symbols, and the numbers of the marking elements corresponding to the active components in the skeleton model and the numbers of the connection points between the driven components and the active components are recorded.
[0014] In one embodiment, assigning a value to the pipeline variable includes assigning a value to the pipeline variable by combining a variable name and a variable value.
[0015] In one embodiment, the grouping of the assignments of the pipeline variables into an assignment set includes:
[0016] Define an assignment set, where the elements in the assignment set are pipeline variables.
[0017] Assign a value to the pipeline variable and add the assigned value to the assignment set.
[0018] Repeatedly assign values to pipeline variables to create multiple assignment sets based on application requirements.
[0019] In one embodiment, instantiating the skeleton model through the interface includes:
[0020] Placing the skeleton model in an external design environment,
[0021] Using external elements to replace the interfaces in the skeleton model one by one,
[0022] Update the skeleton model, and the marker elements within the skeleton model will be dynamically adjusted accordingly.
[0023] In one embodiment, parsing the assignment set and pipeline configuration to achieve modular reuse of the pipeline three-dimensional model includes:
[0024] Read the assignment set to obtain the specific specification information of the component,
[0025] Using the specific specification information, specific components are obtained from the pipeline component library.
[0026] The pipeline configuration is parsed to obtain the relative position relationship of the components, and specific components are placed one by one according to the relative position relationship to complete the placement of all components in the pipeline and realize modular reuse of the pipeline three-dimensional model.
[0027] Secondly, a modular reuse system for pipeline 3D models is also provided, including:
[0028] A skeleton model creation module is used to create a parameterized skeleton model of the pipeline according to the spatial position of the pipeline model to be modularized, define the interface between the skeleton model and the external design environment, and set marking elements in the skeleton model;
[0029] a division module, analyzing relative positions of components in the pipeline model and dividing the components in the pipeline model into active components and passive components;
[0030] Creating a pipeline configuration assignment module, for creating a pipeline configuration, the pipeline configuration including pipeline variables, the relative positional relationship between the active component and the marking element, and the relative positional relationship between the passive component and the active component, assigning values to the pipeline variables, and grouping the pipeline configuration assignments into an assignment set;
[0031] An assembly module, configured to aggregate the skeleton model, pipeline configuration, and assignment set into a pipeline module;
[0032] The reuse module is used to place the pipeline module into the three-dimensional software. During three-dimensional modeling, the pipeline module is selected, the skeleton model is instantiated through the interface, and then the assignment set and pipeline configuration are parsed to realize modular reuse of the pipeline three-dimensional model.
[0033] In a third aspect, the present application provides a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement any of the above-mentioned pipeline three-dimensional model modular reuse methods.
[0034] In a fourth aspect, the present application provides a computer device comprising a memory and a processor, characterized in that a computer program is stored in the memory, and when the computer program is executed by the processor, any one of the above-mentioned pipeline three-dimensional model modular reuse methods is executed.
[0035] This application has at least the following beneficial effects:
[0036] 1. Based on the current state of 3D design software and the characteristics of pipeline modeling, this application provides a novel modular reuse method for pipeline models. Its modular reuse capabilities, based on design scenarios, significantly reduce repetitive operations, thereby improving modeling efficiency, and establish design constraints to enhance design quality. Furthermore, it will effectively support modular pipe design.
[0037] 2. The method and system provided in this application can package any set of piping models into a modular, reusable template, offering the advantages of one-time customization, multiple uses, and application in a variety of design scenarios. This is particularly useful for rapidly deploying pipe models with consistent morphology, such as a sounding pipe module. Furthermore, for complex equipment unit models, maintaining design consistency and accuracy based on the same reusable template, such as a central chiller unit, is crucial. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.
[0039] Figure 1 This is a flow chart of a modular reuse method for a pipeline three-dimensional model according to an embodiment of the present application;
[0040] Figure 2 Schematic diagram of the structure of internal components of a pipeline model according to an embodiment of the present application;
[0041] Figure 3 This is a design interface diagram for reusing a pipeline 3D model module according to an embodiment of the present application;
[0042] Figure 4 Schematic diagram of the structure of a central cooler device designed using a modular reuse method of a three-dimensional pipeline model according to an embodiment of the present application;
[0043] Figure 5 According to an embodiment of the present application, Figure 4 Schematic diagram of the structure of a central cooler device that reuses the same piping module but is designed based on different external design scenarios;
[0044] Figure 6 A skeleton model is shown according to an embodiment of the present application.
[0045] 100, left flange; 200, right flange; 300, gasket; 400, interface; 500, marking element. DETAILED DESCRIPTION
[0046] To make the objectives, technical solutions, and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Generally, the components of the embodiments of the present application described and shown in the drawings herein can be arranged and designed in various different configurations.
[0047] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for protection, but merely represents selected embodiments of the present application. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in the present application without creative work are within the scope of protection of the present application.
[0048] The present invention provides a modular reuse method for pipeline three-dimensional models. Figure 1 Flowchart of a modular reuse method of a pipeline 3D model according to an embodiment of the present application. Figure 1 , the method includes the following contents:
[0049] According to the spatial position of the pipeline model to be modularized, a parameterized skeleton model of the pipeline is created, the interface 400 between the skeleton model and the external design environment is defined, and a marking element 500 is set in the skeleton model. In this step, the interface 400 between the skeleton model and the external design environment is the input element required for the subsequent instantiation of the skeleton model, which is used for the dynamic generation of the skeleton instance model. The skeleton model interacts with the external design environment through the interface 400, and the skeleton model receives the external environment input and generates output. When the external design environment changes, the output of the skeleton model also changes accordingly. Based on this dynamic interaction process, the dynamic adjustment of the skeleton model based on the design environment is realized.
[0050] Analyze the relative positions of the components in the pipeline model and divide the components in the pipeline model into active components and passive components. In this step, the spatial position of the active component depends on the skeleton model, and the spatial position of the passive component depends on the active component. For a specific example, see Figure 2 The left flange 100, gasket 300, and right flange 200 are sequentially connected to form a fixed assembly, and the relative positions of the components within the assembly remain unchanged. The left flange 100 is the active component, and its spatial position is determined by reference to the marking elements of the external design environment. The gasket 300 and right flange 200 are passive components, and their spatial positions are determined by reference to the left flange 100.
[0051] Construct a pipeline configuration, which includes pipeline variables, the relative position relationship between the active component and the marking element 500, and the relative position relationship between the passive component and the active component. Assign values to the pipeline configuration, and group the pipeline configuration assignments into an assignment set. In this step, an XML-formatted configuration file is constructed to record the constraint position relationship of the components and the pipeline variables. Pipeline variables include component specifications, etc. It should be noted that the specific specifications of the components do not need to be specified in the configuration file. Preset symbols can be used for marking, thereby completing the declaration and release of variables. For example, the specifications of the pipeline component "flange" are not directly specified, but the variable name "flange specification-connection equipment" is used for variable declaration.
[0052] Next, based on the actual design scenario, specify specific values for the piping configuration. For example, the specific value for a piping component might be "slip-on flange - pipe outer diameter." The collection of assigned values is called an assignment set, and multiple assignment sets can be created based on application requirements. The specific steps include: first defining an assignment set object. The elements within an assignment set are assigned variables, which consist of a variable name and a value; then adding the assigned variables to the assignment set; and finally, creating multiple assignment sets based on specific application requirements.
[0053] The skeleton model, pipeline configuration, and assignment set are combined into a pipeline module. In this step, the name of the skeleton model and its directory are recorded in the above-mentioned XML configuration file, and the assignment set is saved to the XML configuration file. The configuration file is encapsulated into a complete management module, which serves as a management modular reuse template.
[0054] Configure the pipeline module into the 3D software. When modeling in 3D, select the pipeline module. Figure 3 Select the "Central Cooler Unit" piping module. The right window displays the prototype of the central cooler 3D model. Select "Scheme 1," which specifies the specifications for the standard series components. First, instantiate the skeleton model, then parse the assignment set and piping configuration to complete the modular reuse of the 3D piping model.
[0055] During the above implementation process, any group of pipeline models can be packaged into a reusable pipeline module, which has the advantage of one-time customization and multiple uses. The entire pipeline model modular reuse process is designed based on actual design scenarios, which can significantly reduce repetitive operations to improve modeling efficiency, and can effectively establish design constraints to improve design quality. Furthermore, the method of the present application also promotes the modular design of pipelines in three-dimensional models. A pipeline model can be applied to a variety of design scenarios, and has the function of rapid layout of pipeline models with the same shape, such as sounding pipe modules. In addition, for complex equipment unit models, the consistency and accuracy of the design can be maintained based on the same reuse model, such as central cooler equipment units.
[0056] In one embodiment, the marking elements within the skeleton model further include numbering the marking elements 500 one by one. The numbering is a combination of a number and a brief description. The marking elements include at least one of the following: a point, a line, a plane, and a coordinate axis. Specifically, the coordinate axis marking elements are numbered as "Axis" + a number, and the number cannot be repeated; the point marking elements are numbered as "Point" + a number, and the number cannot be repeated.
[0057] In one embodiment, creating a piping configuration includes:
[0058] Create an XML configuration file,
[0059] In the XML configuration file, component specifications are marked with preset symbols, and the number of the marking element 500 corresponding to the active component in the skeleton model is recorded. The number of the connection point between the passive component and the active component is recorded.
[0060] For active components, their instantiation positions depend on the skeleton model, and the number of the expected corresponding tag element 500 in the skeleton model is recorded in the configuration file. Specifically, when describing the position constraint information of the component "flange", the "port1" connection point of the "flange" coincides with the tag element "Axis_002" of the skeleton model. The position constraint types of active components and tag elements include the component coordinate axis coincident with the spatial coordinate system of its parent node, the paired coordinate axes coincident, the paired coordinate axis origin coincident, the X-axis directions are opposite, the Y-axis directions are opposite, the Z-axis directions coincide, and the paired coordinate axis origin has an offset distance, the X-axis is coaxial (the directions can be the same or opposite), and the Y-axis direction has a relative rotation angle.
[0061] For slave components, whose instantiation locations depend on the master component, the master component and its corresponding connection point numbers are recorded in the configuration file. For example, if the "port1" connection point of slave component 1 is connected to the "port2" connection point of master component 2, the master component 2 and its connection point "port2" can be recorded.
[0062] In one embodiment, assigning a value to the pipeline configuration includes assigning a value to the pipeline configuration by combining a variable name and a variable value.
[0063] In one embodiment, instantiating a skeletal model includes:
[0064] Place the skeleton model in an external design environment,
[0065] Select specific external elements in the external design environment and use them as input elements of the interface 400 of the skeleton model, that is, use the external elements to replace the interfaces in the skeleton model one by one. Figure 4In this context, external elements refer to the central chiller equipment in the design environment.
[0066] Update the skeleton model, and the marking elements 500 in the skeleton model are dynamically adjusted accordingly. Figure 6 In the figure, when the interface 400 in the skeleton model changes, based on the distance L between the two interfaces 400, the marking element 500 is located in the middle of the interface 400, and the distance from the single interface 400 is L / 2. Therefore, when the position of the interface 400 changes, the position of the marking element 500 is dynamically adjusted accordingly.
[0067] In one embodiment, parsing the assignment set and pipeline configuration to achieve modular reuse of the pipeline three-dimensional model includes:
[0068] Process the configuration information, read the assignment set, and obtain the specific specification information of the component,
[0069] Using the specific specification information, search the pipeline component library and obtain the specific components from the pipeline component library.
[0070] Then analyze the pipeline configuration, obtain the relative position relationship of the components, and place the specific components one by one according to the relative position relationship. The principle of placing components one by one is: give priority to placing the reference components when arranging the components. The placement position of the active component refers to the marking element, and the placement position of the passive component refers to the active component. After all components are placed, delete the skeleton model from the external design environment. Figure 4 To complete the placement of all components in the pipeline and realize the modular reuse of the pipeline 3D model. Figure 4 and Figure 5 This is the reuse result of the same pipeline module based on different external design scenarios. It can be seen that this method can realize the modular reuse of pipelines based on different design environments.
[0071] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Thus, the methods of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on a computer-readable storage medium (including but not limited to a magnetic disk, CD-ROM, or optical storage) containing computer-usable program code.
[0072] The computer program code can also be stored in a computer readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory generate a system that can be implemented in the process Figure 1 The functionality of a process or multiple processes.
[0073] The computer usable program code described above can also be loaded onto a computer or other programmable data processing device to cause the computer or other programmable device to execute a series of operating steps to produce a computer-implemented process, thereby providing instructions executed on the computer or other programmable device for implementing the process. Figure 1 One or more steps that specify a function in a process.
[0074] The above description is merely a preferred embodiment of the present application and is not intended to limit the present application. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present application shall be included within the scope of protection of the present application.
Claims
1. A modular reuse method for pipeline 3D models, characterized in that: include: Creating a parameterized skeleton model of the pipeline according to the spatial position of the pipeline model to be modularized, defining an interface between the skeleton model and an external design environment, and setting marking elements within the skeleton model; Analyzing the relative positions of the components in the pipeline model and dividing the components in the pipeline model into active components and passive components; Creating a pipeline configuration, the pipeline configuration including pipeline variables, a relative positional relationship between the active component and the marking element, and a relative positional relationship between the passive component and the active component, assigning values to the pipeline variables, and grouping the assigned values of the pipeline variables into an assignment set; The skeleton model, pipeline configuration and assignment set are combined into a pipeline module; The pipeline module is placed in the three-dimensional software. During the three-dimensional modeling, the pipeline module is selected, the skeleton model is instantiated through the interface, and then the assignment set and pipeline configuration are parsed to realize modular reuse of the pipeline three-dimensional model.
2. The modular reuse method for pipeline 3D models according to claim 1, characterized in that: The marking elements provided within the skeleton model further include: The marking elements are numbered one by one, and the numbering is a combination of numbers and brief descriptions. The marking elements include at least one of points, lines, surfaces and coordinate axes.
3. The modular reuse method of pipeline 3D models according to claim 2, characterized in that: The creation of the pipeline configuration includes creating a configuration file, in which the pipeline variables are marked with preset symbols, and the numbers of the marking elements corresponding to the active components in the skeleton model and the numbers of the connection points between the driven components and the active components are recorded.
4. The modular reuse method of pipeline 3D models according to claim 1, characterized in that: The assigning of values to the pipeline variables includes assigning values to the pipeline variables by combining variable names and variable values.
5. The modular reuse method of pipeline 3D models according to claim 1, characterized in that: The step of grouping the value assignments of the pipeline variables into a value assignment set includes: Define an assignment set, where the elements in the assignment set are pipeline variables. Assign a value to the pipeline variable and add the assigned value to the assignment set. Repeatedly assign values to pipeline variables to create multiple assignment sets based on application requirements.
6. The modular reuse method of pipeline 3D models according to claim 1, characterized in that: Instantiating the skeleton model through the interface includes: Placing the skeleton model in an external design environment, Using external elements to replace the interfaces in the skeleton model one by one, Update the skeleton model, and the marker elements within the skeleton model will be dynamically adjusted accordingly.
7. The modular reuse method of pipeline 3D models according to claim 1, characterized in that: The parsing of the assignment set and pipeline configuration to achieve modular reuse of the pipeline three-dimensional model includes: Read the assignment set to obtain the specific specification information of the component, Using the specific specification information, specific components are obtained from the pipeline component library. The pipeline configuration is parsed to obtain the relative position relationship of the components, and specific components are placed one by one according to the relative position relationship to complete the placement of all components in the pipeline and realize modular reuse of the pipeline three-dimensional model.
8. A modular reuse system for pipeline 3D models, characterized in that: include: A skeleton model creation module is used to create a parameterized skeleton model of the pipeline according to the spatial position of the pipeline model to be modularized, define the interface between the skeleton model and the external design environment, and set marking elements in the skeleton model; a division module, analyzing relative positions of components in the pipeline model and dividing the components in the pipeline model into active components and passive components; Creating a pipeline configuration assignment module, for creating a pipeline configuration, the pipeline configuration including pipeline variables, the relative positional relationship between the active component and the marking element, and the relative positional relationship between the passive component and the active component, assigning values to the pipeline variables, and grouping the pipeline configuration assignments into an assignment set; An assembly module, configured to aggregate the skeleton model, pipeline configuration, and assignment set into a pipeline module; The reuse module is used to place the pipeline module into the three-dimensional software. During three-dimensional modeling, the pipeline module is selected, the skeleton model is instantiated through the interface, and then the assignment set and pipeline configuration are parsed to realize modular reuse of the pipeline three-dimensional model.
9. A computer-readable storage medium, characterized in that Computer program instructions are stored, and when the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. A computer device comprising a memory and a processor, characterized in that: The memory stores a computer program, which, when executed by the processor, performs the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Function modular pipeline arrangement method, system, equipment and medium
CN112507407A
Template, process and automatic model design method for pipeline system
CN115114749A