Design constraint method, device and equipment in design field and storage medium

By acquiring and judging user operation behavior in the design software, and using the constraint solver to obtain target constraints and feed them back to the user, the problem of low design efficiency caused by the design software returning multiple solutions is solved, and an efficient design process is achieved.

CN116166229BActive Publication Date: 2025-12-12深圳市万翼数字技术有限公司
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310146417.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-07
Publication Date
2025-12-12
Estimated Expiration
2043-02-07

AI Technical Summary

Technical Problem

When users operate the software, the software often returns the solution with the smallest change among multiple solutions, which reduces design efficiency and fails to meet the user's true design intent.

Method used

By acquiring the user's operational behavior initiated in the human-computer interaction design interface, it is determined whether it is a target operational behavior with constraints, and the target constraints are obtained and fed back to the user using a pre-built constraint solver so that the user can design based on the target constraints.

Benefits of technology

It improves design efficiency, enabling users to design efficiently based on optimal target constraints, and reduces misunderstandings and rework in the design process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116166229B_ABST
    Figure CN116166229B_ABST
Patent Text Reader

Abstract

The application relates to a design constraint method, device, equipment and storage medium in the design field. The method comprises the following steps: obtaining an operation behavior initiated by a user in a human-computer interaction design interface; judging whether the operation behavior is a target operation behavior with constraints; if the operation behavior is judged as the target operation behavior with constraints, obtaining a target constraint corresponding to the target operation behavior according to a pre-constructed constraint solver; and feeding back the target constraint to the user, so that the user designs based on the target constraint. According to the application, the user can efficiently design based on the target constraint.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computers, in particular to a design constraint method and device in the design field, equipment and storage medium. BACKGROUND

[0002] At present, when a user designs by using a design software, a system of the design software allocates multiple solutions to the operation behavior of the user, for example, when the operation behavior of the user is to drag a straight line, the system may allocate multiple solutions such as alignment, parallelism and coincidence to the behavior. Generally, the solution with the minimum change is returned to the user from the multiple solutions, but the solution with the minimum change is not the real design intention of the user, which leads to a reduction in design efficiency. SUMMARY

[0003] In view of the above, the present application provides a design constraint method, device, equipment and storage medium in the design field, which aims to solve the above technical problems.

[0004] In a first aspect, the present application provides a design constraint method in the design field, which comprises:

[0005] obtaining an operation behavior initiated by a user in a human-computer interaction design interface;

[0006] determining whether the operation behavior is a target operation behavior with constraints;

[0007] if yes, obtaining a target constraint corresponding to the target operation behavior according to a pre-constructed constraint solver;

[0008] feeding back the target constraint to the user for the user to design based on the target constraint.

[0009] Preferably, before obtaining the operation behavior initiated by the user in the human-computer interaction design interface, the method further comprises:

[0010] receiving an editing instruction of adding constraints input by the user;

[0011] determining an object of adding constraints according to first information of the editing instruction;

[0012] constructing a constraint of the object according to second information of the editing instruction.

[0013] Preferably, the determination of whether the operation behavior is a target operation behavior with constraints comprises:

[0014] matching the operation behavior with a pre-configured operation behavior table;

[0015] if the matching is successful, determining that the operation behavior is a target operation behavior with constraints;

[0016] If the matching fails, it is determined that the operation behavior does not have a target operation behavior with constraints.

[0017] Preferably, the target operation behavior corresponding to the target constraint is obtained according to a pre-constructed constraint solver, comprising:

[0018] The default constraint corresponding to the target operation behavior is obtained.

[0019] The configuration constraint corresponding to the target operation behavior is obtained.

[0020] According to the priority of the default constraint and the priority of the configuration constraint, the target constraint corresponding to the target operation behavior is solved by using the constraint solver.

[0021] Preferably, the target constraint corresponding to the target operation behavior is solved by using the constraint solver according to the priority of the default constraint and the priority of the configuration constraint, comprising:

