Establishing method of valve assembly rapid creating and editing system based on PDMS
By establishing a valve component creation and editing system in a PDMS environment, using PML language and COCO code logic to automatically match and position the valve and its accessories, the problem of inefficient valve creation and positioning in process pipeline design is solved, achieving efficient and accurate valve assembly design.
Patent Information
- Application Number
- CN202411150223.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2044-08-21
AI Technical Summary
During the forward design of process pipelines, there are problems of inefficiency and poor accuracy in the creation and positioning of valves. Especially due to the diversity of valve types and end face connection forms, designers need to frequently manually select and match accessories, resulting in cumbersome design process And error-prone.
The valve assembly based on PDMS is used to quickly create and edit the system, and the automatic matching and precise positioning of valves and their accessories is achieved through the grade library preset units, accessories principle units, valve selection units and valve group positioning units. The system uses PML language and COCO code logic to automatically identify valve types and end face forms, simplifying the designer's operating procedures and reducing human judgment and manual selection.
It realizes rapid creation and precise positioning of valves and their components, improves design efficiency and accuracy, reduces designers' operational complexity and error rate, and improves process pipeline modeling efficiency.
Smart Images

Figure CN119129206A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a modeling design technology, and in particular to a method for establishing a valve component rapid creation and editing system based on PDMS. Background Art
[0002] At present, in the process of forward design of process pipelines, the creation of hand valves, instrument valves and instrument measurement points needs to be based on the end face form of the current pipe fittings using the modeling function provided by the software; the type of valves and end face connection forms to be added need to match the corresponding valve accessories. In view of the diversity of valve types and end face connection forms, designers need to add all accessories in sequence, such as matching flanges, gaskets, threaded nipples, etc. In addition, in the PDMS environment, due to the universality of the valve grade library, valve accessories and valve bodies are independent components, and often belong to different grade libraries. This will cause designers to screen valves in a huge database during the traditional modeling process, and frequently manually switch component grades, which is troublesome and easy to make wrong choices.
[0003] Based on different project requirements (whether accessories require material statistics), there are also differences in the way valves are added, which requires human judgment and manual selection of components. In addition, since the valve group is composed of multiple components, the composition structure is complex and different. The traditional valve group positioning process is relatively cumbersome, and manual measurement of spacing is often used. After determining the displacement direction and distance, the displacement is carried out by dragging, and it is necessary to consider the synchronous displacement of all components contained in the valve group, which is inefficient.
[0004] The creation steps of traditional hand valves, instrument valves, and instrument measurement points are relatively cumbersome, and most of the time human judgment and manual selection are required, making it difficult to achieve the design requirements of high efficiency, accuracy, customizable editing, and post-processing. Summary of the invention
[0005] Aiming at the problems of design time and accuracy in valve creation and post-processing in PDMS process pipeline design, a method for establishing a rapid creation and editing system of valve components based on PDMS was proposed to realize the rapid creation and precise positioning of valves and their accessories in process engineering pipeline modeling.
[0006] The technical solution of the present invention is: a method for establishing a valve component rapid creation and editing system based on PDMS, which specifically includes the establishment of the following four units:
[0007] 1) Establish a grade library preset unit: All pipe grades contained in the PDMS pipe library will be searched, read, and arranged in the total library list of the control through the PML language. Designers select the required pipe grades from the total library list and classify them into the manual valve grade range, instrument valve grade range, and accessory grade range respectively; configure, add, and remove multiple times or in batches; when the total library changes, the grade library preset unit will re-read the background environment and automatically refresh the total library list through the reload of the main control of the grade library preset unit;
[0008] 2) Establish accessory principle unit:
[0009] Used to set the valve group accessories matching mode. Three principles are established in the accessories principle unit for designers to choose freely, including: A. Custom accessories, B. Accessory level dynamically follows pipe fitting level, C. No accessories are added. Under A. Custom accessories principle, designers need to manually select the level of accessories in the defined accessory level range according to process requirements.
[0010] B. Under the principle that the accessory level dynamically follows the pipe level, the PML command will read the pipe level attribute of the current pipe component and assign it to the accessory level selection menu. This attribute is a dynamic assignment attribute, so that the level of the accessory is always consistent with the level of the current pipe. When there is a cross-level connection requirement, that is, the current component level and the accessory level are not consistent according to the process requirements, the principle mode is automatically changed to A.
[0011] C. Without adding accessories, the creation language of the valve group will be different from A and B, the accessory level will be automatically assigned a null value, no accessories will be generated when adding valves, and the valve group will only contain a single valve body element;
[0012] 3) Establish a valve selection unit: used to select the target valve type, classify each type of valve in the grade library with a unique character segment, and assign corresponding creation buttons to different types of valves in the valve selection unit control interface. The character segment is composed of elements, and the elements are assigned to a custom list. Each element attribute includes the valve caliber, type and description; the connectivity of valves and accessories is achieved through the matching logic of the COCO code. The COCO code table includes the matching logic of all pressure levels and end connection forms;
[0013] 4) Establish valve group positioning unit:
[0014] Used to edit the valve group orientation, locate the valve body itself in the design tree or 3D model, click the Add to List button, and use the built-in compiled PML read and write commands to grab all elements in the valve group and present them in the list, including the ID name of each component and its element type. All valve components are automatically selected and integrated into a target unit, and precise positioning is achieved by entering the offset or spacing values of adjacent pipes or components.
[0015] Furthermore, the levels defined in the grade library preset unit will be saved to the software background file in the form of a mapping file, and will be correspondingly associated with the component level selection area of the grade library preset unit main control. The remaining levels that have not been summarized will no longer be displayed in the main control; re-editing the grade library preset unit will synchronously modify the background mapping file, so that the level range of the main control is always consistent with the final modification content.
[0016] Furthermore, the PDMS pipe creation modes in the valve selection unit are divided into two types: along the medium flow direction and against the medium flow direction. This control reads the current mode through the PML judgment command statement and associates it with the mode variable in the component creation statement, so that the creation mode of the valve component is always consistent with the current mode; it can be switched freely through the mode conversion command, and the corresponding prompt statement is displayed in the interface window.
[0017] Furthermore, in the valve selection unit, for the addition of instrument measuring points in the instrument element, an independent branch pipe level is preferentially created in the inherent mode of the software, and the measurement point type is selected; the instrument measuring point character segment attribute button in the instrument measuring point unit integrates the creation of the branch pipe level, the naming and pointing of the instrument measuring point, and the offset steps from the reference pipe through the PML creation command, and the set value is gradually output to the main control through the Alert.Message function. This function is a pop-up window logic structure and does not occupy the main control interface space.
[0018] A method for quickly creating and editing a valve component, using the method for quickly creating and editing a valve component based on PDMS as described in claim 4 to establish a system for quickly creating and editing a valve component, wherein the system editing steps are as follows:
[0019] First, select the corresponding grade library from the total library list in the grade library preset unit, and select the required manual valve list, instrument valve list and accessories list;
[0020] Then set the valve group accessories matching mode in the accessories principle unit;
[0021] Secondly, select the target valve type in the valve selection unit;
[0022] Finally, the valve group position is edited in the valve group positioning unit to obtain the final valve assembly model.
[0023] Furthermore, the system editing steps described in the valve component quick creation and editing method are created one by one, and incorrect matching methods directly lead to errors in the software connection form. During the editing process, the corresponding main control provides error prompts and processing instructions for various possible errors, and specifically points to the cause of the error, which is convenient for quickly correcting and improving the background configuration.
[0024] The beneficial effects of the present invention are as follows: the present invention provides a method for establishing a rapid creation and editing system for valve components based on PDMS, which realizes automatic matching and creation of valves and their components, can predefine component grade ranges, pre-screen valve types; automatically determine the end face connection form; accurately combine all components and precisely edit the valve group orientation. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 Rapidly create and edit a system structure flow chart for the valve assembly of the present invention;
[0026] Figure 2A The character segment corresponding to the valve type of the present invention Figure 1 ;
[0027] Figure 2B The valve type of the present invention corresponds to the character segment Figure 2;
[0028] Figure 3 Creating an interface diagram for the control valve of the present invention;
[0029] Figure 4 It is the COCO encoding rule diagram of the present invention;
[0030] Figure 5 Edit the valve group position unit schematic diagram for the present invention;
[0031] Figure 6 This is the final model rendering of the present invention. DETAILED DESCRIPTION
[0032] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.
[0033] A method for quickly creating valve components, such as Figure 1 The valve components shown in the figure can quickly create and edit the system structure flow chart to create the system:
[0034] 1. Grade library preset unit:
[0035] The PDMS pipeline library contains several categories, including project level, general level and external reference level, and all pipeline components are included in it. Based on the software's own method, the level to which the target component belongs must be selected before the component is created, and the number of options is very large. The purpose of designing the grade library preset unit here is to narrow the grade library selection range of the hand valve level, instrument valve level and accessory level through the grade library preset method, as the default setting each time this tool is opened, to reduce the probability of wrong selection, and at the same time, the setting can be modified by re-editing.
[0036] All pipe grades included in the PDMS pipe library will be searched, read, and arranged in the total library list of the control through the PML language (AVEVA internal programming language), so that designers can select the required pipe grades from the total library list and classify them into the manual valve grade range (Valv-Spec), instrument valve grade range (Inst-Spec), and accessory grade range (Accessory-Spec). This selection can be configured, added, or removed single, multiple, or in batches. When the total library changes, the grade library preset unit will re-read the background environment and automatically refresh the total library list through the reload function of the grade library preset unit main control.
[0037] The level defined by the level library preset unit will be saved to the software background file in the form of a mapping file, and will be correspondingly associated with the component level selection area of the level library preset unit main control. The remaining levels that have not been summarized will no longer be displayed in the main control, achieving the purpose of narrowing the level selection range. Re-editing this unit will synchronously modify the background mapping file so that the level range of the main control is always consistent with the final modification content. Designers can also achieve the configuration purpose by directly modifying the background mapping file (txt format, editable) while ensuring the format specification.
[0038] 2. Accessories principle unit:
[0039] The core function of this accessory principle unit is to automatically identify the valve type and end face form, so as to automatically match the corresponding matching components, rather than manually creating valve group units one by one. In response to different project requirements, the creation principles of valve accessories are also different. This unit can freely determine the way to add accessories and automatically determine the accessory level, further improving modeling efficiency. This unit provides three principles for designers to choose freely, including: A. Custom accessories, B. Accessory level dynamically follows the pipe fitting level, and C. No accessories are added.
[0040] A. Under the principle of custom accessories, designers need to manually select the grade of accessories in the defined accessory grade range according to process requirements. For valve groups with cross-grade connection requirements, this principle can ensure the absolute accuracy of the design. The grade of all pipe fittings in the PDMS system depends on the project pipeline grade table, which is generally divided according to the material and pressure grade of pipeline fittings. Under normal circumstances, the pressure grades of flanges, flange gaskets, and valves under the same pipeline grade are the same, but there are also cases of cross-pressure grade connections (based on process flow charts). For example, 10 kg and 16 kg flanges, gaskets, and flange face valves below DN50 can be matched and connected with each other. In this case, designers need to select the principle of custom accessories and select the correct accessory grade to meet the process requirements of cross-grade creation.
[0041] B. Under the principle that the accessory level dynamically follows the pipe fitting level, the PML command will read the SPREF attribute of the current pipe fitting (that is, the name of the pipe level to which the component belongs) and assign it to the accessory level selection menu. This attribute is a dynamically assigned attribute, so that the level of the accessory is always consistent with the level of the current pipe fitting, and there is no need for designers to make manual judgments and selections. According to this rule, designers will not need to consider the selection of accessory levels, and modeling efficiency will be significantly improved. It is worth noting that when there is a need for cross-level connection, that is, when the current component level and the accessory level are not consistent according to process requirements, the principle mode will be automatically changed to A.
[0042] C. Under the principle of not adding accessories, the creation language of the valve group will be different from A and B, the accessory level will be automatically assigned a null value, and accessories (flanges, gaskets, threaded pipes, etc.) will no longer be generated when adding valves. This principle mode is suitable for special situations where there is no need to perform accessory material statistics and no need for three-dimensional model presentation. The valve group will only contain a single valve body element.
[0043] Designers check the required accessory principle, which is unique and does not conflict with other options. The accessory level will be displayed in different accessory level presentation forms in different principles through the judgment command of the PML language and in the drop-down menu bar. Principle A is the default setting that can meet the valve group creation requirements in all cases. At the same time, the main control interface of the accessory principle unit includes the function of adding accessories separately, which is used to temporarily repair the failure of automatic matching caused by misoperation or irregular formulation of the grade library.
[0044] 3. Valve selection unit:
[0045] In order to simplify the valve grade library, the general hand valve grade and instrument valve grade will be placed in a grade library preset unit, which means that the valve library contains various types of valves. When using the traditional software to create valves, designers will screen in the huge data, which is inefficient and easy to make wrong choices. For example, the hand valve grade library contains gate valves, stop valves, ball valves, butterfly valves, check valves, knife gate valves and other types.
[0046] The valve selection unit classifies each type of valve in the grade library with a unique character segment, and gives corresponding creation buttons to different types of valves in the valve selection unit control interface. Define the set character segment as a variable through the PML creation command. Click different buttons, and the valve selection will automatically read this character segment and filter it in the grade library, arranging the valve grades that meet the character segment in the selection list, thereby filtering out unnecessary valve types. The definition of the character segment is as follows Figure 2A , 2B As shown, the layout of the control buttons is as follows Figure 3 shown.
[0047] Since the hand valve and instrument valve are independent of each other in the grade library preset unit, and their element types are also different in PDMS (hand valve: Valv; instrument valve: Inst), the hand valve and instrument valve are also divided into two independent windows in the valve selection unit main control.
[0048] The naming method of this character segment is not unique. You only need to ensure that the PML creation command corresponds to the character segment one by one, and that the character segments in independent windows have no duplicate names.
[0049] Based on the valve selection unit control, when the designer clicks on the target type of valve, the elements of the corresponding field will be automatically screened out in the grade library and assigned to the custom list. Each element attribute includes the valve caliber, type and description. The selection interface will only present one type of valve. Compared with the traditional method, it greatly improves the creation efficiency and reduces the risk of wrong selection. Based on the open source characteristics of the PML language, the element attributes of this selection interface can be customized according to actual requirements. The valve selection unit control extracts the three main attributes of the valve grade: caliber, type, and description for designers to refer to and select.
[0050] The PDMS pipe creation mode in the valve selection unit is divided into two types: forward and backward. This control reads the current mode through the PML judgment command statement and associates it with the mode variable in the component creation statement, so that the creation mode of the valve component is always consistent with the current mode. Designers can switch freely through simple mode conversion commands (For or Bac) and display the corresponding prompt statement in the interface window to meet actual needs.
[0051] Different from the component characteristics of valves and instrument valves, the addition of instrument messure points in instrument components in the valve selection unit requires the creation of an independent branch level in the inherent mode of the software, and the selection is made according to the actual measurement point type. Its generation method is more complicated than that of manual valves and instrument valves. The IMP (instrument measurement point character segment attribute) button in the instrument measurement point unit can integrate the steps of creating a new branch level, naming and pointing of instrument measurement points, and offset from reference pipes through the PML creation command. The set value can be gradually output to the main control through the Alert.Message function (variable custom prompt box). This function is a pop-up window logic structure and does not occupy the main control interface space.
[0052] To ensure the correct connection between components, the COCO code table of PDMS includes the matching logic of all pressure levels and end connection forms. The connectivity of valves and accessories is achieved through the matching logic of COCO code. This valve selection unit and the accessory principle unit are interlocked in the system. According to the pressure level and end connection form of the selected element, under the premise that the accessory level preset library is complete and the accessory principle is clearly defined, the control will automatically retrieve the COCO characters of the accessories in the grade library through the PML judgment language to find the elements that match the COCO characters at the inlet and outlet of the valve. Due to the diversity of valve group structures, the accessories must be composed of the defined grade library and created layer by layer to ensure the accuracy of the model. Incorrect matching methods will lead to errors in the software connection form. COCO coding errors; incomplete COCO table content; missing elements in the accessory grade library, etc. may all lead to connection errors. The error content of the software cannot clearly point out the cause of the error, making it impossible for designers to efficiently perform error handling and model correction. This main control provides error prompts and processing instructions for all kinds of possible errors, and specifically points to the cause of the error, which is convenient for quickly correcting and improving the background configuration. At the same time, a forced connection execution method (breaking the limitations of COCO matching logic) is provided for designers to choose.
[0053] like Figure 4 As shown: The COCO code encoding rules formulated for component matching cover most of the process pipe connection forms.
[0054] Each COCO code consists of four characters, which correspond to the connection form, standard series, pressure level and end face form. The connection of the valve body and its accessories must strictly follow this coding rule. The automatic creation function of this control also uses this rule as a logical base point to filter out matches that do not meet the connection rules. For example, the correct matching form of the ASME Class150 raised face valve with flange connections at both ends is:
[0055] Flange FBBB→gasket GBBB→FBBB inlet valve outlet FBBB→gasket GBBB→flange FBBB
[0056] This coding rule can be customized based on the project system or company system. For some unconventional connection forms, additional connection relationships need to be specified in the COCO code table. The parts of the control program that involve COCO codes must always be consistent with the coding rules.
[0057] 4. Valve group positioning unit:
[0058] The traditional PDMS pipe position editing method is to use the Model Editor tool, select the pipe and specify the direction, then manually drag the displacement. Usually, the displacement amount needs to be determined by measuring the coordinate distance between the current pipe and the reference object. For valve assembly units, there are many types of components, and the number is not unique. In order to ensure that the valve group components always maintain connectivity when editing the position, it is necessary to select the entire valve group before performing the displacement operation. For valve groups with compact spatial distances, it is difficult to ensure the accuracy of the selection, and multiple selections, missed selections, and misoperations often occur, making subsequent repairs and processing time-consuming and laborious.
[0059] The purpose of the valve manifold positioning unit is to provide a method of automatically selecting all valve components and integrating them into one target unit, and accurately positioning them by entering offset or spacing values (adjacent pipe elements).
[0060] like Figure 5As shown: the designer locates the valve body itself in the design tree or 3D model, clicks the Add to List button, and through the built-in compiled PML read and write commands, all elements in the valve group are captured and presented in the list, including the ID name of each component and its element type. Due to the diversity of valve structures, this judgment statement covers a variety of possible connections and limits the range of element types to be captured: VALV (manual valve); INST (instrument valve); GASK (gasket); FLAN (flange); LJSE (turn over); FTUB / NIPPLE (short joint). Non-valve group elements will not be read under this limited range. The capture logic of this function is: taking the valve body (actual positioning element) as the base point, the elements are traversed one by one along the inlet and outlet directions respectively. The elements within the limited range will be read until the non-limited elements, and the element type is not repeated in a single direction, which ensures the correctness of the process valve connection. For the valve group without accessories (welding form or no need for accessories discharge statistics), the extraction object is only the single valve body itself. This logic forms a closed loop with the valve group creation logic in the valve selection unit. The original valve group is presented in the form of ID (identification code / name) + TYPE (type), and is automatically colored and highlighted in the 3D model to facilitate the designer's verification. This list provides a direct positioning function. Click the corresponding line to automatically select the target element in the design tree and 3D model. The valve group orientation editing methods of this unit are: MOVE (displacement of a specified distance along or against the flow direction of the medium);
[0061] SPOOL (the end face of the valve group always maintains a fixed distance from the end face of the adjacent previous component or the next component).
[0062] In the main control MOVE window, fill in the specified displacement as a variable. The PML displacement command and reading of the displacement variable cause all captured valve group components to move in the same or opposite direction of the medium flow. If you need to change the displacement direction, you can do so by filling in a negative value or switching the Mode under the main control. In the default mode, the displacement direction will be determined by identifying the current mode. Forward and Backward represent the forward and reverse flow directions, respectively.
[0063] In the main control SPOOL window, fill in the specified spacing value as a variable. The PML displacement command and reading of the spacing variable cause all captured valve group components to shift toward the adjacent components until the spacing value is met. Similar to the MOVE mode, designers can control whether the reference point is the previous adjacent component or the next adjacent component by switching the Mode. The starting point of this spacing is the end face of the component at the edge of the valve group. Based on different valve group structural components and different Mode forms, there are many possibilities for the edge component type (flange; turn over; short section). Therefore, when grabbing valve group components, all elements are arranged in sequence according to the composition in the three-dimensional model through the PML sorting statement. Before performing the displacement operation, the system automatically locates the end element in the list, and according to the actual situation of the Mode form, the first and last elements will automatically switch so that the starting and ending points of the spacing can be correctly defined. Figure 5 The valve group orientation shown in can be regarded as the final effect when the SPOOL value is 0 in the Forward mode, and the edge element (flange) of the valve group coincides with the end face of the adjacent previous element (elbow). In this unit built-in displacement command, all elements of the valve group will always be connected through the CONN command to ensure that there is no internal offset that affects its internal connectivity.
[0064] For example: Add a manual ball valve and its components with flange end connection and pressure grade PN10 after a 90-degree butt-welded elbow along the medium flow direction, and ensure that the flange gasket of the valve group accessories belongs to the same pipeline grade as this elbow (meet the requirements of the process flow chart), and the distance between the entire valve group and the end face of this elbow is 1000 mm.
[0065] 1. Preset the manual valve grade library, instrument valve grade library and accessories grade library in the grade library preset unit:
[0066] Click the Setting button of the main control of the grade library preset unit to enter the grade preset function area, select the corresponding grade library from the "Total Library" list, add it to the manual valve list, instrument valve list and accessories list respectively, and click OK to complete the preset. Return to the main control interface and click "Reload Interface" to refresh the settings.
[0067] 2. Set the valve group accessories matching mode in the accessories principle unit:
[0068] According to the requirements of the process flow chart: the flange of this valve group accessory; the gasket needs to belong to the same pipe grade as the current pipe fitting (butt-weld elbow), so check "Accessory Spec dynamically follows pipe fitting", and you can find that the default option in the accessory grade drop-down menu will automatically jump to the grade library to which the butt-weld elbow belongs. This grade library determines the ownership of the automatically generated valve group accessories in the subsequent modeling process.
[0069] 3. Select the target valve type in the valve selection unit:
[0070] According to the modeling requirements: the valve type to be created is a flange-type, PN10 pressure grade manual ball valve, and the creation direction is along the medium flow direction. Enter Forward in the "CommandWindow" command box to determine the creation direction, select the grade of the target valve in the manual valve grade selection drop-down menu (the selection range has been clearly defined in step 1), click the "BAL" button (corresponding to the ball valve type) in the manual valve classification area of the main control, and then select the flange-type, PN10 ball valve according to the valve description displayed in the pop-up box and confirm. At this point, the valve and its components are created.
[0071] 4. Edit the valve group position in the valve group positioning unit:
[0072] According to the requirements of the 3D model: this valve group needs to maintain a distance of 1000 mm from the end face of the initial pipe fitting. Click the "Edit valve group orientation" button in the main control to enter the valve group positioning function area. Select the valve body element (non-accessory element) in the model and click the "Grab" button. The system will automatically extract the entire valve group element into the element list and display the type and name of each element. Enter 1000 in the spacing text box of the sub-control and click the "Spool" button. The valve group will be positioned 1000 mm away from the end face of the initial component (butt-weld elbow). The final model effect is as follows Figure 6 shown.
[0073] In view of the various types of manual valves and instrument valves, a set of matching logic that meets the actual process requirements is customized. In the implementation process, a series of technical means and judgment methods are adopted based on AVEVA's built-in compiled language PML, pre-configuring the modeling environment, matching principles, filtering the selection range, integrating complex operation steps, and improving the efficiency of forward design.
[0074] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A method for establishing a valve component rapid creation and editing system based on PDMS, characterized in that: Specifically, it includes the establishment of the following 4 units: 1) Establish a grade library preset unit: All pipe grades contained in the PDMS pipe library will be searched, read, and arranged in the total library list of the control through the PML language. Designers select the required pipe grades from the total library list and classify them into the manual valve grade range, instrument valve grade range, and accessory grade range respectively; configure, add, and remove multiple times or in batches; when the total library changes, the grade library preset unit will re-read the background environment and automatically refresh the total library list through the reload of the main control of the grade library preset unit; 2) Establish accessory principle unit: Used to set the valve group accessories matching mode. Three principles are established in the accessories principle unit for designers to choose freely, including: A. Custom accessories, B. Accessories level dynamically follows pipe fittings level, C. No accessories are added; A. Under the principle of custom accessories, designers need to manually select the grade of accessories from the defined accessory grade range according to process requirements; B. Under the principle that the accessory level dynamically follows the pipe level, the PML command will read the pipe level attribute of the current pipe component and assign it to the accessory level selection menu. This attribute is a dynamic assignment attribute, so that the level of the accessory is always consistent with the level of the current pipe. When there is a cross-level connection requirement, that is, the current component level and the accessory level are not consistent according to the process requirements, the principle mode is automatically changed to A. C. Without adding accessories, the creation language of the valve group will be different from A and B, the accessory level will be automatically assigned a null value, no accessories will be generated when adding valves, and the valve group will only contain a single valve body element; 3) Establish a valve selection unit: used to select the target valve type, classify each type of valve in the grade library with a unique character segment, and assign corresponding creation buttons to different types of valves in the valve selection unit control interface. The character segment is composed of elements, and the elements are assigned to a custom list. Each element attribute includes the valve caliber, type and description; the connectivity of valves and accessories is achieved through the matching logic of the COCO code. The COCO code table includes the matching logic of all pressure levels and end connection forms; 4) Establish valve group positioning unit: Used to edit the valve group orientation, locate the valve body itself in the design tree or 3D model, click the Add to List button, and use the built-in compiled PML read and write commands to grab all elements in the valve group and present them in the list, including the ID name of each component and its element type. All valve components are automatically selected and integrated into a target unit, and precise positioning is achieved by entering the offset or spacing values of adjacent pipes or components.
2. The method for establishing a valve component rapid creation and editing system based on PDMS according to claim, characterized in that: The levels defined in the grade library preset unit will be saved to the software background file in the form of a mapping file, and will be correspondingly associated with the component level selection area of the grade library preset unit main control. The remaining levels that have not been summarized will no longer be displayed in the main control; Re-editing the preset unit of the level library will synchronously modify the background mapping file, so that the level range of the main control is always consistent with the final modified content.
3. The method for establishing a PDMS-based valve component rapid creation and editing system according to claim 1 or 2, characterized in that: The PDMS pipe creation modes in the valve selection unit are divided into two types: along the medium flow direction and against the medium flow direction. This control reads the current mode through the PML judgment command statement and associates it with the mode variable in the component creation statement, so that the creation mode of the valve component is always consistent with the current mode; it can be switched freely through the mode conversion command, and the corresponding prompt statement is displayed in the interface window.
4. The method for establishing a valve component rapid creation and editing system based on PDMS according to claim 3, characterized in that: For the addition of instrument measuring points in the instrument element in the valve selection unit, an independent branch pipe level is preferentially created in the inherent mode of the software, and the measurement point type is selected; the instrument measuring point character segment attribute button in the instrument measuring point unit integrates the creation of the branch pipe level, the naming and pointing of the instrument measuring point, and the offset steps from the reference pipe through the PML creation command, and the set value is gradually output to the main control through the Alert.Message function. This function is a pop-up window logic structure and does not occupy the main control interface space.
5. A method for quickly creating and editing a valve component, characterized in that: The valve component rapid creation and editing system is established by using the PDMS-based valve component rapid creation and editing system establishment method described in claim 4, and the system editing steps are as follows: First, select the corresponding grade library from the total library list in the grade library preset unit, and select the required manual valve list, instrument valve list and accessories list; Then set the valve group accessories matching mode in the accessories principle unit; Secondly, select the target valve type in the valve selection unit; Finally, the valve group position is edited in the valve group positioning unit to obtain the final valve assembly model.
6. The method for quickly creating and editing a valve component according to claim 5, characterized in that: The system editing steps are created one by one. Incorrect matching methods directly lead to errors in the form of software connection. During the editing process, the corresponding main control provides error prompts and processing instructions for various possible errors, and specifically points to the cause of the error, which is convenient for quickly correcting and improving the background configuration.
Citation Information
Patent Citations
Statistical method for bolt information in PDMS (Product Data Management System) model
CN104537148A
Method for data conversion between stress analysis and three-dimensional models in pipeline design
CN106383955A
Automatic arrangement method and device of valve group and electronic equipment
CN115422749A
Parametric modeling method for station equipment based on PML (Platform Management Language)
CN117372618A
Factory planning SaaS system building method based on model lightweight
CN117456094A
Cited By
System and method for batch modification of pipeline elements based on PDMS
CN121681544A
