A graphics splitting method, system, terminal device and storage medium

By obtaining block information and boundary data from CAD files and using a filter box to match and retain or delete basic elements, the problem of file size reduction in existing technologies is solved, and efficient graphic splitting is achieved.

CN114254407BActive Publication Date: 2026-04-07SHENZHEN CAPOL INT & ASSOC CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-19
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

In existing technologies, redundant CAD file content is hidden by cropping the viewport without actually deleting it, resulting in the file size remaining unchanged and affecting opening speed and work efficiency.

Method used

By acquiring the block information in the drawing, determining the boundary data, and matching it with the preset filter box, the basic elements within the filter box are retained, and the basic elements outside the filter box are deleted, thus realizing the graphic splitting.

Benefits of technology

It effectively removes unnecessary content, reduces file size, and improves opening speed and work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114254407B_ABST
    Figure CN114254407B_ABST
Patent Text Reader

Abstract

The application discloses a kind of graphic splitting method, system, terminal equipment and storage medium, the method includes: obtaining the block information in drawing, according to the block information determination the boundary data corresponding to the block information;The boundary data is matched with the preset screening frame, to determine the basic primitive in the block information located in the screening frame inside;The basic primitive located in the screening frame inside is retained, and the basic primitive located in the screening frame outside is deleted, to realize graphic splitting. Visible, this embodiment can realize according to the basic primitive located in the inside and outside of the screening frame to determine the basic primitive to be retained and the basic primitive to be deleted, so that the basic primitive needed is retained while the basic primitive unwanted is deleted, splitting is realized, prevents misdeletion basic primitive, improves splitting efficiency and splitting quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of graphics processing technology, and in particular to a graphics splitting method, system, terminal device, and storage medium. Background Technology

[0002] Designers often create multiple drawings in a single CAD file, but when submitting the final product, each drawing is usually submitted as a separate CAD file. Currently, the most common approach is to copy a CAD file multiple times and then crop the viewport so that only one drawing is displayed in each file, hiding any extra content. This method only hides the unnecessary content, not deletes it, so the actual file size remains unchanged. This results in a very large final file size, and opening a single file takes a long time, impacting work efficiency.

[0003] Therefore, existing technologies still need to be improved and enhanced. Summary of the Invention

[0004] The technical problem to be solved by this invention is to address the above-mentioned deficiencies of the prior art by providing a graphic splitting method, system, terminal device, and storage medium. The aim is to solve the problem that in the prior art, when splitting drawings in a CAD file terminal, the viewport is clipped so that only one drawing is displayed in each CAD file, and the extra drawing content is not displayed. As a result, the actual size of the file does not change, making it take a long time to open a file and affecting work efficiency.

[0005] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows:

[0006] In a first aspect, the present invention provides a method for graphic decomposition, wherein the method includes:

[0007] Obtain the block information in the drawing, and determine the boundary data corresponding to the block information based on the block information;

[0008] The boundary data is matched with a preset filter box to determine the basic graphic elements located inside the filter box in the graphic information;

[0009] The basic graphic elements located inside the filter box are retained, while the basic graphic elements located outside the filter box are deleted to achieve graphic splitting.

[0010] In one implementation, obtaining block information from the drawing and determining boundary data corresponding to the block information based on the block information includes:

[0011] Identify the block information in the drawing and determine the geometric shape of the block information;

[0012] The boundary data is determined based on the geometry.

[0013] In one implementation, determining the boundary data based on the geometry includes:

[0014] Based on the geometric shape, determine the coordinate information corresponding to the lines that make up the geometric shape;

[0015] The boundary data is determined based on the coordinate information.

[0016] In one implementation, matching the boundary data with a preset filter box to determine the basic graphic elements located within the filter box in the tile information includes:

[0017] Obtain the size data of the filter box, and determine the first area corresponding to the filter box based on the size data, wherein the size data includes the length data and width data of the filter box;

[0018] Based on the boundary data, determine the second region corresponding to the boundary data;

[0019] Based on the first region and the second region, obtain the basic graphic elements located inside the filter box in the graphic information.

[0020] In one implementation, obtaining the basic graphic elements located inside the filter box in the tile information based on the first region and the second region includes:

[0021] If there is an intersection between the first region and the second region, then the basic primitive located in the intersection within the second region is obtained.

[0022] In one implementation, obtaining the basic graphic elements located inside the filter box in the tile information based on the first region and the second region includes:

