Aided design method, electronic equipment and storage medium

Through the auxiliary design interface, the template is determined and the model is automatically generated, which solves the problem of designers repeatedly adjusting parameters, realizes an efficient design process and reduces error rates, and is suitable for design scenarios of complex components.

CN119203284APending Publication Date: 2024-12-27ZHONGKE YUNGU TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411338906.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

Designers need to repeatedly input and adjust the parameters of the design model one by one according to the engineering relationship and geometric relationship, resulting in the design process being inefficient and convenient enough.

Method used

Provide an auxiliary design method, which determines the template through the auxiliary design interface, and automatically generates a model based on the design parameters and constraint relationships corresponding to the template, simplifies the design process, reduces the error rate, and improves work efficiency. The method includes responsive to the start instructions of the design software, obtaining or generating the target template and design parameters, adjusting the parameters to generate the constraint relationship, and sending this information to the design software to generate the target model.

Benefits of technology

It simplifies the design process, reduces the error rate, and improves overall work efficiency. It is especially suitable for scenarios where a large number of repeated design tasks or complex components are required, improving design efficiency and quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119203284A_ABST
    Figure CN119203284A_ABST
Patent Text Reader

Abstract

The invention relates to an aided design method, electronic equipment and a storage medium, and the method comprises the steps: responding to a received starting instruction of design software, and starting an aided design interface to obtain a preset operation; obtaining or generating a target template and a first design parameter of the target template according to a preset operation; receiving an adjustment operation for the first design parameters, and adjusting the first design parameters according to the adjustment operation to obtain second design parameters for generating the target model and a constraint relationship between the second design parameters; and sending the target template, the second design parameters and the constraint relationship among the second design parameters to design software, so that the design software generates a target model according to the target template, the second design parameters and the constraint relationship among the second design parameters. According to the technical scheme, the template is determined based on the aided design interface, the model is automatically generated according to the design parameters and the constraint relation corresponding to the template, the design process is simplified, the error rate is reduced, and the overall working efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of computer-aided design, and in particular to an auxiliary design method, electronic equipment and storage medium. Background Art

[0002] CAD software usually provides a variety of parametric design functions and tools, allowing designers to use CAD software tools to flexibly perform parametric design.

[0003] The inventors discovered the following problem during their research: designers need to repeatedly input and determine parameters of the design model one by one based on engineering relationships and geometric relationships, and constantly adjust parameters to change the model configuration until the design requirements are met. This operation process is not efficient and convenient enough. Summary of the invention

[0004] In view of this, the purpose of this application is to provide an auxiliary design method, an electronic device and a storage medium, which determines a template based on an auxiliary design interface, and automatically generates a model according to the design parameters and constraint relationships corresponding to the template, thereby simplifying the design process, reducing the error rate and improving overall work efficiency.

[0005] To achieve the above object, the present application provides an auxiliary design method, the method comprising:

[0006] In response to receiving a start instruction of the design software, starting the auxiliary design interface to obtain a preset operation;

[0007] Acquire or generate a target template and a first design parameter of the target template according to the preset operation;

[0008] receiving an adjustment operation for the first design parameter, adjusting the first design parameter according to the adjustment operation, and obtaining a second design parameter for generating a target model and a constraint relationship between the second design parameter;

[0009] The target template, the second design parameters and the constraint relationship between the second design parameters are sent to design software, so that the design software generates a target model according to the target template, the second design parameters and the constraint relationship between the second design parameters.

[0010] In some embodiments, the acquiring or generating a target template and a first design parameter of the target template according to the preset operation includes:

[0011] An acquisition instruction is determined according to the preset operation, and the target template, the first design parameters corresponding to the target template, and the constraint relationship between the first design parameters are acquired from a preset template set.

[0012] In some embodiments, before determining the acquisition instruction according to the preset operation, the method further includes:

[0013] Create a database;

[0014] Obtaining a preset template set according to a plurality of part models and an assembly model of the plurality of part models;

[0015] Obtaining a design parameter set according to the design parameters and constraint expressions of the plurality of part models and the assembly model;

[0016] Establishing a corresponding relationship between each template in the preset template set and each design parameter in the design parameter set, as well as a constraint relationship between each design parameter;

[0017] The preset template set and the design parameter set are stored in the database.

[0018] In some embodiments, the acquiring or generating a target template and a first design parameter of the target template according to the preset operation includes:

[0019] According to the preset operation, a reference model and a third design parameter of the reference model are obtained;

[0020] A generation instruction is determined, a target template is generated according to the reference model, and a first design parameter of the target template is generated according to the third design parameter.

[0021] In some embodiments, before receiving the adjustment operation for the first design parameter, the method further includes:

[0022] The first design parameters are displayed on the auxiliary design interface in a preset order.

[0023] In some embodiments, the adjustment operation includes a modification operation and / or a movement operation on the first design parameter, and adjusting the first design parameter according to the adjustment operation includes at least one of the following:

[0024] Modify the type and / or value of the first design parameter according to the modification operation;

[0025] The constraint relationship of each design parameter in the first design parameters is modified according to the moving operation.

[0026] In some embodiments, the method further comprises:

[0027] verifying the second design parameter;

[0028] If the type and / or value range of the second design parameter is incorrect, an error prompt is generated.

[0029] In some embodiments, sending the target template, the second design parameter, and the constraint relationship between the second design parameter to design software includes:

[0030] Based on the interface program, the file format of the target template is converted into a first target format, and the file format of the second design parameter is converted into a second target format. The first target format and the second target format are file formats recognizable by the design software.

[0031] The present application also provides an electronic device, characterized in that it includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of any of the methods described above when executed by the processor.

[0032] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0033] From the above, the auxiliary design method, electronic device and storage medium of the present application, the method includes: in response to receiving the start instruction of the design software, starting the auxiliary design interface to obtain the preset operation; obtaining or generating the target template and the first design parameter of the target template according to the preset operation; receiving the adjustment operation for the first design parameter, adjusting the first design parameter according to the adjustment operation, obtaining the second design parameter for generating the target model and the constraint relationship between the second design parameter; sending the constraint relationship between the target template, the second design parameter and the second design parameter to the design software, so that the design software generates the target model according to the constraint relationship between the target template, the second design parameter and the second design parameter. The technical solution of the present application determines the template based on the auxiliary design interface, and automatically generates the model according to the design parameters and constraint relationship corresponding to the template, which simplifies the design process, reduces the error rate, and improves the overall work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. 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 related drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 The figure is a flow chart of an auxiliary design method provided according to an embodiment.

[0036] Figure 2The figure is a schematic diagram of a specific flow chart of an auxiliary design method provided according to an embodiment.

[0037] Figure 3 The figure is a schematic diagram of the structure of an electronic device provided according to an embodiment. DETAILED DESCRIPTION

[0038] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0039] It should be noted that, in this article, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context of the specific embodiment.

[0040] It should be understood that, although the terms first, second, third, etc. may be used to describe various information in this article, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this article, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein can be interpreted as "at the time of..." or "when..." or "in response to determination". Furthermore, as used in this article, the singular forms "one", "one" and "the" are intended to also include plural forms, unless there is an opposite indication in the context. It should be further understood that the terms "comprising", "including" indicate that there are described features, steps, operations, elements, components, projects, kinds, and / or groups, but do not exclude the existence, occurrence or addition of one or more other features, steps, operations, elements, components, projects, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Thus, “A, B, or C” or “A, B and / or C” means “any of the following: A; B; C; A and B; A and C; B and C; A, B, and C.” An exception to this definition will occur only when a combination of elements, functions, steps, or operations are inherently mutually exclusive in some manner.

[0041] It should be understood that, although the various steps in the flowchart in the embodiment of the present application are displayed in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and it can be performed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0042] It should be noted that in this article, step codes such as S1 and S2 are used for the purpose of expressing the corresponding content more clearly and concisely, and do not constitute a substantial limitation on the order. When implementing the step, those skilled in the art may execute S2 first and then S1, etc., but these should all be within the scope of protection of this application.

[0043] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0044] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present application, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.

[0045] The following is an explanation of the terms that may be involved in this application, as follows:

[0046] CAD (Computer-Aided Design): refers to the use of computers and their graphic equipment to help designers perform design work.

[0047] NX: Formerly known as UG, the full name is Siemens NX, which is a large-scale integrated system of CAD / CAE (Computer-Aided Engineering) / CAM (Computer-Aided Manufacturing) for product design, engineering and production development launched by Siemens.

