Graph modification method and device based on size driving and electronic equipment

Through the graphic modification method based on size-driven, the graphic modification request is analyzed and the driving instructions are generated to modify the process graphics, which solves the problem that the process personnel need to re-draw images and achieves efficient and accurate graphic modification.

CN119888012APending Publication Date: 2025-04-25CAXA TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411960499.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

After drawing process graphics, craftsmen need to re-draw the image when they need to modify the graphics, resulting in low modification efficiency.

Method used

A graphic modification method based on size drive is provided. By receiving a graphic modification request, analyzing the modification data, determining the position information and selection set of the target object, and generating driver instructions to modify the target figure, and finally filling the modified figure on the driver card.

Benefits of technology

It realizes automated, efficient and accurate graphics modification, improves graphics modification efficiency, avoids repeated manual drawings, and solves the problem that craftsmen need to re-draw images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119888012A_ABST
    Figure CN119888012A_ABST
Patent Text Reader

Abstract

The invention discloses a graph modification method and device based on size driving and electronic equipment, and relates to the field of process design, and the method comprises the following steps: receiving a graph modification request, and analyzing the graph modification request to obtain modification data; calling the target graph based on the identification information of the target graph, traversing a graph object in the target graph, determining position information and a selection set of the target object, and recording a driving card where the target graph is located; generating a driving instruction based on the size modification parameter, the position information and the selection set of the target object, and modifying the target graph by adopting the driving instruction to obtain a modified target graph; and filling the modified target graph into a driving card. According to the method and the device, the technical problem that the modification efficiency is relatively low due to the fact that the image needs to be redrawn when the process graph needs to be modified after a technician performs drawing in the related technology is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of product design, and in particular to a size-driven graphics modification method and device, and electronic equipment. Background Art

[0002] Process graphics drawing plays a vital role in process production. It is not only the basis of engineering design and manufacturing planning, but also the key to process execution and quality control. Process graphics contain detailed information such as the geometry, size specifications, material properties, processing requirements, assembly instructions, etc. of the product or part, which is indispensable for process personnel. In the product design stage, process graphics provide detailed drawings of parts or components, based on which process personnel can plan processing paths, select processing tools and equipment, calculate processing time and cost, and thus develop the best process plan. In the production execution stage, process graphics serve as an operating guide to guide operators to process according to specified dimensions and specifications. It ensures the accuracy of the processing process and reduces the trial and error cost and scrap rate in production. Process graphics are also the basis for product inspection by the quality control department. By comparing the actual product with the process graphics, processing deviations can be quickly identified to ensure that the quality of the product meets the design standards.

[0003] After users draw process graphics on mapping software, they will inevitably face the need to modify the graphics. For example, in production work, raw materials often need to be processed multiple times. The size of the materials after each production and processing will change, and this change needs to be reflected in the drawing. For example, after users draw process graphics, they may need to report them for review. If the review fails, they need to readjust them. In related technologies, after drawing, when process personnel need to modify the process graphics, they need to redraw the image, which not only reduces efficiency, but may also cause errors due to human factors.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present invention provide a size-driven graphic modification method and device, and an electronic device thereof, so as to at least solve the technical problem in the related art that after drawing, when process personnel need to modify the process graphics, they need to redraw the image, resulting in low modification efficiency.

[0006] According to one aspect of an embodiment of the present invention, a size-driven graphics modification method is provided, comprising: receiving a graphics modification request, parsing the graphics modification request, and obtaining modification data, wherein the modification data at least comprises: identification information of a target graphics to be modified, identification information of a target object to be modified, and size modification parameters of the target object, wherein the target object is a graphic element in the target graphics; calling the target graphics based on the identification information of the target graphics, traversing the graphic objects in the target graphics, determining the position information and selection set of the target object, and recording a driver card where the target graphics is located, wherein the selection set comprises N associated objects associated with the target object, N is a positive integer, and the driver card is used to store a pre-drawn process graphics and parameter information corresponding to the process graphics; generating a drive instruction based on the size modification parameters of the target object, the position information, and the selection set, and modifying the target graphics using the drive instruction to obtain the modified target graphics; and filling the modified target graphics into the driver card.

[0007] Furthermore, before receiving a graphic modification request, it also includes: obtaining a process graphic drawn by a user terminal, and scanning the process graphic to obtain an object set in the process graphic; configuring identification information for each object in the object set; storing the process graphic in a graphic area of ​​the driver card, and storing the driver card in a configuration file of the process product to which the process graphic belongs.

[0008] Furthermore, the step of determining the position information of the target object includes: determining a reference object of the target graphic and obtaining a reference position of the reference object; identifying a relative relationship between the target object and the reference object; determining a position of the target object in the target graphic based on the relative relationship between the target object and the reference object and the reference position of the reference object, and obtaining the position information of the target object.

[0009] Furthermore, the step of determining the selection set of the target object includes: scanning the target object, obtaining internal components of the target object, and adding the internal components to the selection set of the target object; determining an associated area of ​​the target object based on location information of the target object; identifying objects in the associated area that are connected to the target object, and adding the objects that are connected to the target object to the selection set.

[0010] Furthermore, before generating a driving instruction based on the size modification parameters of the target object, the position information and the selection set, it also includes: traversing the size modification parameters to determine the size attribute to be modified; scanning the target object to determine whether the target object has the size attribute to be modified; and generating an error message if the target object does not have the size attribute to be modified.