[0023] If there is no intersection between the first region and the second region, the tile information is deleted.

[0024] In one implementation, retaining the basic graphic elements located inside the filter box and deleting the basic graphic elements located outside the filter box to achieve graphic splitting includes:

[0025] Obtain the basic graphic elements outside the filter box that have the same name as the basic graphic elements inside the filter box;

[0026] Rename elements with the same name to distinguish them.

[0027] The basic graphic elements located inside the filter box are retained, while the basic graphic elements located outside the filter box are deleted to achieve graphic splitting.

[0028] Secondly, embodiments of the present invention also provide a method for graphic decomposition, wherein the method includes:

[0029] The boundary data acquisition module is used to acquire block information in the drawing and determine the boundary data corresponding to the block information based on the block information.

[0030] The basic graphic element filtering module is used to match the boundary data with a preset filtering box to determine the basic graphic elements located inside the filtering box in the block information;

[0031] The image splitting execution module is used to retain the basic graphic elements located inside the filter box and delete the basic graphic elements located outside the filter box to achieve image splitting.

[0032] Thirdly, embodiments of the present invention also provide a terminal device, wherein the terminal device includes a memory, a processor, and a graphics splitting program stored in the memory and executable on the processor, wherein when the processor executes the graphics splitting program, it implements the steps of the graphics splitting method described in any of the above schemes.

[0033] Fourthly, embodiments of the present invention also provide a computer-readable storage medium, wherein the computer-readable storage medium stores a graphics splitting program, and when the graphics splitting program is executed by a processor, it implements the steps of the graphics splitting method described in any of the above schemes.

[0034] Beneficial Effects: Compared with existing technologies, this invention provides a graphic splitting method. First, it acquires block information from a drawing. Then, it determines the boundary data corresponding to the block information. Next, it matches the boundary data with a preset filter box to identify the basic graphic elements within the filter box in the block information. Finally, it retains the basic graphic elements within the filter box and deletes those outside the filter box, thus achieving graphic splitting. As can be seen, this embodiment can determine the basic graphic elements within the filter box in the block information by the relative position of the block and the filter box, thereby retaining the basic graphic elements within the filter box and deleting those outside the filter box, achieving graphic splitting, preventing accidental deletion of basic graphic elements, and improving splitting efficiency and quality. Attached Figure Description

[0035] Figure 1 A flowchart illustrating a specific implementation of the graphic splitting method provided in this embodiment of the invention.

[0036] Figure 2 This is a flowchart illustrating the process of determining the boundary data corresponding to the tile information in the graphic decomposition method provided in this embodiment of the invention.

[0037] Figure 3 This is a schematic diagram illustrating the process of determining the basic graphic elements located inside the filter box in the graphic segmentation method provided in this embodiment of the invention.

[0038] Figure 4 This is a schematic diagram illustrating the process of determining the graphic block information to achieve graphic splitting in the graphic splitting method provided in the embodiments of the present invention.

[0039] Figure 5 This is a schematic diagram of the graphic splitting device provided in an embodiment of the present invention.

[0040] Figure 6 This is a block diagram illustrating the internal structure of the terminal device provided in an embodiment of the present invention. Detailed Implementation

[0041] To make the objectives, technical solutions, and effects of this invention clearer and more explicit, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0042] In existing technology, when you want to submit each drawing in a CAD file as a separate CAD file, you can only copy the CAD file multiple times and clip the viewport so that only one drawing is displayed in each CAD file, hiding the extra drawing content. However, this method can only hide the extra content in the file, not delete it, so the actual file size does not change. As a result, the final submitted file is still very large, and opening a file takes a long time, affecting work efficiency.

[0043] To address the problems of existing technologies, this embodiment provides a graphic splitting method. This method can split multiple drawings from a single CAD file into a single drawing, effectively removing redundant content and improving work efficiency. Specifically, the method first acquires the block information from the drawing. Then, it determines the boundary data corresponding to the block information. Next, it matches the boundary data with a preset filter box to identify the basic graphic elements located within the filter box. Finally, it retains the basic graphic elements located within the filter box and deletes those located outside the filter box, thus achieving graphic splitting. Therefore, by determining the position of the basic graphic elements within and outside the filter box, the basic graphic elements to be retained and those to be deleted can be determined, allowing for the retention of necessary basic graphic elements while deleting unnecessary ones, thereby achieving splitting.