[0048] Figure 1 1 is a flow chart of an auxiliary design method according to an embodiment. The auxiliary design method can be implemented in software and / or hardware. In this embodiment, the execution subject of the auxiliary design method is a computer device as an example. Figure 1 As shown, the auxiliary design method of the embodiment of the present application includes the following steps:

[0049] S1, in response to receiving a start instruction of the design software, start the auxiliary design interface to obtain a preset operation.

[0050] In this embodiment, the design software and the auxiliary design tool are started in association. When the user starts the design software, the auxiliary design interface of the auxiliary design tool will automatically start so that the user can set the preset operation. Specifically, a special plug-in or extension can be developed, which can be loaded when the design software is started and automatically open the auxiliary design interface of the auxiliary design tool. It is also possible to create a composite shortcut containing two application startup paths, first start the design software, and then start the interface of the auxiliary design tool. It is also possible to set an event listener at the operating system level, and when the design software is detected to be started, the startup of the auxiliary design tool is triggered by programming means. Of course, it is also possible to add an option to the startup interface of the design software so that the user can choose whether to start the auxiliary design tool.

[0051] S2, acquiring or generating a target template and a first design parameter of the target template according to a preset operation.

[0052] The preset operation can be an operation such as inputting, selecting, and moving the target model in the interactive area of ​​the auxiliary design interface. The user performs the preset operation in the auxiliary design interface to obtain or generate a target template and a first design parameter corresponding to the target template. Among them, the template refers to the basic geometric figure used to build the model, which has a first design parameter. The design parameter refers to the specific value or attribute used to define or adjust the design scheme during the design process. The target template is a specific template selected or input by the user. The model refers to the specific design content, that is, the actual three-dimensional geometry or two-dimensional graphics, such as mechanical parts, building structures, circuit boards, etc. The target model is a specific geometric figure designed by the user based on the target template.

[0053] S3, receiving an adjustment operation for the first design parameter, adjusting the first design parameter according to the adjustment operation, and obtaining a second design parameter for generating a target model and a constraint relationship between the second design parameter.

[0054] S4, sending the target template, the second design parameter and the constraint relationship between the second design parameter to the design software, so that the design software generates a target model according to the target template, the second design parameter and the constraint relationship between the second design parameter.

[0055] The user can adjust the first design parameter according to the design requirements in the auxiliary design interface to obtain the second design parameter and the constraint relationship between the second design parameter. The second design parameter can be used as the design parameter for generating the target model. Then, the auxiliary design tool sends the target template, the second design parameter and the constraint relationship between the second design parameter to the design software, so that the design software can automatically generate the target model required by the user.

[0056] The assisted design method of the embodiment of the present application can simplify the design process, help users quickly start design tasks through preset operations and automatic template generation, and realize personalized design by adjusting parameters by users, and finally generate customized final products by design software. The assisted design method of the embodiment of the present application is particularly suitable for scenarios that require a large number of repetitive design tasks, or models with complex parts and parameters between parts that are interrelated, and can improve design efficiency and quality.

[0057] In some embodiments, acquiring or generating a target template and a first design parameter of the target template according to a preset operation includes:

[0058] An acquisition instruction is determined according to a preset operation, and a target template, a first design parameter corresponding to the target template, and a constraint relationship between the first design parameters are acquired from a preset template set.

[0059] As an implementation of this embodiment, for a target template that already exists in a preset template set, an instruction to obtain the target template can be determined based on the user's input or selection operation in the auxiliary design interface, and then the target template can be obtained from the preset template set. The preset template set can be stored in a database, and the database also synchronously stores the first design parameters corresponding to each target template and the constraint relationship between the first design parameters.

[0060] Preferably, the first design parameters and constraint relationships that may be used for parametric design in each template can be stored in a structured manner in a database or text in the form of expressions, and the template name and the corresponding expression data can be associated in a prescribed naming method so as to quickly and accurately obtain the target template and corresponding design parameters required by the user.

[0061] In some embodiments, before determining to obtain the instruction according to the preset operation, the auxiliary design method further includes:

[0062] Create a database;

[0063] Obtaining a preset template set according to a plurality of part models and an assembly model of the plurality of part models;

[0064] Obtaining a design parameter set according to design parameters and constraint relationships of multiple part models and assembly models;

[0065] Establishing a corresponding relationship between each template in the preset template set and a first design parameter in the design parameter set, as well as a constraint relationship between each design parameter;

