Process sketch compiling method and system based on cutting viewport display

By adopting a process diagram compilation method based on a clipping viewport display, the problems of low compilation efficiency and easy error in traditional methods are solved. It enables efficient and accurate extraction and compilation of process diagrams from massive part drawings, supports digitalization and multi-user concurrent access, and adapts to changes in part drawings.

CN121789243APending Publication Date: 2026-04-03WUHAN KAIMU INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-02
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

In existing technologies, the process of compiling simplified machining process diagrams is cumbersome and prone to errors. It is difficult to quickly and accurately extract and compile simplified process diagrams from a large number of part drawings, resulting in low work efficiency and difficulty in digitization.

Method used

A process diagram compilation method based on viewport display is adopted. By creating part pages and process pages, establishing links, loading the original image source of the part drawing, selecting and cropping the specified area, and aligning the coordinate system of the target area with the specified area, the efficient display and scaling of the image is achieved.

Benefits of technology

It improves the efficiency of process diagram preparation, reduces errors, supports concurrent access by multiple users, adapts to changes in part drawings, improves the efficiency of process card changes, and realizes efficient, accurate preparation and digitization of process diagrams.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121789243A_ABST
    Figure CN121789243A_ABST
Patent Text Reader

Abstract

The invention discloses a process sketch compiling method and system based on cutting viewport display, and the method comprises the steps: creating a part page and a process page, selecting a process sketch region in the process page corresponding to a target process, and building a link of the part page; loading an original image source of a part drawing in the part page through a link of the part page in the process sketch area, and selecting and cutting a specified area in the original image source; and displaying the cut specified area in a target area in the process sketch area, and aligning coordinate systems of the target area and the specified area. According to the technical scheme provided by the embodiment of the invention, the process sketch in the processing procedure card can be more accurately and efficiently manufactured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of engineering drawing analysis technology, specifically to a method and system for compiling process diagrams based on a cut-out viewport display. Background Technology

[0002] A machining process card is a process document used to record and guide the details of each step in the machining process of a part, including the equipment, tools, machining parameters, and inspection requirements. It is typically used in mass production to ensure standardization and consistency in the machining process.

[0003] In traditional manufacturing and process review, process engineers must manually compare the part assembly drawing or process drawing and use a "copy-delete" method to create simplified process diagrams for each machining process card. They must extract the necessary elements from existing part drawings and edit them. Furthermore, the creation of machining process cards always requires selecting specific areas from the part drawings as the basis for the simplified process diagrams. This operational mode is not only cumbersome and prone to errors, but also makes it difficult for process engineers to accurately and quickly locate the required specific areas from a vast amount of part drawing information when the part structure is complex, directly leading to low work efficiency.

[0004] Therefore, there is an urgent need to provide a more efficient method that can extract the required information from a large number of part drawings to create process diagrams. Summary of the Invention

[0005] This invention provides a method and system for creating process diagrams based on a cut-out viewport display, in order to solve at least one of the technical problems existing in the prior art.

[0006] In a first aspect, the present invention provides a method for compiling process diagrams based on a cut-out viewport display, comprising:

[0007] Create part pages and process pages, and establish a link to the part page by selecting the process diagram area in the process page corresponding to the target process;

[0008] In the process diagram area, the original image source of the part drawing in the part page is loaded through the link of the part page, and a specified area is selected and cropped in the original image source;

[0009] The target area in the process diagram area displays the specified area that has been cropped, and the coordinate systems of the target area and the specified area are aligned.

[0010] Furthermore, the process of creating part pages and process pages specifically includes:

[0011] Create a part page that is configured to load part drawings of the part to be processed;

[0012] Based on the part drawing, the processing technology of the part to be processed is determined, resulting in multiple processing steps arranged in the processing sequence;

[0013] Create multiple process pages, with each process page corresponding to a processing step.

[0014] Furthermore, the original image source of the part drawing is stored in a non-volatile storage medium and loaded into memory through an image decoder to form an original image buffer, and the data in the original image buffer is in a read-only state.