[0011] Furthermore, the step of modifying the target graphic using the driving instruction includes: using the driving instruction to drive the drawing software to perform a size modification operation on the target object, modifying the size of the target object to the size specified by the size modification parameter, and obtaining the modified target object; obtaining size information and position information of the modified target object; and based on the size information and position information of the modified target object, using the driving instruction to drive the drawing software to perform a size modification operation and a position modification operation on the associated object, and obtaining the modified associated object.

[0012] Furthermore, the step of filling the modified target graphic into the driver card includes: calling the driver card of the target graphic and locating the target area where the target graphic is located; obtaining the size information and position information of the modified target graphic, and updating the target graphic in the target area based on the size information and position information of the modified target graphic, so that the modified target graphic is filled into the driver card.

[0013] According to another aspect of an embodiment of the present invention, a size-driven graphics modification device is provided, comprising: a receiving unit, configured to receive a graphics modification request, and parse the graphics modification request to obtain modification data, wherein the modification data at least comprises: identification information of a target graphics to be modified, identification information of a target object to be modified, and size modification parameters of the target object, wherein the target object is a graphic element in the target graphics; a determining unit, configured to call the target graphics based on the identification information of the target graphics, and traverse the graphic objects in the target graphics to determine the position information and selection set of the target object, and record the drive card where the target graphics is located, wherein the selection set comprises N associated objects associated with the target object, N is a positive integer, and the drive card is used to store pre-drawn process graphics and parameter information corresponding to the process graphics; a modifying unit, configured to generate a drive instruction based on the size modification parameters of the target object, the position information and the selection set, and modify the target graphics using the drive instruction to obtain the modified target graphics; and a filling unit, configured to fill the modified target graphics into the drive card.

[0014] Furthermore, the dimension-driven graphic modification device also includes: a first acquisition module, used to acquire the process graphics drawn by the user end, and scan the process graphics to obtain an object set in the process graphics; a first configuration module, used to configure identification information for each object in the object set; a first storage module, used to store the process graphics in the graphic area of ​​the driver card, and store the driver card in the configuration file of the process product to which the process graphics belongs.

[0015] Furthermore, the determination unit includes: a first determination module, used to determine the reference object of the target graphic and obtain the reference position of the reference object; a first identification module, used to identify the relative relationship between the target object and the reference object; and a second determination module, used to determine the position of the target object in the target graphic according to the relative relationship between the target object and the reference object and the reference position of the reference object, and obtain the position information of the target object.

[0016] Furthermore, the determination unit also includes: a second acquisition module, used to scan the target object, acquire internal components of the target object, and add the internal components to the selection set of the target object; a third determination module, used to determine the associated area of ​​the target object based on the location information of the target object; and a first adding module, used to identify objects in the associated area that have a connection relationship with the target object, and add the objects that have a connection relationship with the target object to the selection set.

[0017] Furthermore, the size-driven graphic modification device also includes: a fourth determination module, used to traverse the size modification parameters to determine the size attribute to be modified; a fifth determination module, used to scan the target object to determine whether the target object has the size attribute to be modified; and a first generation module, used to generate an error message when the target object does not have the size attribute to be modified.

[0018] Furthermore, the modification unit includes: a first execution module, used to use the driving instruction to drive the drawing software to perform the size modification operation of the target object, modify the size of the target object to the size specified by the size modification parameter, and obtain the modified target object; a third acquisition module, used to obtain the size information and position information of the modified target object; a second execution module, used to use the driving instruction to drive the drawing software to perform the size modification operation and position modification operation of the associated object according to the size information and position information of the modified target object, and obtain the modified associated object.

[0019] Furthermore, the filling unit includes: a first calling module, used to call the driver card of the target graphic and locate the target area where the target graphic is located; a first filling module, used to obtain the size information and position information of the modified target graphic, and update the target graphic in the target area based on the size information and position information of the modified target graphic, so that the modified target graphic is filled into the driver card.

[0020] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned size-driven graphics modification methods.

[0021] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement any one of the above-mentioned size-driven graphics modification methods.

[0022] In the present application, the following steps are performed: receiving a graphic modification request, parsing the graphic modification request, and obtaining modification data, wherein the modification data at least includes: identification information of the target graphic to be modified, identification information of the target object to be modified, and size modification parameters of the target object, the target object is a graphic element in the target graphic, and the target graphic is called based on the identification information of the target graphic, and the graphic objects in the target graphic are traversed to determine the position information and selection set of the target object, and the driver card where the target graphic is located is recorded, wherein the selection set contains N associated objects associated with the target object, N is a positive integer, and the driver card is used to store pre-drawn process graphics and parameter information corresponding to the process graphics, and then generate a drive instruction based on the size modification parameters, position information and selection set of the target object, and use the drive instruction to modify the target graphic to obtain a modified target graphic; finally, the modified target graphic is filled into the driver card.