[0022] When the configuration constraint is not empty, and the priority of the configuration constraint is higher than the priority of the default constraint, the configuration constraint with the highest priority is taken as the target constraint.

[0023] When the configuration constraint is empty, the default constraint is taken as the target constraint.

[0024] Preferably, the configuration constraint corresponding to the target operation behavior is obtained, comprising:

[0025] The historical operation behavior matching the target operation behavior in a preset time period is obtained.

[0026] The frequency of each historical constraint corresponding to the historical operation behavior is counted.

[0027] The historical constraint with the largest frequency is selected as the configuration constraint.

[0028] Preferably, the target constraint is fed back to the user, comprising:

[0029] The target constraint is fed back to the user through the man-machine interaction design interface.

[0030] In a second aspect, the present application provides a design constraint device in the field of design, comprising:

[0031] The first acquisition module is configured to obtain an operation behavior initiated by a user on a man-machine interaction design interface.

[0032] The judgment module is configured to determine whether the operation behavior is a target operation behavior with constraints.

[0033] The second obtaining module is configured to, if the operation behavior is determined to be a target operation behavior with constraints, obtain a target constraint corresponding to the target operation behavior according to a pre-constructed constraint solver.

[0034] The feedback module is configured to feed back the target constraint to the user, so that the user designs based on the target constraint.

[0035] In a third aspect, the present application provides an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus.

[0036] The memory is configured to store a computer program.

[0037] The processor is configured to execute the program stored on the memory, and implement the design constraint method of the design field according to any one of the embodiments of the first aspect.

[0038] In a fourth aspect, a computer readable storage medium is provided, which stores a computer program, and the computer program is executed by a processor to implement the design constraint method of the design field according to any one of the embodiments of the first aspect.

[0039] Compared with the prior art, the above technical solution provided by the embodiments of the present application has the following advantages:

[0040] The present application obtains the operation behavior initiated by the user in the human-computer interaction design interface, judges whether the operation behavior is a target operation behavior with constraints, and if the operation behavior is a target operation behavior with constraints, obtains the target constraint corresponding to the target operation behavior according to a pre-constructed constraint solver. The constraint solver can obtain the optimal target constraint from multiple constraints, and the target constraint is fed back to the user, so that the user can design efficiently based on the target constraint. BRIEF DESCRIPTION OF DRAWINGS

[0041] The accompanying drawings, which are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present application and, together with the specification, serve to explain the principles of the present application.

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, for those skilled in the art, other drawings can also be obtained without creative labor based on these drawings.

[0043] Figure 1 The flowchart of the design constraint method of the design field of the present application is shown in the figure.

[0044] Figure 2A module schematic diagram of a preferred embodiment of a design constraint device in the design field of the present application;

[0045] Figure 3 A schematic diagram of a preferred embodiment of an electronic device in the present application;

[0046] The implementation, functional features and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solutions and advantages of the present application more clear, the present application will be further described in detail below with reference to the embodiments and the accompanying drawings. 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. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without making creative efforts fall within the scope of protection of the present application.

[0048] It should be noted that the description involving "first", "second" and the like in the present application is only for the purpose of description, and cannot be understood as indicating or implying the relative importance of the indicated technical features or implicitly indicating the number of the indicated technical features. Therefore, the features limited by "first" and "second" can explicitly or implicitly include at least one of the features. In addition, the technical solutions of various embodiments can be combined with each other, but it must be based on the fact that those of ordinary skill in the art can realize it, and when the combination of technical solutions appears to be contradictory or unachievable, it should be considered that the combination of technical solutions does not exist, and is not within the scope of protection claimed by the present application.

[0049] The present application provides a design constraint method in the design field. Referring to Figure 1 The method flow schematic diagram of an embodiment of the design constraint method in the design field of the present application is shown. The method can be executed by an electronic device, which can be realized by software and / or hardware. The design constraint method in the design field includes:

[0050] Step S10: obtaining an operation behavior initiated by a user in a human-computer interaction design interface;