[0015] A global coordinate system is established in the original image source of the part drawing, and the regional information of the specified area is determined through the global coordinate system.

[0016] Furthermore, during the process of loading the original image source of the part drawing in the part page, the address offset of the pixel data block in the global coordinate system in the original image buffer is calculated, and the global coordinate system is restored based on the address offset.

[0017] Furthermore, a canvas coordinate system is established in the target area of ​​the process diagram area, and the area information of the target area is determined through the canvas coordinate system;

[0018] By aligning the canvas coordinate system with the global coordinate system, the image in the specified cropped area is completely placed into the target area.

[0019] Furthermore, when the size of the target region is different from the size of the specified region, the size of the target region is scaled.

[0020] Furthermore, during the scaling of the target area, the physical size and display resolution of the original image source of the part drawing are bound together.

[0021] Secondly, the present invention provides a process diagram compilation system based on a cut-out viewport display, comprising:

[0022] The page creation unit is used to create part pages and process pages, and to establish a link to the part page by selecting the process diagram area in the process page corresponding to the target process.

[0023] The drawing cropping unit is used to load the original image source of the part drawing in the part page through the link of the part page in the process diagram area, and select and crop a specified area in the original image source;

[0024] A simplified diagram display unit is used to display the specified area that has been cropped in the target area of ​​the process simplified diagram area, and to align the coordinate system of the target area with that of the specified area.

[0025] Thirdly, embodiments of the present invention provide an electronic device, the electronic device comprising:

[0026] At least one processor; and a memory communicatively connected to the at least one processor;

[0027] The memory stores a computer program that can be executed by at least one processor, such that the at least one processor is able to perform the steps of the method according to any embodiment of the present invention.

[0028] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing computer instructions that are used to cause a processor to execute the steps of any embodiment of the method of the present invention.

[0029] Compared with the prior art, the present invention has the following advantages:

[0030] The technical solution in this embodiment of the invention first creates a part page and a process page. Then, in the process page corresponding to the target process, a link to the part page is established by selecting a process diagram area. Next, in the process diagram area, the original image source of the part drawing in the part page is loaded through the link. A specified area is selected and cropped from the original image source. Finally, the cropped specified area is displayed in the target area of ​​the process diagram area, and the coordinate systems of the target area and the specified area are aligned. Through this technical solution, the required content can be extracted from a large number of part drawings more efficiently for compiling process diagrams in the processing operation card. Attached Figure Description

[0031] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only preferred embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0032] Figure 1 This is a flowchart illustrating a method for creating a process diagram based on a cutout viewport display, provided by an embodiment of the present invention.

[0033] Figure 2 A schematic diagram of an overall view of a part drawing provided in an embodiment of the present invention;

[0034] Figure 3 A schematic diagram of a designated area of ​​a part drawing provided in an embodiment of the present invention;

[0035] Figure 4 A schematic diagram of a process diagram area on a process page provided in an embodiment of the present invention;

[0036] Figure 5 A schematic diagram of a process diagram compilation system based on a cutout viewport display provided in an embodiment of the present invention;

[0037] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0038] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0039] Before introducing the technical solution of this invention, it should be noted that in the existing machining process planning, the parts to be processed are manufactured through multiple processes. Each processing process requires a process diagram to guide the operators in completing each process. Furthermore, the traditional method for creating the process diagram for each process is to manually refer to the overall part drawing and draw a simplified process diagram for each process using a "copy-delete" method. This method has the following drawbacks:

[0040] 1) Low drawing efficiency: Each process requires repeatedly deleting a large number of irrelevant lines, which multiplies the workload, especially when the original part drawing has a large amount of information and the processing process is complicated;

[0041] 2) Poor drawing consistency: When manually deleting irrelevant lines, it is easy to miss or delete them incorrectly, resulting in the process diagram in the process page not matching the target drawing;

[0042] 3) Redundancy in drawing information: Features of non-processes are easily mixed in the process diagram of the target process, which may lead to operator errors.

[0043] 4) Difficult to digitize: Manual process drawings cannot be directly integrated with Manufacturing Execution System (MES) and CNC system, hindering the implementation of intelligent automated manufacturing.