[0023] In the present application, according to the graphic modification request of the process personnel, the target graphic to be modified, the target object and the size modification parameters are automatically obtained, and the position and associated objects of the target object to be modified are determined. According to the size modification parameters to be modified, and the position and associated objects of the target object to be modified, the driving instructions are constructed, and the size of the target object of the target graphic is modified by the driver program driving the drawing software. The process personnel only need to draw once, and then drive the graphic modification through the driver program, without the need for repeated manual drawing, so as to achieve the purpose of automatic, efficient and precise graphic modification, and obtain the technical effect of improving the efficiency of graphic modification, thereby solving the technical problem in the related technology that after the process personnel draws, when the process graphic needs to be modified, they need to redraw the image, resulting in low modification efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0025] Figure 1 is a flow chart of an optional size-driven graphics modification method according to an embodiment of the present invention;

[0026] Figure 2 is a schematic diagram of an optional size-driven graphics modification process according to an embodiment of the present invention;

[0027] Figure 3 is a schematic diagram of an optional batch graphics driving process according to an embodiment of the present invention;

[0028] Figure 4 is a schematic diagram of an optional size-driven graphics modification device according to an embodiment of the present invention;

[0029] Figure 5 The figure is a hardware structure block diagram of an electronic device (or mobile device) for executing a size-driven graphics modification method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0032] It should be noted that the size-driven graphic modification method and device thereof in the present application can be used in the field of product design when the size of objects in the graphic is modified by driving instructions, and can also be used in any field other than the field of product design when the size of objects in the graphic is modified by driving instructions. The application does not limit the application field of the size-driven graphic modification method and device thereof.

[0033] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant regions, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse. For example, an interface is set up between this system and relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.

[0034] It should be noted that in this application, when collecting and analyzing customer information, corresponding operation entrances are provided for users to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered.

[0035] The following embodiments of the present invention can be applied to various size-driven graphic modification systems / applications / devices. The present invention only needs to draw the initial graphic, and when the subsequent graphic changes, only the size modification parameters to be modified are configured, and the driving instructions are generated through the size modification parameters, and the driving drawing software only needs to modify the graphic. The process personnel do not need to draw again, which simplifies the drawing process of the process personnel and improves the efficiency of graphic modification.

[0036] The present invention is described in detail below in conjunction with various embodiments.

[0037] Embodiment 1

[0038] According to an embodiment of the present invention, an embodiment of a size-driven graphics modification method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0039] The implementation subject of the size-driven graphics modification method in the embodiment of the present invention is a graphics modification system. Figure 1 is a flow chart of an optional size-driven graphics modification method according to an embodiment of the present invention, such as Figure 1 As shown, the method comprises the following steps:

[0040] Step S101, receiving a graphic modification request, and parsing the graphic modification request to obtain modification data.

[0041] It should be noted that in the process of process production, process drawing is a key link in guiding process production. With the production and processing of process products, the size of the products will change. These changes need to be synchronized to the process drawings and reflected in the process drawings. Therefore, process personnel need to draw in real time according to the actual production situation. In this case, the work efficiency of process personnel is reduced and the workload is increased. At the same time, a large number of repeated drawings may lead to some subtle errors.

[0042] In this application, the drawing software is driven by driving instructions to modify the process graphics according to the process requirements to ensure that the process graphics in the process files are the latest. The process personnel can submit a graphic modification request through the user interface, command line or file upload, select the target graphics and target objects to be modified, and set the size modification parameters to generate a graphic modification request. The graphic modification system receives the graphic modification request submitted by the process personnel and first parses the request to extract the key modification data. This process is completed by the parsing module, which can identify the key information in the request, including but not limited to the identification information of the target graphics to be modified, the identification information of the target object to be modified, and the size modification parameters of the target object. Parsing the graphic modification request can enable the system to accurately understand the modification intention of the process personnel and provide necessary data preparation for subsequent modification operations.

[0043] Optionally, before receiving a graphic modification request, it also includes: obtaining a process graphic drawn by a user terminal, and scanning the process graphic to obtain an object set in the process graphic; configuring identification information for each object in the object set; storing the process graphic in a graphic area of ​​a driver card, and storing the driver card in a configuration file of a process product to which the process graphic belongs.

[0044] It should be noted that the system obtains the process graphics drawn by the process personnel through the interface with the user end. A process product may contain multiple process graphics, and multiple process graphics represent multiple parts of a process product. Multiple process graphics of a process product are saved in a process file, and the two-dimensional image of each process graphic and the properties, dimensions and other information of each object in the process graphic are recorded through the driver card. Specifically, after receiving the process graphics drawn by the user end, it is necessary to scan the process graphics, identify each graphic element in the process graphics, obtain multiple graphic objects in the process graphics, and construct an object set. By refining the process graphics and taking the graphic object as the smallest unit under the corresponding image of the process product, more refined graphic modification can be achieved, and then identification information is configured for each object in the object set, and the process graphics are stored in the driver card under the process file. The process graphics can be queried and intuitively displayed through the driver card.

[0045] By scanning the graphics and segmenting the process graphics, a systematic and structured graphics preparation and dimension-driven modification framework was built. By accurately acquiring the process graphics, deeply scanning to form an object set, accurately configuring the identification information, and integrating the parameters of the process graphics into the driver card and configuration file, it is ensured that when the process personnel make dimension-driven modifications, they do not need to draw the graphics from scratch, but can make quick and accurate modifications based on the pre-drawn graphic templates. This process not only significantly improves the efficiency and accuracy of graphic modification, but also greatly reduces the repetitive workload of process personnel and avoids potential errors caused by manual drawing.

