A method for binding design of main and auxiliary parameter configuration in an industrial design process
By using the primary and secondary parameter configuration binding design method, the problems of repetitiveness and consistency in parameter configuration in the industrial design process are solved, achieving high efficiency and accuracy in parameter configuration, reducing the risk of errors, and improving the overall efficiency of the process.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NANJING WIT SCI & TECH CO LTD
- Filing Date
- 2022-12-26
- Publication Date
- 2026-07-14
AI Technical Summary
In the industrial design process, the repeated configuration of the same parameters leads to increased workload and the risk of configuration errors, especially in the interdependence between multiple steps, where it is difficult to ensure that parameter configuration is consistent.
The design method of binding primary and secondary parameter configuration is adopted. By defining primary and secondary parameters in the parameter configuration system, the secondary parameters automatically obtain their data after the primary parameter is configured once, avoiding repeated configuration. The system also ensures that each parameter has one and only one primary parameter through validation, thus ensuring the integrity of the data link.
It achieves high efficiency and accuracy in parameter configuration, reduces the risk of redundant configuration and errors, ensures the consistency and integrity of parameter configuration, and improves the efficiency and accuracy of the industrial design process.
Smart Images

Figure CN115688485B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of industrial design, and more particularly to a design method for binding primary and secondary parameter configurations in the industrial design process. Background Technology
[0002] Industrial design involves a lot of business logic. In industrial software, there are often many interdependencies between the various steps. The integrity of each process function requires a lot of parameter configuration, and each parameter needs to be configured in more detail. These parameter configurations often require professionals to carefully configure them. However, in many cases, a single activity may need multiple identical parameters. In this case, repeated configuration is required when there are many identical parameters, which not only increases the workload but also increases the risk of configuration errors and inconsistencies. Summary of the Invention
[0003] The purpose of this invention is to address the shortcomings of existing technologies by proposing a design method for binding primary and secondary parameter configurations in the industrial design process.
[0004] To achieve the above objectives, the present invention adopts the following technical solution: a design method for binding primary and secondary parameter configurations in an industrial design process, based on a parameter configuration system, wherein the parameter configuration system includes a front-end, a server, and a database;
[0005] Includes the following steps:
[0006] S1: Configure the parameters involved in business activities;
[0007] The front-end displays a page for business activities. The business activities are activity templates, and the required parameters are configured for creating groups on the activity templates.
[0008] The parameters are design parameters, including basic information, which includes parameter name, parameter value, and parameter code, and the parameter code includes type;
[0009] S2: Parameter constraint configuration;
[0010] The first parameter appearing in the configuration activity template is set as the primary parameter by default, and subsequent identical parameters are set as secondary parameters; and the primary and secondary parameters are identified by field attributes;
[0011] The constraint is configured as a fixed template, which includes a function type and a parameter code. The function type includes a form, an input box, and a drop-down box. The parameter code of the main parameter is obtained, and a fixed template with the same parameter code is matched based on the obtained parameter code.
[0012] S3: Add / modify or remove parameters in groups;
[0013] During the configuration of the activity template, grouping parameters can be added, modified, or removed.
[0014] S4: View parameter configuration;
[0015] To view the parameter configuration on the page, search by primary relationship. All parameter constraint configurations are displayed for primary parameters, while secondary parameters are only viewable.
[0016] S5: Switching between primary and secondary parameters;
[0017] Manually select one of the auxiliary parameters as the primary parameter, and the corresponding parameter constraint configuration will be attached to the latest primary parameter. At this time, the basic parameter information and constraint configuration of the corresponding primary parameter will be modified, and other auxiliary parameters will be modified synchronously.
[0018] S6: Save the parameter configuration of the activity template and verify whether a master parameter exists;
[0019] Save the parameter configuration of the entire activity template, and verify that the parameter of type code for each parameter exists and that there is a primary parameter. If it does not exist, manually set a parameter as the primary parameter.
[0020] S7: Configuration complete, save parameter configuration;
[0021] After verification, each parameter has a master parameter and there is one of each parameter. Save the final activity template, store the parameter configuration in the database, and complete the current configuration.
[0022] Preferably, the parameter codes of the same parameters in the activity templates under the same industrial design are the same, and the types of the parameter codes are also the same;
[0023] Preferably, step S3 specifically includes:
[0024] When a parameter is added / modified to another parameter, and the modified parameter is the first time it appears, and the default is the main parameter, the code of the modified parameter is obtained, and the fixed template corresponding to the parameter code is matched to configure the constraint of the new main parameter.
[0025] When the primary parameter is modified to be an auxiliary parameter of another parameter, i.e. the parameter code changes, the constraint configuration of the primary parameter is deleted, and the modified parameter code obtains the constraint configuration of the primary parameter with the same parameter code.
[0026] Preferably, the auxiliary parameters use the main parameters with the same parameter code as the data source to obtain the basic information and constraint configuration of the main parameters;
[0027] The field attributes include 0 and 1; where 0 represents the primary parameter and 1 represents the secondary parameter; the front end displays the parameters and constraints of the activity template as editable or grayed out and uneditable according to the field attribute being 0 or 1, and renders the primary and secondary parameters on the activity template.
[0028] Preferably, step S5 specifically includes: selecting one of the parameters and sending an instruction to the server to set it as the primary parameter; the server obtains the parameter name of the parameter; using the parameter name as the keyword, it iterates through all parameters with this parameter name; based on all the obtained parameters, it obtains the corresponding field attributes of the parameters; it obtains the parameters with field attributes of 0; it compares whether the parameter is the selected parameter; if so, the selected parameter is the primary parameter; if not, it modifies the field attribute of the parameter with field attribute of 0 to 1, and modifies the field attribute of the selected parameter to 0; the front end displays the parameters and their constraint configurations of the activity template as editable based on the field attribute of 0, thereby realizing the setting of the selected parameter as the primary parameter.
[0029] Preferably, step S6 specifically involves: after saving the activity template as the initial activity template, obtaining the basic information of all parameters of the initial activity template and saving it as a parameter table, grouping the obtained basic information of the parameters according to the parameter code, and grouping parameters with the same type of parameter code into one group, thus realizing the classification of the same parameters;
[0030] Based on the grouping, the field attributes of the parameters are retrieved in a loop within the same group. It is checked whether there is a parameter with a field attribute of 0 for each parameter code. If it exists, the check passes; otherwise, a pop-up window appears. The pop-up window has a title bar and a selection drop-down box. The title bar is "Setting the main parameter." The selection drop-down box is a drop-down box formed by using the parameter code of a group of parameters that do not have a field attribute of 0 as the data source. The parameter code is manually selected, and an instruction is sent to the server to set the parameter code of the selected parameter as the main parameter. Step S5 is then executed to set the main parameter.
[0031] Preferably, different industrial designs have different activity templates, and the activity template is configured with multiple parameters;
[0032] The main parameters and auxiliary parameters are distributed in different groups on the activity template, and each group has only one parameter with the same parameter code.
[0033] The activity template contains two or more parameters with the same parameter "code".
[0034] Compared with the prior art, the beneficial effects of the present invention are as follows: (1) The present invention can achieve configuration in one place and use everywhere through the binding of main and auxiliary parameter configuration. The binding of main and auxiliary parameter configuration can configure the same parameter configuration at one time, improve the efficiency of parameter configuration. Each type of parameter stores a set of configurations, and multiple identical parameters are used together, while ensuring that each parameter has a complete set of data. (2) It solves the problem of repeated configuration when there are identical parameters in the configuration of activity parameters in the industrial design process. In order to ensure the integrity of the independent link of single parameter data, the auxiliary parameter directly obtains the data of the main parameter without repeated configuration, which greatly reduces unnecessary repeated configuration and reduces the risk of repeated configuration errors. (3) In the process of configuring parameters, by verifying whether there is one and only one main parameter, the parameter configuration error is avoided. The auxiliary parameter cannot directly obtain the data of the main parameter, which causes the auxiliary parameter to need to be reconfigured, so that the configured activity template is accurate and the error rate of template configuration is reduced. Attached Figure Description
[0035] Figure 1 This is a flowchart illustrating the steps of a primary and secondary parameter configuration binding design method in an industrial design process according to the present invention.
[0036] Figure 2 This is a page diagram of a business activity in an industrial design process according to the present invention, which describes a method for binding primary and secondary parameter configurations in an industrial design workflow. Detailed Implementation
[0037] To provide a further understanding of the purpose, structure, features, and functions of the present invention, detailed descriptions are provided below with reference to specific embodiments.
[0038] A primary and secondary parameter configuration binding design method in an industrial design process, based on a parameter configuration system, which includes a front-end, a server, and a database; the front-end is used for loop data rendering, and the server is used for setting parameter field attributes and loop validation, etc., including the following steps:
[0039] S1: Configure the parameters involved in business activities;
[0040] The front-end displays a page for business activities. The business activities are activity templates, which are step templates in the industrial design process. The activity templates are used to create group configurations and parameters.
[0041] Different industrial designs have different templates. Many parameters need to be configured in an active template, and there may be duplicate parameters in an active template.
[0042] The parameters are design parameters, including basic information such as parameter name, parameter value, and parameter code. The parameter code is a string of codes, also called an internal name, which is generally not visible to the user and is also called the parameter display name. It is used for user identification and serves as a unique identifier for the parameter. The parameter code also includes its type.
[0043] In activity templates with the same industrial design, the parameter codes for the same parameters are identical, and the types of the parameter codes are also the same.
[0044] S2: Parameter constraint configuration;
[0045] The first parameter appearing in the configuration activity template is set as the primary parameter by default, and subsequent parameters with the same code are set as secondary parameters; primary and secondary parameters are identified by fields; the constraint configuration of the primary parameter is used as the entry point for configuring the parameter constraints;
[0046] The constraint is configured as a fixed template, which includes a function type and a parameter code. The function type includes forms, input boxes, drop-down lists, etc.
[0047] Get the parameter code of the main parameter, and match a fixed template with the same parameter code based on the obtained parameter code.
[0048] S3: Add / modify or remove parameters in groups;
[0049] During the configuration of the activity template, grouping parameters can be added, modified, or removed.
[0050] When a parameter is modified, if the primary parameter is changed to an auxiliary parameter of another parameter, that is, the parameter code changes, the constraint configuration of the primary parameter is deleted, and the modified parameter code obtains the constraint configuration of the primary parameter with the same parameter code.
[0051] When a parameter is added / modified to another parameter, and the modified parameter is the first time it appears, it is considered the primary parameter by default. The modified parameter code is obtained, and the fixed template corresponding to the parameter code is matched to configure the new primary parameter constraint.
[0052] S4: View parameter configuration;
[0053] To view the parameter configuration on the page, search by primary relationship. All parameter constraint configurations are displayed for the primary parameter. Secondary parameters only have viewing permissions. All data follows the primary parameter and includes the parameter's basic information and constraint configuration.
[0054] The auxiliary parameters use the same parameter code as the primary parameter as their data source to obtain the basic information and constraint configuration of the primary parameter. A field attribute is added to the parameter, where 0 represents the primary parameter and 1 represents the auxiliary parameter. The front-end displays the parameters and their constraint configurations of the activity template as editable or grayed out and uneditable based on whether the field attribute is 0 or 1, and renders the primary and auxiliary parameters as identifiers on the activity template.
[0055] S5: Switching between primary and secondary parameters;
[0056] Generally, primary parameters and secondary parameters are distributed in different groups on the activity template. Each group has only one parameter with the same parameter code. When there are two or more parameters with the same parameter code on the activity template, manually select one of the secondary parameters as the primary parameter. The configuration of the corresponding parameter constraint will also be attached to the latest primary parameter. At this time, the basic information and constraint configuration of the corresponding primary parameter can be modified. Other secondary parameters will be modified synchronously, including the primary parameter that was previously changed to a secondary parameter.
[0057] Specifically, this includes: selecting one parameter and sending an instruction to the server to set it as the primary parameter; the server obtains the parameter name, uses the parameter name as a keyword, and iterates through all parameters with that parameter name to obtain all parameters; based on all the obtained parameters, it obtains the corresponding field attributes of the parameters; it obtains the parameters with a field attribute of 0, and compares whether the parameter is the selected parameter; if it is, the selected parameter is the primary parameter; if not, it modifies the field attribute of the parameter with a field attribute of 0 to 1, and modifies the field attribute of the selected parameter to 0; the front end, based on the field attribute being 0, displays the parameters and their constraint configurations of the activity template as editable, thereby realizing the setting of the selected parameter as the primary parameter;
[0058] S6: Save the parameter configuration of the activity template and verify whether a master parameter exists;
[0059] Save the parameter configuration of the entire activity template, and verify that the parameter of type code for each parameter exists and that there is a primary parameter. If it does not exist, you need to manually set a parameter as the primary parameter. At this time, the parameter constraint configuration will be attached to the new primary parameter.
[0060] Specifically, after saving the activity template as the initial activity template, the basic information of all parameters of the initial activity template is obtained and saved as a parameter table. The obtained basic information of the parameters is grouped according to the parameter code. Parameters with the same type of parameter code are grouped together, thus classifying the same parameters. According to the group, the field attributes of the parameters are obtained in a loop within the same group. It is checked whether there is a parameter with a field attribute of 0 for each parameter code. If it exists, the check passes. If it does not exist, a pop-up window appears. The pop-up window has a title bar and a selection drop-down box. The title bar is "Setting the main parameter". The selection drop-down box is a drop-down box formed by using the parameter codes of the group of parameters that do not have a field attribute of 0 as the data source. The parameter code is manually selected, and an instruction is sent to the server to set the parameter code of the selected parameter as the main parameter. Step S5 is executed to realize the setting of the main parameter.
[0061] S7: Configuration complete, save parameter configuration;
[0062] After verification, each parameter has a master parameter and there is one of each parameter. Save the final activity template, store the parameter configuration in the database, and complete the current configuration.
[0063] The present invention has been described in the above-described embodiments; however, these embodiments are merely examples for implementing the present invention. It must be noted that the disclosed embodiments do not limit the scope of the present invention. Conversely, any modifications and refinements made without departing from the spirit and scope of the present invention are within the scope of patent protection of the present invention.
Claims
1. A design method for binding primary and secondary parameter configurations in an industrial design process, characterized in that: Based on the parameter configuration system, the parameter configuration system includes a front-end, a server, and a database; Includes the following steps: S1: Configure the parameters involved in business activities; The front-end displays a page for business activities. The business activities are activity templates, and the required parameters are configured for creating groups on the activity templates. The parameters are design parameters, including basic information, which includes parameter name, parameter value, and parameter code, and the parameter code includes type; S2: Parameter constraint configuration; The first parameter appearing in the activity template is set as the primary parameter by default, and subsequent parameters with the same name are set as secondary parameters. The same parameters refer to parameters with the same code and the same type. The primary and secondary parameters are identified by field attributes. The constraint configuration is a fixed template, which includes a function type and a parameter code. The function type includes a form, an input box, and a drop-down box. The parameter code of the main parameter is obtained, and the fixed template with the same parameter code is matched according to the obtained parameter code. The auxiliary parameters use the main parameter with the same parameter code as the data source to obtain the basic information of the main parameter and the constraint configuration. S3: Add / modify or remove parameters in groups; During the configuration of the activity template, grouping parameters can be added, modified, or removed. S4: View parameter configuration; To view the parameter configuration on the page, search by primary relationship. All parameter constraint configurations are displayed for primary parameters, while secondary parameters are only viewable. S5: Switching between primary and secondary parameters; Manually select one of the auxiliary parameters as the primary parameter, and the corresponding parameter constraint configuration will be attached to the latest primary parameter. At this time, the basic parameter information and constraint configuration of the corresponding primary parameter will be modified, and other auxiliary parameters will be modified synchronously. S6: Save the parameter configuration of the activity template and verify whether a master parameter exists; Save the parameter configuration of the entire activity template, and verify that the parameter of type code for each parameter exists and that there is a primary parameter. If it does not exist, manually set a parameter as the primary parameter. S7: Configuration complete, save parameter configuration; After verification, each parameter has a master parameter and there is one of each parameter. Save the final activity template, store the parameter configuration in the database, and complete the current configuration.
2. The main and auxiliary parameter configuration binding design method in the industrial design process as described in claim 1, characterized in that: Step S3 specifically includes: When a parameter is added / modified to another parameter, and the modified parameter is the first time it appears, and the default is the main parameter, the code of the modified parameter is obtained, and the fixed template corresponding to the parameter code is matched to configure the constraint of the new main parameter. When the primary parameter is modified to be an auxiliary parameter of another parameter, i.e. the parameter code changes, the constraint configuration of the primary parameter is deleted, and the modified parameter code obtains the constraint configuration of the primary parameter with the same parameter code.
3. The main and auxiliary parameter configuration binding design method in the industrial design process as described in claim 1, characterized in that: The field attributes include 0 and 1; where 0 represents the primary parameter and 1 represents the secondary parameter. The front end displays the parameters and constraints of the activity template as editable or grayed out and uneditable based on the field attribute being 0 or 1, and renders the main parameters and auxiliary parameters on the activity template.
4. The main and auxiliary parameter configuration binding design method in the industrial design process as described in claim 3, characterized in that: Step S5 specifically includes: selecting one of the parameters and sending an instruction to the server to set it as the primary parameter; the server obtains the parameter name, uses the parameter name as the keyword, and iterates through all parameters with this parameter name to obtain all parameters; based on all the obtained parameters, it obtains the corresponding field attributes of the parameters; it obtains the parameters with field attributes of 0, and compares whether the parameters are the selected parameters. If they are, the selected parameter is the primary parameter; if not, it modifies the field attribute of the parameters with field attributes of 0 to 1, and modifies the field attribute of the selected parameter to 0. Based on the field attribute being 0, the front end displays the parameters and their constraint configurations of the activity template as editable, thereby realizing the setting of the selected parameter as the primary parameter.
5. The main and auxiliary parameter configuration binding design method in the industrial design process as described in claim 1, characterized in that: Step S6 specifically involves: after saving the activity template as the initial activity template, obtaining the basic information of all parameters of the initial activity template and saving it as a parameter table, grouping the obtained basic information of the parameters according to the parameter code, and grouping parameters with the same type of parameter code into one group, thus realizing the classification of the same parameters; Based on the grouping, the field attributes of the parameters are retrieved in a loop within the same group. It is checked whether there is a parameter with a field attribute of 0 for each parameter code. If it exists, the check passes; otherwise, a pop-up window appears. The pop-up window has a title bar and a selection drop-down box. The title bar is "Setting the main parameter." The selection drop-down box is a drop-down box formed by using the parameter code of a group of parameters that do not have a field attribute of 0 as the data source. The parameter code is manually selected, and an instruction is sent to the server to set the parameter code of the selected parameter as the main parameter. Step S5 is then executed to set the main parameter.