[0044] This invention provides a method for creating process diagrams based on a cut-out viewport display. Figure 1This is a flowchart illustrating a process diagram compilation method based on a cut-out viewport display, provided by an embodiment of the present invention. This embodiment is particularly applicable to the situation where a partial view corresponding to a certain process is extracted from a large number of part drawings to compile a process diagram. This method can be executed by a process diagram compilation system based on a cut-out viewport display. The system can be implemented in software and / or hardware and can be configured in an electronic device.

[0045] like Figure 1 As shown, the method specifically includes:

[0046] S1, create part pages and process pages. In the process page corresponding to the target process, select the process diagram area to create a link to the part page.

[0047] In this context, the target process refers to a specific machining operation of the part to be processed, or a specific step within a machining operation. The part page provides an overall view or final target of the target process, while the process page guides the processing of each specific operation or step, such as guiding the positioning, clamping, tooling, and dimensions of each operation. Typically, process pages are arranged according to the machining sequence. From a hierarchical perspective, the part page is at the top level, while the process page is at the bottom level. The process page must be designed in accordance with the final requirements of the part page, such as dimensions, tolerances, and datum points, and the machining result based on the process page should be consistent with the final target of the part page.

[0048] In addition, the location of the process diagram area is the area preset on the process page for placing process diagrams.

[0049] Optionally, the process of creating part pages and operation pages specifically includes:

[0050] S101, A part page is created through the process diagram compilation system. The part page is configured to load part drawings of the parts to be processed.

[0051] S102, Based on the part drawing, determine the processing technology of the part to be processed, and obtain multiple processing steps arranged in the processing sequence;

[0052] S103, multiple process pages are created through the process diagram compilation system, and each process page corresponds to a processing process.

[0053] In the process diagram creation system, staff can create multiple pages based on the machining process of the parts to be processed. These pages include part pages and process pages (general diagrams). In traditional process review, a machining process card is often created, recording relevant information for each process step. Following this, corresponding machining process cards are typically created, recording process diagrams and relevant information for each step. Staff can create corresponding pages in the process diagram creation system according to their individual needs or habits.

[0054] Optionally, the original image source of the part drawing is stored in a non-volatile storage medium and loaded into memory via an image decoder to form an original image buffer, where the data is read-only. It is understood that the part drawing, stored in the storage medium, is read-only and cannot be modified when the part page is opened. Specifically, during the storage phase, the original image source is saved in a compressed format in a non-volatile storage medium, such as a hard drive, SSD, or flash memory. In this state, the image cannot be directly used by the GPU or display system. During the reading phase, the system reads the compressed image data from the storage medium through an interface and transmits it to the original image buffer. During the decoding phase, the image decoder (hardware decoder or software decoding library) decodes the compressed data, converting it into uncompressed raw pixel data. In the original image buffer phase, the decoded raw image data is loaded into a contiguous buffer in memory, forming a directly accessible pixel array.

[0055] It should be noted that the process diagram creation system supports various part drawing formats. The original image source for part drawings can be vector graphics or raster graphics; for example, common CAD drawings use vector graphics formats such as DWG and DXF. Part drawing formats include PDF, DWG, DXF, PNG, and TIFF, among others.

[0056] Figure 2 This is a schematic diagram of an overall view of a part drawing provided in an embodiment of the present invention, such as... Figure 2 As shown, various views of the part to be processed are distributed in different areas of the part drawing, and each view contains different annotation information. The image source of the part drawing also has a global coordinate system (denoted as O1). In a typical setup, the origin (0,0) of the global coordinate system O1 is located at the upper left corner of the image, the x-axis is to the right, the y-axis is downward, and the coordinate system unit is pixels or drawing units (such as millimeters, inches, etc.).

[0057] Part drawings typically include partial views such as the front view, top view, side view, and sectional view of the part to be machined. These partial views usually serve as a simplified process diagram for a specific machining operation.

[0058] S2, in the process diagram area, load the original image source of the part drawing in the part page through the link of the part page, and select and crop the specified area in the original image source.