[0066] The preset template set and the design parameter set are stored in a database.

[0067] As an implementation method of this embodiment, by creating a database, the preset template set and design parameters can be stored in the same database. Specifically, for structural parts with complex parts, all part models and multi-part assembly models can be stored as parametric templates to form a preset template set for easy management and reuse. For each parametric template, identify the parameters that may be used for parametric design, such as size, shape, material properties, etc. At the same time, record the constraint relationship between these design parameters, that is, the mutual dependence and influence relationship between them. Design parameters and their constraint relationships are usually converted into mathematical expressions and stored in a database or text file in a structured manner.

[0068] The relevant parameters that can be used for parametric design models are stored and managed in the form of library tables. Especially for multi-part-level parametric models, the parameter settings of the entire model can be easily and intuitively viewed, allowing designers to have a more comprehensive understanding of the specified design requirements of the entire parametric model, facilitating subsequent design.

[0069] In some embodiments, acquiring or generating a target template and a first design parameter of the target template according to a preset operation includes:

[0070] According to the preset operation, a reference model and a third design parameter of the reference model are obtained;

[0071] A generation instruction is determined, a target template is generated according to the reference model, and a first design parameter of the target template is generated according to the third design parameter.

[0072] As an implementation of this embodiment, for a target template that is not stored in the preset template set, a new target template can be generated based on a reference model. Specifically, the user can enter the path of the reference model in the auxiliary design interface, and the reference model can be directly opened according to the path. Determine the generation instruction of the target template, generate a parameterized target template based on the reference model, and determine the first design parameter of the target template according to the third design parameter of the reference model. In this way, a new target template can be quickly created based on the reference model to design other target models using the target template.

[0073] In some embodiments, before receiving an adjustment operation for the first design parameter, the auxiliary design method further includes:

[0074] The first design parameters are displayed on the auxiliary design interface according to a preset order.

[0075] As an implementation method of this embodiment, after obtaining or generating the target template, the target template and its design parameters can be displayed simultaneously in the auxiliary design interface. Specifically, the first design parameters can be arranged in sequence in the auxiliary design interface by type. For example, the size parameters of the template are displayed first, followed by the shape parameters, and finally the material properties. The effect of each design parameter on the target template is displayed in a graphical manner, such as instantly updating the appearance of the target template when the size is changed. In this way, users can perform design work more intuitively, and can quickly iterate the design to improve work efficiency.

[0076] In some embodiments, the adjustment operation includes a modification operation and / or a movement operation on the first design parameter, and adjusting the first design parameter according to the adjustment operation includes at least one of the following:

[0077] modifying the type and / or value of the first design parameter according to the modification operation;

[0078] The constraint relationship of each design parameter in the first design parameter is modified according to the moving operation.

[0079] As an implementation of this embodiment, the type and value of the design parameter can be directly modified in the auxiliary design interface, such as by dragging a slider, inputting a value, or selecting an option from a drop-down menu.

[0080] As an implementation method of this embodiment, the relative position or distance between different design parameters can be adjusted by dragging and moving to update the constraint relationship between these design parameters. Exemplarily, the model MAIN displayed in the auxiliary design interface includes two parts A and B. Among them, MAIN contains parameters M1 and M2, part A contains parameters A1 and A2, and part B contains parameters B1 and B2. Drag parameter M1 to parameters A1 and B1, and drag parameter M2 to parameters A2 and B2. At the same time, modify the value behind the parameter of A2 to M2 / 4, and modify the value behind the parameter of B2 to M2 / 2. After the modification is completed, click OK, and the auxiliary design tool will associate parameter M1 with A1 and B1, and parameter M2 with A2 and B2. At this time, the specific values ​​of the A1 and B1 parameters are the values ​​of parameter M1, the value of the A2 parameter is the value of the M2 parameter divided by 4, and the value of the B2 parameter is the value of the M2 parameter divided by 2. In this case, the values ​​of parameters A1, B1, A2, and B2 do not need to be manually modified, and the values ​​of parameters A1, B1, A2, and B2 can be automatically modified by directly controlling the values ​​of parameters M1 and M2.

[0081] In some embodiments, the auxiliary design method further includes:

[0082] Verifying the second design parameter;

[0083] If the type and / or value range of the second design parameter is incorrect, an error prompt is generated.