[0051] Step S20: judging whether the operation behavior is a target operation behavior with constraint;

[0052] Step S30: if it is judged that the operation behavior is a target operation behavior with constraint, obtaining a target constraint corresponding to the target operation behavior according to a pre-constructed constraint solver;

[0053] Step S40: feeding back the target constraint to the user, so that the user designs based on the target constraint.

[0054] In this embodiment, the electronic device is installed with design software (for example, design software in the field of architecture), and when a user uses the design software, the user can draw and design related drawings through the human-computer interaction design interface of the electronic device. Taking the case that the user draws a sketch using the design software as an example, the scheme of the present application is described. It can be understood that the design software in the application scenario of the present application can also be design software in other fields.

[0055] When the user draws a sketch using the design software, the operation behavior initiated by the user can be dragging the end point of the sketch line, moving the sketch line itself, or annotating the size based on the distance of the sketch line. The operation behavior can also be setting the view environment of the sketch, zooming in or out the sketch, etc.

[0056] The electronic device detects and obtains the operation behavior initiated by the user in the human-computer interaction design interface in real time. Since some operation behaviors are constrained operation behaviors and some operation behaviors are unconstrained operation behaviors, for example, the operation behavior of zooming in or out the sketch does not have constraints, and the operation behavior of dragging the end point of the sketch line can have constraints, which can be parallel, vertical, coincident, aligned size, etc. Therefore, after obtaining the operation behavior initiated by the user in the human-computer interaction design interface, it is necessary to determine whether the operation behavior is a constrained operation behavior, which is referred to as a target operation behavior.

[0057] If it is determined that the obtained operation behavior is a target operation behavior with constraints, the target constraint corresponding to the target operation behavior is obtained, which can be obtained by a constraint solver. The target constraint is solved by the constraint solver based on the user's past historical operation behaviors, for example, when the target operation behavior is dragging the end point of the sketch line, the constraint solver solves that most of the time when the user drags the end point of the sketch line, the dragged line is placed parallel to other lines, and the target constraint solved by the constraint solver is parallel.

[0058] When the user ends the current operation behavior (for example, when the dragging of the end point of the sketch line stops), the optimal solution (i.e., the solution with the highest priority) solved by the constraint solver is refreshed, and the view of the sketch design page is refreshed, and the target constraint is fed back to the user for the user to design quickly and efficiently based on the target constraint. For example, the target operation behavior is the dragging of the end point of the sketch line, the optimal solution solved by the constraint solver is parallel, and the sketch design page prompts parallel, and when the user drags the end point of the sketch line, the sketch line is placed in a position parallel to other lines for the user to confirm. Further, if the result of the target constraint is not the real intention of the user, the user can manually return to the state before the constraint solving, and add more constraints to achieve the desired result. For example, if the real intention of the user dragging the end point of the sketch line is to align the size, the user can manually return to the state before parallel.

[0059] The application obtains the operation behavior initiated by the user in the human-computer interaction design interface, judges whether the operation behavior is a target operation behavior with constraints, if the operation behavior is a target operation behavior with constraints, obtains the target constraint corresponding to the target operation behavior according to the pre-constructed constraint solver, and uses the constraint solver to solve the optimal target constraint from multiple constraints, and feeds back the target constraint to the user, so that the user can design efficiently based on the target constraint.

[0060] In one embodiment, before obtaining the operation behavior initiated by the user in the human-computer interaction design interface, the method further comprises:

[0061] receiving an editing instruction of adding constraints input by the user;

[0062] determining the object of adding constraints according to the first information of the editing instruction;

[0063] constructing the constraint of the object according to the second information of the editing instruction.

[0064] The user can add constraints according to the design needs or design habits. The user can input an editing instruction of adding constraints in the constraint setting page, and the editing instruction includes an object (denoted as first information) to be added and a specific constraint behavior (denoted as second information). The object to be added can be an end point, a tangent point, a center point, a line segment, a surface, etc., and the constraint behavior includes parallel, perpendicular, coincidence, alignment of size, etc. After determining the object of adding constraints according to the first information of the editing instruction, the constraint of the object is constructed according to the second information of the editing instruction.