[0059] Specifically, a process diagram area is preset on the process page. After clicking on the process diagram area, click "Insert" in the upper left corner of the process diagram compilation system and select "Insert Part Page." At this time, the original image source of the part drawing will be loaded on the process page. This original image source is in read-only mode and cannot be modified. It is understandable that whether the original image source of the part drawing is loaded on the part page or the process page, it points to the same underlying file, and the underlying file cannot be modified.

[0060] Figure 3 This is a schematic diagram of a designated area of ​​a part drawing provided in an embodiment of the present invention, such as... Figure 3 As shown, the rectangular selection tool is used to select a specific area in the part drawing. This selected area is typically a single view of the part drawing, such as the front view of the part to be processed. The graphic information of the selected area includes the shape, dimensions, and coordinates of the part within that area. The shape of the selected area is determined by the outer contour of the part to be processed; generally, a rectangular or circular selection box can be used, or other irregular shapes can be selected.

[0061] Optionally, a global coordinate system O1 is established in the original image source of the part drawing, which can determine the area information of a specified area.

[0062] When the selection tool uses a rectangle, the region information includes the starting coordinates, width, and height of the specified area. For example, the starting coordinates of the specified area are: Let w be the width of the specified area and h be the height of the specified area; where, , w and h are in pixels, or can be obtained by converting drawing units to resolution.

[0063] The designated region (ROI) corresponds to a specific sub-region of the original image source of the part drawing, representing a specific process step. Examples include welding process diagrams, partial sectional views, or machining sequence diagrams. The designated ROI can be manually specified (by the user selecting an area using the mouse).

[0064] Furthermore, when loading the original image source of the part drawing in the part page, since the underlying file is not loaded directly, but rather the original image source data is transferred to a temporary memory buffer for decoding after reading the underlying file, the original image source of the loaded part drawing has an address offset. Therefore, it is necessary to calculate the offset during the loading process to calibrate the coordinate system.

[0065] Optionally, during the process of loading the original image source of the part drawing in the part page, the address offset of the pixel data block in the global coordinate system O1 is calculated, and the global coordinate system O1 is restored based on the address offset.

[0066] Furthermore, the cropping operation can be achieved through graphics APIs such as "glScissor" in OpenGL, or "BitBlt" in conjunction with "SRCAND" in GDI, without modifying the source image data.

[0067] S3 displays the specified area to be cut in the target area of ​​the process diagram area, and aligns the coordinate systems of the target area and the specified area.

[0068] Optionally, a canvas coordinate system O2 is established in the target area of ​​the process diagram area, which can determine the area information of the target area; the canvas coordinate system O2 can also be aligned with the global coordinate system O1 so that the image in the specified area being cropped can be completely placed in the target area; and when the size of the target area is different from the size of the specified area, the size of the target area is scaled.

[0069] Figure 4 This is a schematic diagram of a process diagram area on a process page provided in an embodiment of the present invention, such as... Figure 4 As shown, the process diagram area includes a target area displaying the main view of the part to be processed and a shaded area (blank area) where no image information is displayed. The target area is set as a rectangle, and its information includes the starting coordinates, width, and height. For example, the starting coordinates of the target area are... Let W be the width of the target region and H be the height of the target region; where, , W and H are in pixels, or obtained by converting from drawing units and resolution. The target area and the image source both point to the same underlying file, but they are displayed in separate view windows.

[0070] Furthermore, the target region size (W, H) can differ from the specified region size (w, h), supporting proportional or free scaling. Finally, the scaled image data is drawn onto the target region of the canvas, aligned to its top left corner. .

[0071] Drawing operations can be completed through a single graphics API call, for example:

[0072] In a web environment, graphics are drawn using the command: CanvasRenderingContext2D.drawImage(image, x1,y1, w, h, x2, y2, W, H).

[0073] It should be noted that no temporary image files or memory bitmaps are generated during the entire process of creating the process diagram. The data flow is: source image → GPU texture → frame buffer.