[0084] As an implementation method of this embodiment, the second design parameter generated according to the first design parameter needs to be verified before being applied to generate the target model. Before the user attempts to modify or apply the design parameters, check whether these parameters meet the predefined standards or rules. If the type or value range of the second design parameter is incorrect, a corresponding error prompt is generated and the design parameter is prevented from being applied to the actual design until the user corrects the problem. The error prompt can be an error prompt message displayed at a fixed position or a parameter position of the auxiliary design interface, telling the user which design parameter has a problem and the cause of the problem.

[0085] Exemplarily, the auxiliary design interface has preset the basic framework of the watch strap template and the default design parameters. The design parameters are displayed in a preset order on the interface, such as the length of the watch strap first, followed by the width, and then the material options. The user tries to change the length parameter of the watch strap from 100mm to -20mm. It is detected that the value of the length parameter is a negative number, which does not meet the requirements, and an error message is displayed in the interface: "The length of the watch strap must be a positive number." The user notices the error message and changes the length parameter to a positive value, such as 120mm. After resubmitting the design parameters, it is detected that the length parameter now meets the requirements, so this parameter is applied to the design and the display effect of the 3D model is updated.

[0086] In some embodiments, sending the target template, the second design parameter, and the constraint relationship between the second design parameter to the design software includes:

[0087] Based on the interface program, the file format of the target template is converted into a first target format, and the file format of the second design parameter is converted into a second target format. The first target format and the second target format are file formats recognizable by the design software.

[0088] As an implementation method of this embodiment, the target template file and the second design parameter are obtained, and the template file and the design parameter are converted into a format recognizable by the design software through the interface program. The converted file is sent to the design software so that the design software automatically generates the target model.

[0089] Exemplarily, the file format of the target template is .dxf, and the file format of the second design parameter is .xlsx. When the design software is CAD, an interface program is used to convert the template in .dxf format into .dwg format that can be directly read by CAD, and the design parameter file in .xlsx format is converted into an internal data format or text format that can be recognized by CAD. A script or plug-in is used to send the converted file to CAD, and the design parameters are applied to update the model. Logic is defined in the script to handle constraint relationships to ensure that the relevant dimensions can be automatically adjusted to meet the constraint conditions when the design parameters are applied.

[0090] Please refer to Figure 2 Next, the auxiliary design method of this embodiment is specifically described in combination with the operation steps of the CAD design software and the auxiliary design tool.

[0091] After starting the CAD design software, you can start the CAD parametric auxiliary design tool (hereinafter referred to as "this tool") on the interface of the CAD design software. This tool can be used for parametric design on Siemens NX1899 version of CAD software, using the C# language that matches NX software development, and using the development tool Visual Studio 2015 for development.

[0092] This tool is developed to manage and store parametric templates and design parameter data using a text library.

[0093] The parametric template model name can be uppercase letters, lowercase letters, Arabic numerals, and the name length is not less than 8 characters, not greater than the maximum recognition length of the CAD software, and is unique in the library. The parameter name can be uppercase letters, lowercase letters, Arabic numerals, and special characters "_" and "-". The name length is not less than 4 characters, not greater than the maximum recognition length of the CAD software, and is unique in the same parametric template model. The parameter name has only one parameter value input port. When multiple parts in the same template use this parameter, the parameter is used and referenced in an associated manner.

[0094] Parametric templates are uniformly stored in a fixed folder. The parameter data of each parametric template model creates an Excel file with the same name as the template name. The parameter name that needs to be parametrically designed and the corresponding initial value, parameter type, parameter range, unit, and formula are written into the Excel file with the same name as the template parameter library file of the template, which is stored in the same fixed folder as the template.

[0095] On a computer with NX1899 software installed normally, place the executable program file in the "NXBIN" folder under the NX1899 installation path, create a program application button file (the file format is tbr), add the corresponding content that references the executable program file in the file, and then place the tbr file in the "UGII\menus" folder under the NX1899 installation path.

[0096] Start the CAD software NX1899, find and click the CAD parametric auxiliary design tool function button in the opened NX software.

[0097] In the auxiliary design interface, the designer selects or inputs the name or code of the model template to be parametrically designed. The auxiliary design tool will obtain the parameters and specific values ​​of the corresponding template from the parametric template and parameter library, and display them all on the auxiliary design tool operation interface, and the parameter values ​​can be modified. After the parameter operation is completed, the auxiliary design tool passes the model template name or code and the parameters to the CAD software, and the CAD software opens the template, applies the parametric engine to update the template parameters, renders the model, and generates a new parametric design model.