[0065] In one embodiment, the judgment of whether the operation behavior is a target operation behavior with constraints comprises:

[0066] matching the operation behavior with a pre-configured operation behavior table;

[0067] if the matching is successful, judging that the operation behavior is a target operation behavior with a constraint;

[0068] if the matching fails, judging that the operation behavior is a target operation behavior without a constraint.

[0069] The operation behavior with a constraint can be pre-stored in the operation behavior table. When it is needed to judge whether the operation behavior of the user is a target operation behavior with a constraint, the operation behavior of the user can be matched with the pre-configured operation behavior table. If the matching is successful, it indicates that the operation behavior exists in the operation behavior table. At this time, it is judged that the operation behavior of the user is a target operation behavior with a constraint. If the matching fails, it indicates that the operation behavior does not exist in the operation behavior table. At this time, it is judged that the operation behavior of the user is not a target operation behavior with a constraint.

[0070] In an embodiment, the target constraint corresponding to the target operation behavior is obtained according to a pre-constructed constraint solver, including:

[0071] obtaining a default constraint corresponding to the target operation behavior;

[0072] obtaining a configuration constraint corresponding to the target operation behavior;

[0073] obtaining a configuration constraint corresponding to the target operation behavior;

[0074] The default constraint corresponding to the target operation behavior can be a constraint automatically added by a design software background. The configuration constraint corresponding to the target operation behavior can be a constraint manually added by a user and a constraint added by a system according to a historical operation behavior of the user. If the user does not change the priority, the priority of the configuration constraint is higher than the priority of the default constraint. According to the priority of the default constraint and the priority of the configuration constraint, the target constraint corresponding to the target operation behavior is solved by using the constraint solver.

[0075] Further, the target constraint corresponding to the target operation behavior is solved by using the constraint solver according to the priority of the default constraint and the priority of the configuration constraint, including:

[0076] when the configuration constraint is not empty and the priority of the configuration constraint is higher than the priority of the default constraint, the configuration constraint with the highest priority is taken as the target constraint;

[0077] when the configuration constraint is empty, the default constraint is taken as the target constraint.

[0078] The user can manually add multiple configuration constraints and set the priority of the configuration constraints. When the configuration constraints are not empty (i.e., there are configuration constraints) and the priority of the configuration constraints is higher than the priority of the default constraint, the configuration constraint with the highest priority is taken as the target constraint. When the target operation behavior is determined, the default constraint of the target operation behavior is temporarily invalidated. When the configuration constraint does not meet the target operation behavior and the default constraint meets the target operation behavior, the invalidated default constraint is re-enabled. When the configuration constraint is empty, the default constraint is directly taken as the target constraint.

[0079] Further, the configuration constraint corresponding to the target operation behavior is obtained by:

[0080] obtaining a historical operation behavior matching the target operation behavior in a preset time period;

[0081] obtaining each historical constraint corresponding to the historical operation behavior, and counting the frequency of each historical constraint;

[0082] selecting the historical constraint with the highest frequency as the configuration constraint.

[0083] The configuration constraint corresponding to the target operation behavior can be added according to the historical operation behavior of the user. Specifically, a historical operation behavior matching the target operation behavior in a preset time period is obtained. For example, the target operation behavior is to drag the end point of a sketch line. Historical operation behaviors matching the target operation behavior in 10 days are obtained. The historical operation behaviors matching the target operation behavior can be behaviors of the user dragging the end point of any sketch line. Each historical operation behavior has a corresponding historical constraint. For example, the constraint of the user dragging the end point of a sketch line at time point A is vertical, and the constraint of the user dragging the end point of a sketch line at time point B is coincident. Each historical constraint corresponding to the historical operation behavior is obtained, the frequency of each historical constraint is counted, and the historical constraint with the highest frequency is taken as the configuration constraint. The configuration constraint is determined according to the past design behavior of the user, and the design intention of the user can be more accurately determined.