[0074] Compared to the traditional "copy-delete" approach, this solution eliminates the need for step-by-step deletion. Instead, it uses a single selection to draw the process diagram, taking approximately 3 seconds, while existing solutions require 10-30 minutes to generate the process diagram. Furthermore, traditional solutions are prone to errors or omissions during manual line deletion, leading to information redundancy. This solution, however, can restore the original part drawing 1:1 with zero loss.

[0075] Furthermore, this solution is suitable for scenarios where multiple users concurrently access the same drawing, meaning that multiple users can access the same drawing in the system. Since the original part drawing data exists in the underlying file and cannot be modified, it supports concurrent access by multiple users without causing interference between them.

[0076] Combination Figure 4 The process page includes a process diagram area and a text area for recording processing information. Clicking anywhere in the process diagram area will reopen the original image source of the part drawing, and different image information can be displayed in the target area by adjusting a specified area.

[0077] Furthermore, during the scaling of the target area, the physical size and display resolution of the original image source of the part drawing are bound together.

[0078] It should be noted that existing technologies include methods that extract a local image from the part drawing on the part page using an image cropping and scaling tool, generate an intermediate image, copy the generated intermediate image to the process diagram area of ​​the machining process card, and finally adjust the intermediate image in the process diagram area. However, this method requires caching the intermediate image, and the scaling process does not bind the physical size and display resolution, resulting in image distortion. Furthermore, the process of copying the part drawing from the part page to the machining process card results in an inconsistency between the coordinate systems of the source image and the target area, leading to an unclear mapping relationship. Additionally, it lacks semantic alignment capabilities with the engineering drawing coordinate system (e.g., it does not incorporate structured information such as the drawing frame, title block, and process annotations).

[0079] One of the core aspects of this invention is to provide a process diagram extraction and display strategy that features single-draw call, no intermediate buffer, precise coordinate mapping, and controllable scale.

[0080] Optionally, when updating the part drawing on the part page, the following steps are repeated: In the process diagram area, the original image source of the updated part drawing on the part page is loaded via a link in the part page; a specified area is selected and cropped in the original image source; the cropped specified area is displayed in the target area of ​​the process diagram area, and the coordinate systems of the target area and the specified area are aligned; thus completing the modification of the process diagram.

[0081] It should be noted that when partial changes are needed to the part drawing, the process cards are also affected by the changes and need to be modified accordingly. In this case, the traditional "copy-delete" method cannot pinpoint which process cards need modification, and even if these process cards are located, they cannot be directly modified; the process cards must be regenerated by copying and deleting again. However, the solution in this embodiment records the coordinate position information of each process diagram in the part drawing during the creation of each process card's process diagram. Therefore, it can more efficiently identify the process cards that need modification, and modifying the process cards only requires re-extracting them from the part drawing.

[0082] One of the core features of this invention is its adaptability to situations where part drawings need to be modified. When part drawings are changed due to design changes or other alterations to the part to be processed, the process diagrams in the process cards for each process need to be adapted accordingly. Thus, when process cards are changed, only simple adjustments are required, greatly reducing the workload of process card modifications caused by changes in part drawings and improving the efficiency of process card modifications.

[0083] The technical solution in this embodiment of the invention creates part pages and process pages, links to relevant drawings on the part pages, and allows cropping of the drawings on the process pages. Neither the part page nor the process page can modify the original drawings. Simultaneously, the coordinate systems of a specified area on the part page and a target area on the process page are aligned, and the physical dimensions and display resolution of the original drawings are bound, ensuring that the image of the specified area is completely placed within the target area. Furthermore, when partial modifications to the original drawings are needed, the process diagram can be quickly modified.

[0084] Under the same inventive concept, a process diagram compilation system based on a cut-out viewport display is also involved. Figure 5 This is a schematic diagram of a process diagram compilation system based on a cutting viewport display, provided as an embodiment of the present invention. Figure 5 As shown, the system specifically includes:

[0085] Page creation unit 100 is used to create part pages and process pages. It selects the process diagram area in the process page corresponding to the target process to establish a link to the part page.