[0046] Step S102: calling the target graphic based on the identification information of the target graphic, traversing the graphic objects in the target graphic, determining the position information and selection set of the target object, and recording the drive card where the target graphic is located.

[0047] It should be noted that, according to the identification information of the target graphic obtained by analysis, the driver card under the process file is queried, the specific target graphic is located, and the graphic objects in the target graphic are traversed to determine the position information of the target object to be modified and the multiple associated objects corresponding to the target object, and the driver card where the target graphic is located is recorded, laying the foundation for subsequent modification of the graphics stored on the driver card.

[0048] It should be noted that since the various parts in the process graphics do not exist independently, there may be a direct connection relationship between the graphic objects. After a graphic object is modified, other graphic objects connected to or associated with the graphic object may be shifted, resulting in errors in the modified graphics and differences from the correct image. Therefore, after determining a graphic object to be modified, it is necessary to obtain the associated objects associated with the graphic object, build a selection set, and then synchronously modify the associated objects. The selection set contains N associated objects associated with the target object.

[0049] I ensure that the system can accurately locate the graphic object that needs to be modified. Optionally, the step of determining the position information of the target object includes: determining the reference object of the target graphic and obtaining the reference position of the reference object; identifying the relative relationship between the target object and the reference object; determining the position of the target object in the target graphic based on the relative relationship between the target object and the reference object and the reference position of the reference object, and obtaining the position information of the target object.

[0050] Specifically, the reference object of the target graphic is determined, and the reference position of the reference object is obtained. The reference object refers to a graphic element with a clear position and attributes in the target graphic, which serves as a reference point for the positioning of the graphic. The system first identifies the reference objects in the target graphic. These reference objects usually have obvious geometric features or dimension annotations, such as the main contour lines, center points, fixed dimensions, boundary points, etc. of the graphic. Through deep parsing technology, the system can accurately identify the reference object from the complex target graphic and obtain its precise position information in the graphic, that is, the reference position, and establish a positioning reference, so that the system can determine the relative position of the target object based on this reference, so as to perform accurate operations in size-driven modifications.

[0051] Furthermore, after determining the reference object and its position, the system needs to identify the relative relationship between the target object and the reference object. This includes the position (such as up, down, left, right), distance, angle, etc. of the target object relative to the reference object, as well as the geometric relationship between them (such as parallel, vertical, tangent, etc.). By identifying the relative relationship, the system can understand the specific position and relevance of the target object in the graphic, providing key geometric information for the subsequent determination of position information.

[0052] After obtaining the reference position and relative relationship, the system can determine the specific position of the target object in the target graphic through calculation. This calculation is based on the known position of the reference object and the relative relationship between the target object and the reference object, thereby obtaining the precise coordinate information of the target object. The determination of position information is the key to performing dimension-driven modification, ensuring that the system can accurately operate the target object in the graphic and avoiding object confusion and position errors during the modification process.

[0053] In order to ensure the integrity and unity of the overall process graphics after the target object is resized, optionally, the step of determining the selection set of the target object includes: scanning the target object, obtaining internal components of the target object, and adding the internal components to the selection set of the target object; determining an associated area of ​​the target object based on the position information of the target object; identifying objects in the associated area that are connected to the target object, and adding the objects that are connected to the target object to the selection set.

[0054] It should be noted that when the system receives a request for graphic modification, it first starts the deep scanning module to perform a detailed analysis of the target object. The target object may be a complex graphic element, such as a composite structure containing multiple internal components (for example, a complex part contour composed of multiple line segments). The scanning process aims to identify these internal components, which are part of the target object and may also be affected by size-driven modifications. The system adds these internal components to the selection set of the target object. The key to this step is to ensure that all internal elements related to the size changes of the target object are taken into account for the modification, thereby avoiding omissions during the modification process and ensuring the overall consistency of the graphics.

[0055] Furthermore, after the internal components are added to the selection set, the system further analyzes the location information of the target object to determine the associated area it affects. The associated area refers to the area in the graphic that is directly or indirectly related to the size change of the target object, which may include graphic elements around the target object, objects adjacent to or intersecting the target object, etc. By determining the associated area, the system can identify all associated objects that may be affected by the size-driven modification, thereby ensuring the comprehensiveness and consistency of the modification operation.

[0056] Finally, the associated area is further analyzed to identify objects that are geometrically connected or logically associated with the target object. These objects may be directly affected by the size change of the target object, or indirectly affected by the adjustment of other objects. The system adds these objects to the selection set to ensure that all related objects can be adjusted synchronously when performing size-driven modifications. The key to this step is to identify all potential associated objects through in-depth graphic analysis, avoiding object isolation or incoordination during the modification process, and improving the accuracy and efficiency of graphic modification.

[0057] Before driving the graphics to be modified, it is necessary to effectively verify the size modification parameters and the target object to avoid invalid modifications. Optionally, before generating a driving instruction based on the size modification parameters, position information and selection set of the target object, it also includes: traversing the size modification parameters to determine the size attributes to be modified; scanning the target object to determine whether the target object has the size attributes to be modified; and generating an error message if the target object does not have the size attributes to be modified.

[0058] Specifically, after receiving a dimension modification request, the dimension modification parameters can be traversed first. This parameter set contains the dimension value information that the process personnel need to modify, as well as the attributes related to these dimension values ​​(such as prefix, suffix, deviation, etc.). The traversal process aims to identify all dimension attributes to be modified, and provide clear guidance for subsequent dimension verification and modification operations.