[0084] Referring to Figure 2 FIG. 1 shows a functional module diagram of a design constraint device 100 in the design field of the present application.

[0085] The design constraint device 100 in the design field of the present application can be installed in an electronic device. According to the implemented functions, the design constraint device 100 in the design field of the present application can include a first obtaining module 110, a judging module 120, a second obtaining module 130, and a feedback module 140. The modules in the present application can also be referred to as units, which refer to a series of computer program segments that can be executed by an electronic device processor and can complete a fixed function, and are stored in the memory of the electronic device.

[0086] In the embodiment, the functions of the modules / units are as follows:

[0087] The first obtaining module 110 is configured to obtain an operation behavior initiated by a user on a man-machine interaction design interface.

[0088] The judging module 120 is configured to judge whether the operation behavior is a target operation behavior with constraints.

[0089] The second obtaining module 130 is configured to, if the operation behavior is judged as the target operation behavior with constraints, obtain a target constraint corresponding to the target operation behavior according to a pre-constructed constraint solver.

[0090] The feedback module 140 is configured to feed back the target constraint to the user, so that the user designs based on the target constraint.

[0091] In one embodiment, the first obtaining module 110 is further configured to:

[0092] receive an editing instruction of adding constraints input by the user;

[0093] determine an object of adding constraints according to first information of the editing instruction;

[0094] construct constraints of the object according to second information of the editing instruction.

[0095] In one embodiment, the judging whether the operation behavior is the target operation behavior with constraints comprises:

[0096] matching the operation behavior with a pre-configured operation behavior table;

[0097] if the matching is successful, judging that the operation behavior is the target operation behavior with constraints;

[0098] if the matching fails, judging that the operation behavior is not the target operation behavior with constraints.

[0099] In one embodiment, the obtaining the target constraint corresponding to the target operation behavior according to the pre-constructed constraint solver comprises:

[0100] obtaining a default constraint corresponding to the target operation behavior;

[0101] obtaining a configuration constraint corresponding to the target operation behavior;

[0102] solving the target constraint corresponding to the target operation behavior by using the constraint solver according to a priority of the default constraint and a priority of the configuration constraint.

[0103] In an embodiment, the solving, according to the priority of the default constraint and the priority of the configuration constraint, of the target constraint corresponding to the target operation behavior by the constraint solver comprises:

[0104] When the configuration constraint is not empty and the priority of the configuration constraint is higher than the priority of the default constraint, the configuration constraint with the highest priority is taken as the target constraint.

[0105] When the configuration constraint is empty, the default constraint is taken as the target constraint.

[0106] In an embodiment, the obtaining of the configuration constraint corresponding to the target operation behavior comprises:

[0107] Obtaining a historical operation behavior matching the target operation behavior in a preset time period;

[0108] Obtaining each historical constraint corresponding to the historical operation behavior and counting the frequency of each historical constraint;

[0109] Selecting the historical constraint with the highest frequency as the configuration constraint.

[0110] In an embodiment, the feeding back of the target constraint to the user comprises:

[0111] Feeding back the target constraint to the user through the human-computer interaction design interface.

[0112] Referring to Figure 3 FIG. 1 is a schematic diagram of a preferred embodiment of an electronic device 1 of the present application.

[0113] The electronic device 1 comprises but is not limited to a memory 11, a processor 12, a display 13 and a communication interface 14. The electronic device 1 can be connected to a network through the communication interface 14. The network can be an intranet, the Internet, a global system for mobile communication (GSM), wideband code division multiple access (WCDMA), a 4G network, a 5G network, Bluetooth, Wi-Fi, a call network and other wireless or wired networks.