[0086] The drawing cropping unit 200 is used to load the original image source of the part drawing in the part page through the link of the part page in the process diagram area, and select and crop the specified area in the original image source.

[0087] The simplified diagram display unit 300 is used to display the specified area to be cut in the target area of ​​the process simplified diagram area, and to align the coordinate system of the target area with that of the specified area.

[0088] The technical solution in this embodiment of the invention, through the collaboration of various units in the system, can more efficiently and accurately crop the local views corresponding to each process in the part drawing to the target area of ​​the process diagram area for display. Furthermore, when it is necessary to modify the part drawing, it is only necessary to determine the process page involved in the area to be modified, then re-insert the modified part drawing, and re-select and crop to quickly complete the modification of the process card. Alternatively, when it is necessary to modify the machining process, it is only necessary to re-select and crop the part drawing to quickly complete the modification of the process card.

[0089] Under the same inventive concept, an electronic device is also involved. Figure 6 This is a schematic diagram of an electronic device implementing the process diagram compilation method based on a cut-out viewport display according to embodiments of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0090] like Figure 6As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0091] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0092] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the process diagram compilation method based on a clipped viewport display.

[0093] In some embodiments, the process diagram creation method based on a cut-out viewport display can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the process diagram creation method based on a cut-out viewport display described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the process diagram creation method based on a cut-out viewport display by any other suitable means (e.g., by means of firmware).

[0094] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0095] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0096] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0097] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0098] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0099] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0100] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0101] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for compiling process diagrams based on a cut-out viewport display, characterized in that, include: Create part pages and process pages, and establish a link to the part page by selecting the process diagram area in the process page corresponding to the target process; In the process diagram area, the original image source of the part drawing in the part page is loaded through the link of the part page, and a specified area is selected and cropped in the original image source; The target area in the process diagram area displays the specified area that has been cropped, and the coordinate systems of the target area and the specified area are aligned.

2. The method according to claim 1, characterized in that, The process of creating part pages and process pages specifically includes: Create a part page that is configured to load part drawings of the part to be processed; Based on the part drawing, the processing technology of the part to be processed is determined, resulting in multiple processing steps arranged in the processing sequence; Create multiple process pages, with each process page corresponding to a processing step.

3. The method according to claim 1, characterized in that, The original image source of the part drawing is stored in a non-volatile storage medium and loaded into memory through an image decoder to form an original image buffer, and the data in the original image buffer is in a read-only state. A global coordinate system is established in the original image source of the part drawing, and the regional information of the specified area is determined through the global coordinate system.

4. The method according to claim 3, characterized in that, During the loading of the original image source of the part drawing in the part page, the address offset of the pixel data block in the global coordinate system in the original image buffer is calculated, and the global coordinate system is restored based on the address offset.

5. The method according to claim 3, characterized in that, A canvas coordinate system is established in the target area of ​​the process diagram area, and the area information of the target area is determined by the canvas coordinate system. By aligning the canvas coordinate system with the global coordinate system, the image in the specified cropped area is completely placed into the target area.

6. The method according to claim 5, characterized in that, When the size of the target region is different from the size of the specified region, the size of the target region is scaled.

7. The method according to claim 6, characterized in that, During the scaling of the target area, the physical size and display resolution of the original image source of the part drawing are bound together.

8. A process diagram compilation system based on a cutout viewport display, characterized in that, The system is configured to implement the method according to any one of claims 1-7, the system comprising: The page creation unit is used to create part pages and process pages, and to establish a link to the part page by selecting the process diagram area in the process page corresponding to the target process. The drawing cropping unit is used to load the original image source of the part drawing in the part page through the link of the part page in the process diagram area, and select and crop a specified area in the original image source; A simplified diagram display unit is used to display the specified area that has been cropped in the target area of ​​the process simplified diagram area, and to align the coordinate system of the target area with that of the specified area.

9. An electronic device, characterized in that, The electronic device includes: At least one processor; and a memory communicatively connected to said at least one processor; The memory stores a computer program that can be executed by the at least one processor to enable the at least one processor to perform the steps of the method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to perform the steps of the method according to any one of claims 1-7.