[0044] For example, a CAD file contains two drawings, drawing A and drawing B. The goal is to split them into two separate files, one containing drawing A and the other containing drawing B. The basic graphic elements in drawing A are grouped into block A, resulting in block information A. Similarly, the basic graphic elements in drawing B are grouped into block B, resulting in block information B. In this embodiment, drawing A is first separated, meaning the basic graphic elements in block information A are considered the ones to be retained. The boundary data corresponding to block information A is then obtained. Next, the boundary data is matched against a preset filter box. To retain the basic graphic elements in block information A, the filter box is preferably larger than the frame of block A, ensuring that the basic graphic elements in block information A are contained within the filter box, while those in block information B are outside. The filter box is displayed on the drawing. The terminal, based on the position of the basic graphic elements within and outside the filter box, retains the basic graphic elements in block information A located inside the filter box and deletes the basic graphic elements in block information B located outside the filter box. Finally, save the split drawing A. Similarly, use the same method to split drawing B and save it as a separate file to achieve the drawing splitting.

[0045] Exemplary methods

[0046] This embodiment provides a method for image decomposition, which can be applied to smart terminals. The terminal device can be a computer, television, or mobile phone, or other intelligent terminal product, specifically as follows: Figure 1 As shown, the method includes:

[0047] Step 100: Obtain the block information in the drawing, and determine the boundary data corresponding to the block information based on the block information.

[0048] A CAD file may contain many drawings, each composed of basic graphic elements such as lines, polylines, annotations, and text. A block is a group of these basic graphic elements; therefore, each drawing can be considered a block, and naturally, a CAD file may contain many blocks. This embodiment can split the drawings by retaining necessary basic graphic elements through block retention and deleting unnecessary ones. Therefore, in this embodiment, the key is to determine which blocks to retain and which to delete for optimal splitting. To determine which blocks to retain, the scope of each block must be determined. Specifically, the scope of the block is determined based on the block information, specifically the boundary data corresponding to the block information.

[0049] In one embodiment, the determination of the boundary data corresponding to the block information is achieved based on the block information in the drawing. For example... Figure 2 As shown, the specific steps include the following:

[0050] Step 101: Identify the block information in the drawing and determine the geometric shape of the block information;

[0051] Step 102: Determine the boundary data based on the geometry.

[0052] In this embodiment, the required basic graphic elements are saved while redundant basic graphic elements are deleted. Therefore, it is necessary to determine the required basic graphic elements. Users can select the basic graphic elements to be retained according to their own needs, such as lines, polylines, labels, and text, and assemble these basic graphic elements into blocks. In order to accurately retain the basic graphic elements in the block information by matching the corresponding preset filter box according to the block information, it is necessary to determine the size and position of the block. The size and position of the block can be determined based on the boundary data in the block information. In specific implementation, the boundary data of the block can be determined based on the coordinate information corresponding to the lines of the geometric shape in the block information. However, the block can be of various geometric shapes, not limited to rectangles, but also triangles and rhombuses. Therefore, before obtaining the coordinate information corresponding to the lines, it is necessary to determine the geometric shape in the block information in order to determine the line situation of the geometric shape and thus determine the boundary data. In this embodiment, when obtaining the coordinate information corresponding to the line, obtaining the coordinates of the entire line would be too cumbersome. For the sake of data simplicity, it is sufficient to obtain the coordinates of the corners at both ends of the geometric shape. The coordinates of the corners at both ends of the geometric shape are the boundary data of the block.

[0053] For example, when a user selects the desired portion of a drawing, the terminal generates a rectangular block and block information based on the user's requirements. The terminal then identifies the block information in the drawing and determines that the geometric shape of the block is a rectangle. The coordinates of the four corners of the rectangle are then obtained as (220, 180), (300, 180), (220, 240), and (300, 240). Based on the coordinates of the four corners of the rectangle, the boundary data can be determined as (220, 180), (300, 180), (220, 240), and (300, 240).

[0054] Once the boundary data of the tile information is determined, it is necessary to match the corresponding preset filter box and determine the basic graphic elements to be retained based on the relative position of the tile and the filter box. That is, execute... Figure 1 Step 200: Match the boundary data with a preset filter box to determine the basic graphic elements located inside the filter box in the block information.