[0059] Furthermore, after determining the size attribute, the system performs a deep scan on the target object to verify whether the target object has the size attribute to be modified. Once the size modification parameters are traversed, the system will check the target object through graphic parsing technology to determine whether it contains the attribute that the user wants to modify. The above verification operation avoids invalid operations on graphic objects that do not have the modification conditions.

[0060] Step S103, generating a driving instruction based on the size modification parameter, position information and selection set of the target object, and modifying the target graphic using the driving instruction to obtain a modified target graphic.

[0061] It should be noted that after determining the size modification parameters, position information and selection set of the target object to be modified, the driver is called to generate specific drive instructions based on the size modification parameters, position information and selection set of the target object, and then the target graphics are accurately modified to achieve automatic drive graphics modification without manual drawing and modification.

[0062] Optionally, the step of modifying the target graphic using a driving instruction includes: using a driving instruction to drive the drawing software to perform a size modification operation on the target object, modifying the size of the target object to a size specified by a size modification parameter, and obtaining a modified target object; obtaining size information and position information of the modified target object; and based on the size information and position information of the modified target object, using a driving instruction to drive the drawing software to perform a size modification operation and a position modification operation on an associated object, and obtaining a modified associated object.

[0063] It should be noted that the process of modifying the target graphics using the driving instructions includes the steps of performing size modification on the target object and synchronous size and position modification on the associated objects. First, the drawing software can receive the driving instructions through its API (application programming interface) and use the built-in size editing module to perform the size modification operation. The size editing module can understand the size modification parameters, adjust the size attributes of the target object, and maintain consistency with other elements of the drawing software (such as coordinate system, geometric constraints, etc.), and automatically adjust the size of the target object to the user-specified value on the image of the process product. This ensures that the size of the target object can be accurately modified according to the user's needs, laying the foundation for subsequent modification of associated objects.

[0064] Furthermore, after the size modification of the target object is completed, the system needs to obtain the latest size information and position information of the modified target object. This information update is the key to ensuring the accuracy of the modification of the associated object. The system uses graphic parsing technology to read the size value and coordinate information of the modified target object, which will serve as a reference for subsequent graphic modifications. The purpose of this step is to ensure that the system can accurately perform the size and position modification of the associated object based on the latest state of the target object, avoiding information inconsistency during the modification process and improving the accuracy and consistency of the modification.

[0065] After obtaining the latest size and position information of the target object, the system calls the drawing software to perform the modification operation according to the modification requirements of the associated objects in the drive instructions. This operation not only includes the size adjustment of the associated object, but also may involve fine-tuning its position to ensure that the geometric relationship and logical connection between the modified associated object and the target object are consistent. Ensure that the size and position changes of all associated objects meet the user's expectations and obtain the final modified associated object. The purpose of this step is to achieve synchronous and coordinated modification of all related objects in the drawing, ensure the overall coherence and consistency of the drawing modification, and avoid possible incoordination and errors during the modification process.

[0066] Step S104, filling the modified target graphics into the driver card.

[0067] It should be noted that after the driver drawing software modifies the process graphics, the target graphics on the driver card also need to be updated to the latest size to ensure subsequent information traceability of the process graphics.

[0068] Optionally, the step of filling the modified target graphic into the driver card includes: calling the driver card of the target graphic and locating the target area where the target graphic is located; obtaining the size information and position information of the modified target graphic, and updating the target graphic in the target area based on the size information and position information of the modified target graphic, so that the modified target graphic is filled into the driver card.

[0069] It should be noted that after modifying the target graphics of the process product, the changed process graphics need to be recorded in the corresponding driver card. First, the driver card corresponding to the target graphics is called. This step can be achieved through the unique identifier of the driver card. Then, locate the target area of ​​the target graphics in the driver card. After the target graphics are modified by the size driver, the system needs to obtain its latest size information and position information. According to the obtained size information and position information, adjust the display size and position of the target graphics so that it can be accurately filled into the target area.

[0070] It should be noted that by realizing the visual display of process graphics modification results, the transparency and intuitiveness of the process design process are significantly enhanced.

[0071] Through the above steps, a graphic modification request is received, and the graphic modification request is parsed to obtain modification data, wherein the modification data at least includes: identification information of the target graphic to be modified, identification information of the target object to be modified, and size modification parameters of the target object, the target object is a graphic element in the target graphic, and the target graphic is called based on the identification information of the target graphic, and the graphic objects in the target graphic are traversed to determine the position information and selection set of the target object, and the drive card where the target graphic is located is recorded, wherein the selection set contains N associated objects associated with the target object, N is a positive integer, and the drive card is used to store pre-drawn process graphics and parameter information corresponding to the process graphics, and then a drive instruction is generated based on the size modification parameters, position information and selection set of the target object, and the target graphic is modified using the drive instruction to obtain a modified target graphic; finally, the modified target graphic is filled into the drive card.