[0114] The memory 11 includes at least one type of readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of the electronic device 1, such as a hard disk or a memory of the electronic device 1. In other embodiments, the memory 11 can also be an external storage device of the electronic device 1, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped with the electronic device 1. Of course, the memory 11 can also include both the internal storage unit and the external storage device of the electronic device 1. In this embodiment, the memory 11 is generally used to store an operating system and various computer programs installed in the electronic device 1, such as program codes of the design constraint program 10 in the design field, etc. In addition, the memory 11 can also be used to temporarily store various data that have been output or will be output.

[0115] The processor 12 can be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip in some embodiments. The processor 12 is generally used to control the overall operation of the electronic device 1, such as performing control and processing related to data interaction or communication, etc. In this embodiment, the processor 12 is used to run program codes or process data stored in the memory 11, such as running program codes of the design constraint program 10 in the design field, etc.

[0116] The display 13 can be referred to as a display screen or a display unit. In some embodiments, the display 13 can be an LED display, a liquid crystal display, a touch liquid crystal display, an organic light-emitting diode (OLED) touch, etc. The display 13 is used to display information processed in the electronic device 1 and to display a visualized work interface.

[0117] The communication interface 14 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc. The communication interface 14 is generally used to establish a communication connection between the electronic device 1 and other electronic devices.

[0118] Figure 3Only the electronic device 1 with the components 11-14 and the design field design constraint program 10 is shown, but it should be understood that all the shown components are not required to be implemented, and more or less components can be alternatively implemented.

[0119] In the above embodiment, the processor 12 can implement the following steps when executing the design field design constraint program 10 stored in the memory 11:

[0120] Obtaining an operation behavior initiated by a user in a human-computer interaction design interface;

[0121] Determining whether the operation behavior is a target operation behavior with constraints;

[0122] If yes, obtaining a target constraint corresponding to the target operation behavior according to a pre-constructed constraint solver;

[0123] Feeding back the target constraint to the user for the user to design based on the target constraint.

[0124] The storage device can be the memory 11 of the electronic device 1, or can be another storage device in communication connection with the electronic device 1.

[0125] For detailed introduction of the above steps, please refer to the above Figure 2 For the functional module diagram of the design field design constraint device 100 embodiment and Figure 1 For the flowchart of the design field design constraint method embodiment.

[0126] In addition, the embodiment of the present application also proposes a computer readable storage medium, which can be non-volatile or volatile. The computer readable storage medium can be any one or any combination of a hard disk, a multimedia card, an SD card, a flash memory card, an SMC, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disc read-only memory (CD-ROM), a USB memory, etc. The computer readable storage medium includes a storage data area and a storage program area, and the storage program area stores a design field design constraint program 10, which is executed by a processor to implement the following operations:

[0127] Obtaining an operation behavior initiated by a user in a human-computer interaction design interface;

[0128] Determining whether the operation behavior is a target operation behavior with constraints;

[0129] If yes, obtaining a target constraint corresponding to the target operation behavior according to a pre-constructed constraint solver;

[0130] feed back the target to the user for the user to design based on the target constraint.

[0131] The specific implementation of the computer readable storage medium of the present application is substantially the same as that of the design constraint method of the above-mentioned design field, and will not be described here.

[0132] It should be noted that the above-mentioned sequence number of the embodiments of the present application is only for description, not representing the advantages and disadvantages of the embodiments. And the terms "include", "contain" or any other variants thereof in this paper are intended to cover non-exclusive inclusion, so that the process, device, article or method including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or includes elements inherent to such process, device, article or method. Without more limitations, the element defined by the sentence "including a" does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0133] Through the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software and a necessary general hardware simulation platform, of course, it can also be implemented by hardware, but in many cases the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a plurality of instructions for making a terminal device (which can be a mobile phone, computer, electronic device, or network device, etc.) execute the method described in each embodiment of the present application.