[0055] In this embodiment, a preset filter box is used to provide the terminal with information signals regarding whether basic graphic elements should be protected or deleted. The basic graphic elements to be retained are determined based on the relative position of the graphic block and the filter box. Specifically, the range and position of the graphic block can be determined based on the boundary data. The boundary data is then matched with the preset filter box to obtain the range and position information of the preset filter box. Based on the range and position information of the preset filter box, the filter box is placed on the drawing, and the basic graphic elements located within the filter box in the graphic block information are identified, thereby protecting the basic graphic elements located within the filter box.

[0056] In one embodiment, this embodiment determines the basic graphic elements located inside the filter box in the tile information by matching the boundary data with a preset filter box. For example... Figure 3 As shown, the specific steps include the following:

[0057] Step 201: Obtain the size data of the filter box, and determine the first area corresponding to the filter box based on the size data. The size data includes the length data and width data of the filter box.

[0058] Step 202: Determine the second region corresponding to the boundary data based on the boundary data;

[0059] Step 203: Based on the first region and the second region, obtain the basic graphic elements located inside the filter box in the graphic information.

[0060] In a specific embodiment, the terminal calculates the size data of the corresponding filter box by acquiring the boundary data. Specifically, the filter box is a rectangular frame, and the size data includes the length and width data of the filter box. In this embodiment, the range of the filter box can be determined based on the length and width data of the filter box. Further, in order for the filter box to accurately select the required basic graphic elements, the filter box is positioned. While determining the length and width data of the filter box based on the boundary data, the coordinate information of the four corners of the filter box must also be determined. In this embodiment, the basic graphic elements located inside the filter box in the block information are determined by the relative position of the filter box and the block frame. To better distinguish the relative position of the basic graphic elements within the block and the filter box, the area of ​​the filter box is designated as the first area, and the area of ​​the block is designated as the second area. Based on the position of the first area and the second area, the basic graphic elements located inside the filter box in the block information are determined. The position of the first area and the second area can be divided into two types: one is that they intersect, which can be further divided into overlapping and inclusion relationships; the other is that they do not intersect. If there is an intersection between the first region and the second region, the basic graphic elements located in the intersection within the second region are obtained. If there is no intersection between the first region and the second region, the block information is deleted. In this embodiment, determining whether to delete or retain the basic graphic elements in the block information based on the positions of the first region and the second region can clearly identify the objects to be retained, preventing accidental deletion of necessary basic graphic elements and the removal of redundant block information that has not been completely deleted.

[0061] For example, a CAD file contains two drawings, Drawing A and Drawing B. The user wants to split Drawing A and Drawing B into two separate drawing files. First, Drawing A is split. To retain the basic graphic elements in Drawing A, these basic graphic elements are grouped into block A. The terminal generates block information A, and the boundary data of block information A is obtained as (220, 180), (300, 180), (220, 240), (300, 240). The frame formed by this boundary data is the first region. Based on the boundary data, the terminal calculates a filter box that matches the boundary data. The coordinates of the four corners of the filter box are (300, 200), (400, 200), (300, 400), (400, 400), with a length of 500mm and a width of 300mm. Based on the coordinate information and dimensions, the filter box is displayed on the drawing. This filter box is the second region. Based on the display positions of the first and second areas, it can be seen that there is an overlapping area between them. The second area is contained within the first area, while block B is outside the first area. In other words, the entire drawing A is contained within the first area. The terminal identifies the overlapping area between the first and second areas, retains block information A, and deletes block information B, thus preserving the basic graphic elements in the block information, i.e., drawing A.

[0062] Step 300: Retain the basic graphic elements located inside the filter box and delete the basic graphic elements located outside the filter box to achieve graphic splitting.

[0063] In one embodiment, graphic splitting is achieved by retaining the basic graphic elements located inside the filter box and deleting the basic graphic elements located outside the filter box. For example... Figure 3 As shown, the specific steps include the following:

[0064] Step 301: Obtain the basic graphic elements outside the filter box that have the same name as the basic graphic elements inside the filter box;

[0065] Step 302: Rename the graphic elements with the same name to distinguish them.

[0066] Step 303: Retain the basic graphic elements located inside the filter box and delete the basic graphic elements located outside the filter box to achieve graphic splitting.