[0072] In this embodiment, according to the graphic modification request of the process personnel, the target graphic to be modified, the target object and the size modification parameters are automatically obtained, and the position and associated objects of the target object to be modified are determined. According to the size modification parameters to be modified, and the position and associated objects of the target object to be modified, the driving instructions are constructed, and the size of the target object of the target graphic is modified by the driver program driving the drawing software. The process personnel only need to draw once, and then drive the graphic modification through the driver program, without repeated manual drawing, so as to achieve the purpose of automatic, efficient and accurate graphic modification, and obtain the technical effect of improving the efficiency of graphic modification, thereby solving the technical problem in the related technology that after the process personnel draws, when they need to modify the process graphic, they need to redraw the image, and the modification efficiency is low.

[0073] Another optional specific implementation is described in detail below.

[0074] Figure 2is a schematic diagram of an optional size-driven graphic modification process according to an embodiment of the present invention, such as Figure 2 As shown in the figure, the size-driven graphics modification process specifically includes:

[0075] Step 1, start;

[0076] Step 2: Create process files and draw process graphics;

[0077] Step 3: According to the driving rules, the graphics are modified. The business personnel configure the graphics driving rules and generate graphics modification requests.

[0078] Step 4: Make a two-dimensional partial enlarged image of the driven graphics and place it at the specified position.

[0079] Step five, end.

[0080] Based on the size-driven graphics modification method of the present application, batch-driven modification of target objects in the graphics can be achieved. Figure 3 is a schematic diagram of an optional batch graphics driving process according to an embodiment of the present invention, such as Figure 3 As shown in the figure, the specific batch drive process includes:

[0081] Step 1, start;

[0082] Step 2: parse the graphic modification request and determine the PID set of all target objects to be driven, where the PID set is the identification information set of the target objects;

[0083] Step 3, traverse the PID set;

[0084] Step 4: traverse all objects under the process file and record the card where the object is located (i.e., the drive card);

[0085] Step 5, determine whether the object is in the PID set, if so, execute step 6, if not, return to step 4;

[0086] Step 6, obtaining the new size value of the target object and the selection set;

[0087] Step 7, generating a driving instruction according to the new size value and the selection set, driving the drawing software to modify the target object and the associated objects in the selection set;

[0088] Step 8, determine whether the PID set has been traversed, if so, execute step 9, if not, return to step 3;

[0089] Step nine, two-dimensionally enlarge the graphics in the driver card area and adaptively put them back into the area;

[0090] Step 10, end.

[0091] In the embodiment of the present invention, the present invention only needs to draw the initial graphics, and when the subsequent graphics change, only the size modification parameters to be modified are configured, and the driving instructions are generated through the size modification parameters, and the driving drawing software only needs to modify the graphics. The process personnel do not need to draw again, which simplifies the drawing process of the process personnel and improves the efficiency of graphic modification.

[0092] The following is a detailed description in conjunction with another embodiment.

[0093] Embodiment 2

[0094] A size-driven graphic modification device provided in this embodiment includes multiple implementation units, each of which corresponds to each implementation step in the above-mentioned embodiment 1. Its specific implementation methods and beneficial effects can refer to the above-mentioned method embodiments and will not be repeated here.

[0095] Figure 4 is a schematic diagram of an optional size-driven graphics modification device according to an embodiment of the present invention, such as Figure 4 As shown, the size-driven graphic modification device includes: a receiving unit 41, a determining unit 42, a modifying unit 43, and a filling unit 44, wherein:

[0096] The receiving unit 41 is used to receive a graphic modification request and parse the graphic modification request to obtain modification data, wherein the modification data at least includes: identification information of a target graphic to be modified, identification information of a target object to be modified, and a size modification parameter of the target object, wherein the target object is a graphic element in the target graphic;

[0097] The determination unit 42 is used to call the target graphic based on the identification information of the target graphic, and traverse the graphic objects in the target graphic to determine the position information and selection set of the target object, and record the driver card where the target graphic is located, wherein the selection set includes N associated objects associated with the target object, N is a positive integer, and the driver card is used to store the pre-drawn process graphics and parameter information corresponding to the process graphics;

[0098] A modification unit 43 is used to generate a driving instruction based on the size modification parameter, position information and selection set of the target object, and to modify the target graphic using the driving instruction to obtain a modified target graphic;

[0099] The filling unit 44 is used to fill the modified target graphic into the driver card.

[0100] The above-mentioned size-driven graphic modification device receives a graphic modification request through a receiving unit 41, and parses the graphic modification request to obtain modification data, wherein the modification data at least includes: identification information of the target graphic to be modified, identification information of the target object to be modified, and size modification parameters of the target object, where the target object is a graphic element in the target graphic; calls the target graphic based on the identification information of the target graphic through a determining unit 42, and traverses the graphic objects in the target graphic to determine the position information and selection set of the target object, and records the drive card where the target graphic is located, wherein the selection set contains N associated objects associated with the target object, N is a positive integer, and the drive card is used to store pre-drawn process graphics and parameter information corresponding to the process graphics; generates a drive instruction based on the size modification parameters, position information and selection set of the target object through a modifying unit 43, and modifies the target graphic using the drive instruction to obtain a modified target graphic; fills the modified target graphic into the drive card through a filling unit 44.

[0101] In this embodiment, according to the graphic modification request of the process personnel, the target graphic to be modified, the target object and the size modification parameters are automatically obtained, and the position and associated objects of the target object to be modified are determined. According to the size modification parameters to be modified, and the position and associated objects of the target object to be modified, the driving instructions are constructed, and the size of the target object of the target graphic is modified by the driver program driving the drawing software. The process personnel only need to draw once, and then drive the graphic modification through the driver program, without repeated manual drawing, so as to achieve the purpose of automatic, efficient and accurate graphic modification, and obtain the technical effect of improving the efficiency of graphic modification, thereby solving the technical problem in the related technology that after the process personnel draws, when they need to modify the process graphic, they need to redraw the image, and the modification efficiency is low.