[0134] The above is only the preferred embodiment of the present application, and does not limit the patent scope of the present application, and any equivalent structure or equivalent process transformation using the content of the present application specification and drawings, or direct or indirect application in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A design constraint method in the field of design, characterized by, The method comprises: acquiring an operation behavior initiated by a user on a human-computer interaction design interface; determining whether the operation behavior is a target operation behavior with constraints; if yes, acquiring a target constraint corresponding to the target operation behavior according to a pre-constructed constraint solver, wherein the constraint solver is used to obtain an optimal target constraint from multiple constraints; feeding back the target constraint to the user for the user to design based on the target constraint; the acquiring of the target constraint corresponding to the target operation behavior according to the pre-constructed constraint solver comprises: acquiring a default constraint corresponding to the target operation behavior; acquiring a configuration constraint corresponding to the target operation behavior; acquiring a target constraint corresponding to the target operation behavior by using the constraint solver according to the priority of the default constraint and the priority of the configuration constraint; the acquiring of the target constraint corresponding to the target operation behavior by using the constraint solver according to the priority of the default constraint and the priority of the configuration constraint comprises: when the configuration constraint is not empty and the priority of the configuration constraint is higher than the priority of the default constraint, taking the configuration constraint with the highest priority as the target constraint; when the configuration constraint is empty, taking the default constraint as the target constraint.

2. The design constraint method in the design field according to Claim 1, wherein, Before the acquiring of the operation behavior initiated by the user on the human-computer interaction design interface, the method further comprises: receiving an editing instruction of adding a constraint input by the user; determining an object of adding a constraint according to first information of the editing instruction; constructing a constraint of the object according to second information of the editing instruction.

3. The design constraint method in the design field according to Claim 1, wherein, the determining of whether the operation behavior is a target operation behavior with constraints comprises: matching the operation behavior with a pre-configured operation behavior table; if the matching is successful, determining that the operation behavior is a target operation behavior with constraints; if the matching fails, determining that the operation behavior is not a target operation behavior with constraints.

4. The design constraint method in the design field according to Claim 1, wherein, the acquiring of the configuration constraint corresponding to the target operation behavior comprises: acquiring a historical operation behavior matching the target operation behavior within a preset time period; acquiring each historical constraint corresponding to the historical operation behavior and counting the frequency of each historical constraint; selecting a historical constraint with the highest frequency as the configuration constraint.

5. The design constraint method of claim 1, wherein the design constraint is a design constraint of a design domain. the feeding back of the target constraint to the user comprises: feeding back the target constraint to the user through the human-computer interaction design interface.

6. A design constraint device in the field of design, characterized by, The device comprises: a first acquiring module for acquiring an operation behavior initiated by a user on a human-computer interaction design interface; a determining module for determining whether the operation behavior is a target operation behavior with constraints; a second acquiring module for acquiring a target constraint corresponding to the target operation behavior according to a pre-constructed constraint solver if the operation behavior is determined to be a target operation behavior with constraints, wherein the constraint solver is used to obtain an optimal target constraint from multiple constraints; a feeding back module for feeding back the target constraint to the user for the user to design based on the target constraint; the acquiring of the target constraint corresponding to the target operation behavior according to the pre-constructed constraint solver comprises: acquire a default constraint corresponding to the target operation behavior; acquire a configuration constraint corresponding to the target operation behavior; solve the target constraint corresponding to the target operation behavior by using the constraint solver according to the priority of the default constraint and the priority of the configuration constraint; The method according to the priority of the default constraint and the priority of the configuration constraint, and solving the target constraint corresponding to the target operation behavior by using the constraint solver, comprises: When the configuration constraint is not empty, and the priority of the configuration constraint is higher than the priority of the default constraint, the configuration constraint with the highest priority is taken as the target constraint; When the configuration constraint is empty, the default constraint is taken as the target constraint.

7. An electronic device, comprising: The system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus; The memory is used for storing a computer program; The processor is used for executing the program stored on the memory, and realizing the design constraint method of the design field in any one of claims 1 to 5.

8. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to realize the design constraint method of the design field in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Ordering optional constraints in a variational system

    CN104428773A