[0067] Based on step 200, if there are basic graphic elements with the same name in the block information outside the first area and in the block information within the first area, deleting the block information outside the first area will mistakenly delete the basic graphic elements with the same name in the block information within the first area as well, resulting in the loss of basic graphic elements in the block information within the first area. To prevent this from happening, in this embodiment, graphic elements with the same name are renamed to distinguish them. Specifically, graphic elements with the same name are obtained from the basic graphic elements outside the filter box and the basic graphic elements inside the filter box, and these graphic elements with the same name are renamed. Specifically, the names of the basic graphic elements with the same name are followed by the numbers 1, 2, 3... This naming method is simple and can prevent the occurrence of duplicate names with other basic graphic elements. Finally, the basic graphic elements located inside the filter box are retained, and the basic graphic elements located outside the filter box are deleted to achieve graphic splitting. This can ensure the integrity of the basic graphic elements in the retained drawing and improve the quality of graphic splitting. Furthermore, after the graphic is split, the split drawings need to be saved. In order to save the split drawings smoothly, the split drawing files should be renamed. Specifically, they can be named with the original file name plus (I), (II), etc.

[0068] For example, a CAD file named "Building 3, Lane 3, Xiaweiyuan New Village" contains two drawings. The basic elements in drawing A are grouped into block A, resulting in block information A. The basic elements in drawing B are grouped into block B, resulting in block information B. In this embodiment, drawing A is first separated, so block information A is in the first area, and block information B is outside the first area. When block information A and block information B have the same basic element A, the basic element A in block information B is renamed to basic element A1. Then, the terminal retains the basic elements in block information A, deletes block information B, and renames the drawing file of the separated block information A to "Building 3, Lane 3, Xiaweiyuan New Village (I)" and saves it. Similarly, drawing B is separated, and the drawing file of the separated block information B is renamed to "Building 3, Lane 3, Xiaweiyuan New Village (II)" and saved, thus realizing the splitting of multiple drawings from a single CAD file.

[0069] In one implementation, when the title block is in layout space, it needs to be converted to the model space to determine the drawing area. Specifically, when the title block is placed in layout space, the title block area of ​​the graphic elements drawn in model space is the drawing area of ​​the graphic elements. For graphic elements drawn in layout space, this embodiment first edits some viewports whose area is within the title block and adjusts them to the title block area. Then, it finds all viewports within the title block area and converts the viewports to model space according to scale and coordinate system. The area of ​​the converted viewports in model space is the drawing area of ​​the graphic elements. Furthermore, graphic elements outside the viewport area are deleted in model space.

[0070] Therefore, this embodiment of the invention first obtains the block information in the drawing, and then determines the boundary data corresponding to the block information based on the block information. Next, the boundary data is matched with a preset filter box to determine the basic graphic elements located inside the filter box in the block information. Finally, the basic graphic elements located inside the filter box are retained, and the basic graphic elements located outside the filter box are deleted to achieve graphic splitting. It is evident that this embodiment can determine the basic graphic elements to be retained and the basic graphic elements to be deleted based on their position inside and outside the filter box, thus retaining the necessary basic graphic elements and deleting the unwanted ones, achieving splitting, preventing accidental deletion of basic graphic elements, and improving splitting efficiency and quality.

[0071] Exemplary System

[0072] Based on the above embodiments, the present invention also provides a graphic splitting system, such as... Figure 5 As shown, the system includes: a boundary data acquisition module 501, a basic graphic element filtering module 502, and an image splitting execution module 503. Specifically, the boundary data acquisition module 501 is used to acquire block information in the drawing and determine the boundary data corresponding to the block information based on the block information. The basic graphic element filtering module 502 is used to match the boundary data with a preset filtering box to determine the basic graphic elements located inside the filtering box in the block information. The image splitting execution module 503 is used to retain the basic graphic elements located inside the filtering box and delete the basic graphic elements located outside the filtering box to achieve graphic splitting.

[0073] The execution principles and steps of each module in this embodiment are the same as those in the above method embodiments, and will not be repeated here.

[0074] Based on the above embodiments, the present invention also provides a terminal device, the principle block diagram of which can be as follows: Figure 6As shown, the terminal device includes a processor and memory connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface of the terminal device is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a graphics decomposition method.

[0075] Those skilled in the art will understand that Figure 6 The block diagram shown is merely a partial structural diagram related to the present invention and does not constitute a limitation on the terminal device to which the present invention is applied. The specific terminal device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0076] In one embodiment, a terminal device is provided, the terminal device including a memory, a processor, and a graphics splitting program stored in the memory and executable on the processor. When the processor executes the graphics splitting program, it implements the following operation instructions:

[0077] The boundary data acquisition module is used to acquire block information in the drawing and determine the boundary data corresponding to the block information based on the block information.

[0078] The basic graphic element filtering module is used to match the boundary data with a preset filtering box to determine the basic graphic elements located inside the filtering box in the block information;

[0079] The image splitting execution module is used to retain the basic graphic elements located inside the filter box and delete the basic graphic elements located outside the filter box to achieve image splitting.

[0080] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, operational databases, or other media used in the embodiments provided by this invention can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual operating data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0081] In summary, this invention discloses a graphic splitting method, system, terminal device, and storage medium. The method includes: acquiring block information from a drawing; determining boundary data corresponding to the block information based on the block information; matching the boundary data with a preset filter box to determine the basic graphic elements located inside the filter box in the block information; retaining the basic graphic elements located inside the filter box and deleting the basic graphic elements located outside the filter box, thereby achieving graphic splitting. It is evident that this embodiment can determine the basic graphic elements to be retained and the basic graphic elements to be deleted based on their positions inside and outside the filter box, thus retaining the necessary basic graphic elements while deleting unwanted ones, achieving splitting, preventing accidental deletion of basic graphic elements, and improving splitting efficiency and quality.

[0082] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for splitting a graphic, characterized in that, The method includes: Obtain the block information in the drawing, and determine the boundary data corresponding to the block information based on the block information; The boundary data is matched with a preset filter box to determine the basic graphic elements located inside the filter box in the graphic information; The basic graphic elements located inside the filter box are retained, while the basic graphic elements located outside the filter box are deleted to achieve graphic splitting; The step of obtaining block information from the drawing and determining the boundary data corresponding to the block information includes: Identify the block information in the drawing and determine the geometric shape of the block information; Based on the geometric shape, determine the coordinate information corresponding to the lines that make up the geometric shape; Determining the boundary data based on the coordinate information specifically includes: When obtaining the coordinate information corresponding to the line, it is only necessary to obtain the coordinate points of the corners at both ends of the edge of the geometric shape. The coordinate points of the corners at both ends of the edge of the geometric shape are the boundary data of the block. The step of matching the boundary data with a preset filter box to determine the basic graphic elements located within the filter box in the tile information includes: Obtain the size data of the filter box, and determine the first area corresponding to the filter box based on the size data, wherein the size data includes the length data and width data of the filter box; Based on the boundary data, determine the second region corresponding to the boundary data; If there is an intersection between the first region and the second region, then the basic primitive located in the intersection within the second region is obtained; If there is no intersection between the first region and the second region, then the tile information is deleted; The step of retaining the basic graphic elements located inside the filter box and deleting the basic graphic elements located outside the filter box to achieve graphic splitting includes: Obtain the basic graphic elements outside the filter box that have the same name as the basic graphic elements inside the filter box; Rename elements with the same name to distinguish them. The basic graphic elements located inside the filter box are retained, while the basic graphic elements located outside the filter box are deleted to achieve graphic splitting; The method further includes: When the drawing frame is placed in the layout space, for the elements drawn in the model space, the viewports whose range is within the drawing frame are edited and adjusted to the range of the drawing frame. All viewports within the drawing frame range are found, and the viewports are converted to the model space according to the scale and coordinate system. The range of the converted viewports in the model space is the drawing range of the element. Elements outside the viewport range are deleted in the model space.

2. A graphic splitting system, characterized in that, The system is used to implement the steps of the graphic decomposition method according to claim 1, and the system includes: The boundary data acquisition module is used to acquire block information in the drawing and determine the boundary data corresponding to the block information based on the block information. The basic graphic element filtering module is used to match the boundary data with a preset filtering box to determine the basic graphic elements located inside the filtering box in the block information; The image splitting execution module is used to retain the basic graphic elements located inside the filter box and delete the basic graphic elements located outside the filter box to achieve image splitting.

3. A terminal device, characterized in that, The terminal device includes a memory, a processor, and a graphics splitting program stored in the memory and executable on the processor. When the processor executes the graphics splitting program, it implements the steps of the graphics splitting method as described in claim 1.

4. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a graphics splitting program, which, when executed by a processor, implements the steps of the graphics splitting method as described in claim 1.

Citation Information

Patent Citations

  • Primitive-based engineering collaborative design method and system

    CN104036059A

  • Design drawing splitting method

    CN104408269A

  • Drawing splitting method and related device

    CN111783180A