[0102] Optionally, the dimension-driven graphic modification device also includes: a first acquisition module, used to acquire the process graphics drawn by the user end, and scan the process graphics to obtain an object set in the process graphics; a first configuration module, used to configure identification information for each object in the object set; a first storage module, used to store the process graphics in the graphic area of ​​the driver card, and store the driver card in the configuration file of the process product to which the process graphics belongs.

[0103] Optionally, the determination unit 42 includes: a first determination module, used to determine the reference object of the target graphic and obtain the reference position of the reference object; a first identification module, used to identify the relative relationship between the target object and the reference object; and a second determination module, used to determine the position of the target object in the target graphic according to the relative relationship between the target object and the reference object and the reference position of the reference object, so as to obtain the position information of the target object.

[0104] Optionally, the determination unit 42 also includes: a second acquisition module, used to scan the target object, obtain internal components of the target object, and add the internal components to the selection set of the target object; a third determination module, used to determine the associated area of ​​the target object based on the location information of the target object; a first adding module, used to identify objects in the associated area that have a connection relationship with the target object, and add the objects that have a connection relationship with the target object to the selection set.

[0105] Optionally, the size-driven graphics modification device also includes: a fourth determination module, used to traverse the size modification parameters to determine the size attribute to be modified; a fifth determination module, used to scan the target object to determine whether the target object has the size attribute to be modified; and a first generation module, used to generate an error message when the target object does not have the size attribute to be modified.

[0106] Optionally, the modification unit 43 includes: a first execution module, which is used to use a driving instruction to drive the drawing software to perform a size modification operation on the target object, and modify the size of the target object to the size specified by the size modification parameter to obtain a modified target object; a third acquisition module, which is used to obtain size information and position information of the modified target object; and a second execution module, which is used to use a driving instruction to drive the drawing software to perform a size modification operation and a position modification operation on the associated object based on the size information and position information of the modified target object to obtain a modified associated object.

[0107] Optionally, the filling unit 44 includes: a first calling module, used to call the driver card of the target graphic and locate the target area where the target graphic is located; a first filling module, used to obtain the size information and position information of the modified target graphic, and update the target graphic in the target area based on the size information and position information of the modified target graphic, so that the modified target graphic is filled into the driver card.

[0108] The size-driven graphic modification device may further include a processor and a memory. The receiving unit 41, determining unit 42, modifying unit 43, filling unit 44, etc. are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.

[0109] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the size modification of the target graphics can be driven by adjusting kernel parameters.

[0110] The above-mentioned memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one storage chip.

[0111] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium including a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned size-driven graphics modification methods.

[0112] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement any one of the above-mentioned size-driven graphics modification methods.

[0113] According to another aspect of an embodiment of the present invention, a computer program product is further provided. The computer program product includes a computer program, wherein when the computer program is executed by a processor, any one of the above-mentioned size-driven graphics modification methods is implemented.

[0114] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: receiving a graphic modification request, and parsing the graphic modification request to obtain modification data, wherein the modification data at least includes: identification information of the target graphic to be modified, identification information of the target object to be modified, and size modification parameters of the target object, where the target object is a graphic element in the target graphic; calling the target graphic based on the identification information of the target graphic, and traversing the graphic objects in the target graphic to determine the position information and selection set of the target object, and recording the driver card where the target graphic is located, wherein the selection set contains N associated objects associated with the target object, N is a positive integer, and the driver card is used to store pre-drawn process graphics and parameter information corresponding to the process graphics; generating a drive instruction based on the size modification parameters, position information and selection set of the target object, and using the drive instruction to modify the target graphic to obtain a modified target graphic; filling the modified target graphic into the driver card.

[0115] Optionally, before receiving a graphic modification request, it also includes: obtaining a process graphic drawn by a user terminal, and scanning the process graphic to obtain an object set in the process graphic; configuring identification information for each object in the object set; storing the process graphic in a graphic area of ​​a driver card, and storing the driver card in a configuration file of a process product to which the process graphic belongs.

[0116] Optionally, the step of determining the position information of the target object includes: determining a reference object of the target graphic and obtaining a reference position of the reference object; identifying a relative relationship between the target object and the reference object; determining a position of the target object in the target graphic based on the relative relationship between the target object and the reference object and the reference position of the reference object, and obtaining the position information of the target object.

[0117] Optionally, the step of determining a selection set of the target object includes: scanning the target object, obtaining internal components of the target object, and adding the internal components to the selection set of the target object; determining an associated area of ​​the target object based on location information of the target object; identifying objects in the associated area that have a connection relationship with the target object, and adding the objects that have a connection relationship with the target object to the selection set.

[0118] Optionally, before generating a driving instruction based on the size modification parameters, position information and selection set of the target object, it also includes: traversing the size modification parameters to determine the size attribute to be modified; scanning the target object to determine whether the target object has the size attribute to be modified; and generating an error message if the target object does not have the size attribute to be modified.