[0098] When you select or fill in the name of an existing parametric template for parametric design in the pop-up auxiliary design interface, click the "OK" button, and the NX software will automatically open the parametric template model. At the same time, the parametric design parameters corresponding to the model will be arranged in sequence by type in the auxiliary design interface, and the parameter values ​​are all preset initial values. You can modify the specific values ​​of each parameter according to the actual design needs, and click the "OK" button after the modification. The program will check the type and range of the input parameter values. When a parameter value does not meet the requirements, a prompt box will pop up to prompt the wrong parameter. Until the parameters meet the set requirements, click the "OK" button to generate a new parametric design model.

[0099] When the selected or filled in auxiliary design interface is not a template in the template library, but a specific model path, click the "OK" button, NX software will automatically open the model, and the design parameters corresponding to the model will be arranged in the auxiliary design interface in order by type, and the parameter values ​​are all actual values ​​of the model. You can drag each parameter to perform association operations according to the actual design needs. The value of the associated referenced design parameter will directly use the value of the associated parameter, and will be changed synchronously with the associated parameter to associate the parameter value, and the value of the associated parameter can no longer be manually modified independently (the associated parameter cannot be modified, but the associated parameter has an associated parent parameter, which can be modified). You can also modify the specific values ​​of each parameter according to the actual design needs, and click the "OK" button after the modification is completed. The program will check the specific model file name, the type and range of the input parameter value. When a parameter value does not meet the requirements, a prompt box will pop up to prompt the wrong parameter. Until the parameters meet the set requirements, click the "OK" button to generate a new parametric design model, and store the model and parameters as new parametric model templates and parameters in the parametric template and parameter library.

[0100] In the absence of a parametric template, the tool can first generate a "temporary parametric template" based on the current model. This temporary parametric template lists the corresponding parameter input fields based on the various parameters in the module, and there is no constraint relationship between the part parameters. At this time, you can directly use this "temporary parametric template" to directly modify the model parameters, or you can first manually set (based on user-friendly drag-and-drop operations) the association of different parameters in the "temporary parametric template" interface, and then save (generate) the parametric template corresponding to the parameter association, and then fill in the parameters that the user needs to modify based on this newly generated parametric template, and finally modify the model parameters. By combining the design and generation of parametric templates and model modification into one, you can modify the parameters of the existing model and create a new parametric template at the same time without a parametric template in advance.

[0101] In the embodiment of the present application, because the parametric template corresponds to the specific NX model, only the auxiliary design tool is needed to complete the parameter association setting and parameter modification. The user does not need to use the NX software to perform professional operations. The parameter association setting method and parameter modification method of the auxiliary design tool based on parametric design are more convenient and more friendly to non-professional users than the prior art method directly based on NX software.

[0102] From the above, the auxiliary design method of the embodiment of the present application, in response to receiving the start instruction of the design software, starts the auxiliary design interface to obtain the preset operation; obtains or generates the target template and the first design parameter of the target template according to the preset operation; receives the adjustment operation for the first design parameter, adjusts the first design parameter according to the adjustment operation, obtains the second design parameter for generating the target model and the constraint relationship between the second design parameter; sends the constraint relationship between the target template, the second design parameter and the second design parameter to the design software, so that the design software generates the target model according to the constraint relationship between the target template, the second design parameter and the second design parameter. The technical solution of the present application determines the template based on the auxiliary design interface, and automatically generates the model according to the design parameters and constraint relationship corresponding to the template, which simplifies the design process, reduces the error rate, and improves the overall work efficiency.

[0103] Based on the same inventive concept as the above embodiments, an embodiment of the present invention provides an electronic device, such as Figure 3 As shown, the electronic device includes: a processor 310 and a memory 311 storing a computer program; wherein, Figure 3 The processor 310 shown in the figure is not used to indicate that the number of the processor 310 is one, but is only used to indicate the positional relationship of the processor 310 relative to other devices. In actual applications, the number of the processor 310 may be one or more; similarly, Figure 3 The memory 311 shown in the figure has the same meaning, that is, it is only used to refer to the position relationship of the memory 311 relative to other devices. In practical applications, the number of memories 311 can be one or more. When the processor 310 runs the computer program, the method applied to the above device is implemented.