[0119] Optionally, the step of modifying the target graphic using a driving instruction includes: using a driving instruction to drive the drawing software to perform a size modification operation on the target object, modifying the size of the target object to a size specified by a size modification parameter, and obtaining a modified target object; obtaining size information and position information of the modified target object; and based on the size information and position information of the modified target object, using a driving instruction to drive the drawing software to perform a size modification operation and a position modification operation on an associated object, and obtaining a modified associated object.

[0120] Optionally, the step of filling the modified target graphic into the driver card includes: calling the driver card of the target graphic and locating the target area where the target graphic is located; obtaining the size information and position information of the modified target graphic, and updating the target graphic in the target area based on the size information and position information of the modified target graphic, so that the modified target graphic is filled into the driver card.

[0121] Figure 5 1 is a hardware structure block diagram of an electronic device (or mobile device) that executes a size-driven graphics modification method according to an embodiment of the present invention. Figure 5 As shown, the electronic device may include one or more processors ( Figure 5502a, 502b, ..., 502n are used to illustrate that the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 504 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a keyboard, a power supply and / or a camera. A person skilled in the art can understand that Figure 5 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 5 More or fewer components as shown, or with Figure 5 Different configurations are shown.

[0122] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0123] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0124] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0125] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0126] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0127] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0128] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A size-driven graphics modification method, characterized in that: include: receiving a graphic modification request, and parsing the graphic modification request to obtain modification data, wherein the modification data at least includes: identification information of a target graphic to be modified, identification information of a target object to be modified, and a size modification parameter of the target object, wherein the target object is a graphic element in the target graphic; The target graphic is called based on the identification information of the target graphic, and the graphic objects in the target graphic are traversed to determine the position information and selection set of the target object, and the driver card where the target graphic is located is recorded, wherein the selection set includes N associated objects associated with the target object, N is a positive integer, and the driver card is used to store pre-drawn process graphics and parameter information corresponding to the process graphics; Generate a driving instruction based on the size modification parameter of the target object, the position information and the selection set, and modify the target graphic using the driving instruction to obtain the modified target graphic; Fill the modified target graphic into the driver card.

2. The modification method according to claim 1, characterized in that: Before receiving a graphics modification request, it also includes: Acquire a process graphic drawn by a user terminal, and scan the process graphic to obtain a set of objects in the process graphic; Configuring identification information for each object in the object set; The process graphics are stored in a graphics area of ​​the driver card, and the driver card is stored in a configuration file of a process product to which the process graphics belong.

3. The modification method according to claim 1, characterized in that: The step of determining the location information of the target object comprises: Determine a reference object of the target graphic, and obtain a reference position of the reference object; identifying a relative relationship between the target object and the reference object; The position of the target object in the target graphic is determined according to the relative relationship between the target object and the reference object and the reference position of the reference object, so as to obtain the position information of the target object.

4. The modification method according to claim 1, characterized in that: The step of determining the selection set of the target object comprises: Scanning the target object, obtaining internal components of the target object, and adding the internal components to a selection set of the target object; Determine an associated area of ​​the target object based on the location information of the target object; An object in the association area that is connected to the target object is identified, and the object that is connected to the target object is added to the selection set.

5. The modification method according to claim 1, characterized in that: Before generating a driving instruction based on the size modification parameter of the target object, the position information and the selection set, the method further includes: Traversing the size modification parameters to determine the size attribute to be modified; Scanning the target object to determine whether the target object has the size attribute to be modified; If the target object does not have the size attribute to be modified, an error message is generated.

6. The modification method according to claim 1, characterized in that: The step of modifying the target graphic using the driving instruction comprises: Using the driving instruction to drive the drawing software to perform the size modification operation of the target object, modifying the size of the target object to the size specified by the size modification parameter, and obtaining the modified target object; Obtaining the modified size information and position information of the target object; According to the modified size information and position information of the target object, the driving instruction is used to drive the drawing software to execute the size modification operation and the position modification operation of the associated object, so as to obtain the modified associated object.

7. The modification method according to claim 1, characterized in that: The step of filling the modified target graphic into the driver card comprises: Calling the driver card of the target graphic and locating the target area where the target graphic is located; The size information and position information of the modified target graphic are obtained, and the target graphic in the target area is updated based on the size information and position information of the modified target graphic, so that the modified target graphic is filled into the driving card.

8. A size-driven graphics modification device, characterized in that: include: A receiving unit, configured to receive a graphic modification request, and parse the graphic modification request to obtain modification data, wherein the modification data at least includes: identification information of a target graphic to be modified, identification information of a target object to be modified, and a size modification parameter of the target object, wherein the target object is a graphic element in the target graphic; a determination unit, configured to call the target graphic based on the identification information of the target graphic, traverse the graphic objects in the target graphic, determine the position information and selection set of the target object, and record the driver card where the target graphic is located, wherein the selection set includes N associated objects associated with the target object, N is a positive integer, and the driver card is used to store pre-drawn process graphics and parameter information corresponding to the process graphics; A modification unit, configured to generate a driving instruction based on the size modification parameter of the target object, the position information and the selection set, and to modify the target graphic using the driving instruction to obtain the modified target graphic; A filling unit is used to fill the modified target graphic into the driving card.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the size-driven graphics modification method according to any one of claims 1 to 7.

10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the size-driven graphics modification method described in any one of claims 1 to 7.