[0104] The electronic device may also include: at least one network interface 312. The various components in the electronic device are coupled together via a bus system 313. It is understood that the bus system 313 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 313 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, the bus system 313 is not used in the following examples. Figure 3 Various buses are labeled as bus system 313.

[0105] The memory 311 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. The nonvolatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 311 described in the embodiments of the present invention is intended to include but is not limited to these and any other suitable types of memories.

[0106] The memory 311 in the embodiment of the present invention is used to store various types of data to support the operation of the electronic device. Examples of these data include: any computer program used to operate on the electronic device, such as an operating system and an application; contact data; phone book data; messages; pictures; videos, etc. Among them, the operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application program may include various applications, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. Here, the program that implements the method of the embodiment of the present invention may be included in the application program.

[0107] Based on the same inventive concept as the above-mentioned embodiment, this embodiment further provides a computer-readable storage medium, in which a computer program is stored. The computer-readable storage medium may be a ferromagnetic random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); it may also be various devices including one or any combination of the above memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc. When the computer program stored in the computer-readable storage medium is executed by the processor, the above method is implemented. For the specific steps implemented when the computer program is executed by the processor, please refer to Figure 1 The description of the illustrated embodiment will not be repeated here.

[0108] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0109] In this document, the terms "comprises," "comprising," or any other variations thereof, are intended to cover a non-exclusive inclusion of elements other than those listed and may also include additional elements not expressly listed.

[0110] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. An auxiliary design method, characterized in that: The method comprises: In response to receiving a start instruction of the design software, starting the auxiliary design interface to obtain a preset operation; Acquire or generate a target template and a first design parameter of the target template according to the preset operation; receiving an adjustment operation for the first design parameter, adjusting the first design parameter according to the adjustment operation, and obtaining a second design parameter for generating a target model and a constraint relationship between the second design parameter; The target template, the second design parameters and the constraint relationship between the second design parameters are sent to design software, so that the design software generates a target model according to the target template, the second design parameters and the constraint relationship between the second design parameters.

2. The method according to claim 1, characterized in that The acquiring or generating a target template and a first design parameter of the target template according to the preset operation includes: An acquisition instruction is determined according to the preset operation, and the target template, the first design parameters corresponding to the target template, and the constraint relationship between the first design parameters are acquired from a preset template set.

3. The method according to claim 2, characterized in that Before determining the acquisition instruction according to the preset operation, the method further includes: Create a database; Obtaining a preset template set according to a plurality of part models and an assembly model of the plurality of part models; Obtaining a design parameter set according to the design parameters and constraint expressions of the plurality of part models and the assembly model; Establishing a corresponding relationship between each template in the preset template set and each design parameter in the design parameter set, as well as a constraint relationship between each design parameter; The preset template set and the design parameter set are stored in the database.

4. The method according to claim 1, characterized in that The acquiring or generating a target template and a first design parameter of the target template according to the preset operation includes: According to the preset operation, a reference model and a third design parameter of the reference model are obtained; A generation instruction is determined, a target template is generated according to the reference model, and a first design parameter of the target template is generated according to the third design parameter.

5. The method according to any one of claims 1 to 4, characterized in that: Before receiving the adjustment operation for the first design parameter, the method further includes: The first design parameters are displayed on the auxiliary design interface in a preset order.

6. The method according to any one of claims 1 to 4, characterized in that: The adjustment operation includes a modification operation and / or a movement operation on the first design parameter, and the adjusting the first design parameter according to the adjustment operation includes at least one of the following: Modify the type and / or value of the first design parameter according to the modification operation; The constraint relationship of each design parameter in the first design parameters is modified according to the moving operation.

7. The method according to claim 1, characterized in that The method further comprises: verifying the second design parameter; If the type and / or value range of the second design parameter is incorrect, an error prompt is generated.

8. The method according to claim 1, characterized in that The step of sending the target template, the second design parameter and the constraint relationship between the second design parameter to design software includes: Based on the interface program, the file format of the target template is converted into a first target format, and the file format of the second design parameter is converted into a second target format. The first target format and the second target format are file formats recognizable by the design software.

9. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the method according to any one of claims 1 to 8 when executed by the processor.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Cited By

  • Underground power tunnel parameterization design method and system

    CN120387223A