Automatic part size labeling method and device, computer readable medium and equipment
Through the automatic labeling method, the problem of easy interleaving of dimension marks in milling machine processing is solved. By determining the reference point and relative position information, the readability of the marks is improved and the risk of processing errors is reduced.
Patent Information
- Application Number
- CN202411014556.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-15
AI Technical Summary
During the milling machine processing, the operator needs to enter multiple dimensions, which leads to easy interleaving of the marks, resulting in high risk of processing errors. How to improve the readability of the dimension marks?
Through the automatic labeling method, the label type is determined based on the received dimension labeling request of the target graphic, the reference point is specified, the relative position information between the target point and the reference point is calculated, and the relative position information is displayed from the target point, the target point extends out of the lead line. Avoid interlacing.
Improve the readability of the label, ensure the effectiveness of dimension labeling, and reduce the occurrence of processing errors.
Smart Images

Figure CN118968153A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, computer-readable medium and equipment for automatically marking part dimensions. Background Art
[0002] During the milling process, the operator needs to input the diameters of the endpoints of all straight lines and curves and the Z-axis coordinates into the terminal, so that the terminal can generate the required processing trajectory program. In addition, when there are many dimensions to be marked, the dimensions marked in the conventional way are prone to interlacing with each other, making it easy for operators to misread the dimensions, which in turn leads to processing errors, and in serious cases, the machine will crash. Therefore, how to improve the readability of the marked dimensions while ensuring the effectiveness of dimension marking has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] The embodiments of the present application provide a method, apparatus, computer-readable medium and device for automatically marking part dimensions, thereby improving the readability of the marked dimensions while ensuring the validity of the dimension marking, at least to a certain extent.
[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0005] According to one aspect of an embodiment of the present application, a method for automatically marking part dimensions is provided, comprising:
[0006] Determine, according to the received dimension annotation request for the target graphic corresponding to the target part, the annotation type corresponding to the target graphic, wherein the annotation type includes plane coordinate annotation and rotation body annotation;
[0007] In response to a designation operation for a reference point on the target graphic, determining a reference point corresponding to the target graphic;
[0008] Determine relative position information between the target point and the reference point according to the reference point corresponding to the target graphic, the annotation type, and the target point selected on the target graphic, wherein the type of the relative position information corresponds to the annotation type;
[0009] A first lead line is extended from the target point, and the relative position information is displayed at the other end of the first lead line.
[0010] According to one aspect of an embodiment of the present application, there is provided an automatic marking device for part dimensions, comprising:
[0011] A first determination module is used to determine the annotation type corresponding to the target graphic according to the received dimension annotation request for the target graphic corresponding to the target part, wherein the annotation type includes plane coordinate annotation and rotation body annotation;
[0012] A second determining module, configured to determine a reference point corresponding to the target graphic in response to a designation operation on the reference point on the target graphic;
[0013] A third determination module is used to determine the relative position information between the target point and the reference point according to the reference point corresponding to the target graphic, the annotation type and the target point selected on the target graphic, wherein the type of the relative position information corresponds to the annotation type;
[0014] The display processing module is used to extend a first lead line from the target point and display the relative position information at the other end of the first lead line.
[0015] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for automatically marking part dimensions as described in the above embodiment is implemented.
[0016] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing 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 automatic part size marking method as described in the above embodiments.
[0017] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the automatic marking method of part size provided in the above embodiment.
[0018] In the technical solutions provided by some embodiments of the present application, according to the received dimensioning request for the target graphics corresponding to the target part, the dimensioning type corresponding to the target graphics is determined, and the dimensioning type includes plane coordinate dimensioning and rotation body dimensioning. In response to the designated operation of the reference point on the target graphics, the reference point corresponding to the target graphics is determined, and according to the reference point corresponding to the target graphics, the dimensioning type and the target point selected on the target graphics, the relative position information between the target point and the reference point is determined, and the type of the relative position information corresponds to the dimensioning type, and then a first lead line is extended from the target point, and the relative position information is displayed at the other end of the first lead line. Thus, when the operator is marking, after specifying the reference point, the size of the target point marked subsequently is based on the corresponding size of the reference point, and there is no need to specify a pair of relative points each time marking as in the traditional marking method, and when displaying the relative position information of the target point, a first lead line is extended from the target point, and the relative position information is displayed at the other end of the first lead line. When there are many required dimensioning dimensions, it is also possible to avoid interlacing, thereby ensuring the validity of the dimensioning and improving the readability of the marked dimensions.
[0019] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0021] Figure 1 A schematic diagram showing a process flow of a method for automatically marking part dimensions according to an embodiment of the present application is shown;
[0022] Figure 2 A schematic diagram of plane coordinate annotation according to an embodiment of the present application is shown;
[0023] Figure 3 A schematic diagram of marking a rotating body according to an embodiment of the present application is shown;
[0024] Figure 4 A block diagram of an automatic marking device for part dimensions according to an embodiment of the present application is shown;
[0025] Figure 5 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0026] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of example embodiments to those skilled in the art.
[0027] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0028] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0029] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0030] Figure 1 A schematic flow chart of a method for automatically marking part dimensions according to an embodiment of the present application is shown.
[0031] The method can be applied to a terminal device or a server, wherein the terminal device may include but is not limited to one or more of a smart phone, a tablet computer, a portable computer, a desktop computer or an industrial computer; the server may be a physical server or a cloud server, etc.
[0032] In one example, the automatic part size marking method provided in the embodiment of the present application can be run in the form of a plug-in. When it is necessary to run the automatic part size marking method provided in the embodiment of the present application, the plug-in can be first imported into a two-dimensional or three-dimensional drawing software (such as CAD, etc.) to execute the automatic marking method.
[0033] like Figure 1As shown, the automatic marking method for part dimensions at least includes steps S110 to S140, which are described in detail as follows: (The following description is made by taking the application of the method in a terminal device as an example, hereinafter referred to as "terminal")
[0034] In step S110, according to the received dimension annotation request for the target graphic corresponding to the target part, the annotation type corresponding to the target graphic is determined, and the annotation type includes plane coordinate annotation and rotation body annotation.
[0035] Among them, the target part can be the part to be marked, and the target graphic corresponding to the target part can be the two-dimensional graphics of the target part under different viewing angles (such as front view, top view, bottom view, left view, right view, etc.), that is, one target part can correspond to multiple target graphics.
[0036] In one embodiment, when dimensioning is required, the operator can select the target graphic to be annotated and select the corresponding annotation type to generate a corresponding dimensioning request, that is, the dimensioning request can include the annotation type selected by the operator. After the terminal receives the dimensioning request, the dimensioning request can be parsed to obtain the corresponding annotation type from the dimensioning request, so as to select the annotation method corresponding to the annotation type in the subsequent annotation. In one example, the annotation type can include plane coordinate annotation and rotation body annotation.
[0037] In step S120, in response to a designation operation for a reference point on the target graphic, a reference point corresponding to the target graphic is determined.
[0038] In this embodiment, after determining the corresponding annotation type, the operator can select a point on the target graphic as a reference point through an input device (such as a mouse, etc.), and the terminal can receive the operator's specified operation on the reference point on the target graphic, and determine the reference point corresponding to the target graphic, so that when performing subsequent dimension annotation, the reference point can be used as the coordinate origin to generate corresponding annotation information.
[0039] In step S130, relative position information between the target point and the reference point is determined according to the reference point corresponding to the target graphic, the annotation type and the target point selected on the target graphic, and the type of the relative position information corresponds to the annotation type.
[0040] In this embodiment, after determining the reference point and annotation type corresponding to the target graphic, the operator can select any point on the target graphic as the target point, and the terminal can determine the relative position information between the target point and the reference point. It is worth noting that the type of the relative position information corresponds to the annotation type. In other words, different annotation types will result in different types of relative position information determined by the terminal.
[0041] In one embodiment, when the annotation type is plane coordinate annotation, the relative position information determined by the terminal includes the coordinate information of the target point when the reference point is used as the coordinate origin. Figure 2 As shown, Figure 2 The relative position information displayed is the coordinate information of each target point with the reference point as the coordinate origin.
[0042] When the target part is a shaft part or a part generated by rotation, the operator can select the rotation body annotation. At this time, the relative position information determined by the terminal includes the axial direction corresponding to the target part (that is, the direction corresponding to the central axis of the target part, such as Figure 3 The distance information between the target point and the reference point in the Z-axis direction shown in FIG. 1 and FIG. 2 is a diagram showing the distance information between the target point and the reference point. It should be understood that the distance information has positive and negative signs. Figure 3 As shown in the figure as an example, when the target point is on the left side of the reference point, the corresponding distance information is negative, and when the target point is on the right side of the reference point, the corresponding distance information is positive.
[0043] In addition, when the rotation body is selected for annotation, the relative position information also includes the diameter information of the target part at the target point, and, Figure 3 As shown, when displaying the relative position information, the terminal can automatically generate a diameter symbol This will remind the operator which parameter is the Z-axis parameter and which parameter is the diameter parameter. Figure 3 As shown, due to the symmetry of the rotating body parts, the marking method provided in the present application only needs to mark half of the outline of the target part to obtain all the dimensions, and the drawing occupies a smaller space.
[0044] Please continue to refer to Figure 1 In step S140, a first lead line is extended from the target point, and the relative position information is displayed at the other end of the first lead line.
[0045] In this embodiment, after determining the relative position information, the terminal can extend a first lead line from the target point, and display the corresponding relative position information at the other end of the first lead line. It should be understood that one target point corresponds to one first lead line, so that the marked dimensions can be prevented from interlacing with each other.
[0046] In one embodiment, the first lead line may be a broken line, and the terminal may identify the relative position between the target point and the target figure, and determine the lead direction of the first lead line according to the relative position. For example, when the target point is at the upper left of the target figure, the first lead line leads to the upper left, when the target point is at the upper right of the target figure, the first lead line leads to the upper right, and so on. In other examples, the first lead line may also be a curve or the like, and there is no special limitation on this.
[0047] Therefore, based on Figure 1 In the embodiment shown, according to the received dimensioning request for the target figure corresponding to the target part, the dimensioning type corresponding to the target figure is determined, and the dimensioning type includes plane coordinate dimensioning and rotation body dimensioning. In response to the designated operation for the reference point on the target figure, the reference point corresponding to the target figure is determined, and according to the reference point corresponding to the target figure, the dimensioning type and the target point selected on the target figure, the relative position information between the target point and the reference point is determined, and the type of the relative position information corresponds to the dimensioning type, and then a first lead line is extended from the target point, and the relative position information is displayed at the other end of the first lead line. Thus, when the operator is marking, after specifying the reference point, the size of the target point marked subsequently is based on the corresponding size of the reference point, and there is no need to specify a pair of relative points each time marking as in the traditional marking method, and when the relative position information of the target point is displayed, a first lead line is extended from the target point, and the relative position information is displayed at the other end of the first lead line. When there are many dimensions to be marked, it is also possible to avoid interlacing, thereby improving the readability of the marked dimensions on the basis of ensuring the effectiveness of the dimensioning.
[0048] In one embodiment of the present application, a first lead line is extended from the target point, and the relative position information is displayed at the other end of the first lead line, including:
[0049] determining a target font and / or a target font size according to the received selection information of the font and / or the font size for the relative position information;
[0050] A first lead line is extended from the target point, and the relative position information is displayed at the other end of the first lead line according to the target font and / or the target font size.
[0051] In this embodiment, before displaying the relative position information, the operator can pre-select the font and / or font size of the relative position information when displaying it according to actual implementation needs. The terminal can determine the corresponding target font and / or target font size based on the received selection information, so as to display the relative position information according to the target font and / or target font size to meet the different editing habits of the operator.
[0052] In one embodiment of the present application, when marking a plurality of target points, the method further includes:
[0053] Determining the minimum interval between two adjacent first lead lines according to the target font size;
[0054] Adjusting the first lead-out line of the marked target point and its corresponding relative position information according to the minimum interval; and / or
[0055] The first leading line of the currently marked target point and its corresponding relative position information are displayed according to the minimum interval.
[0056] In this embodiment, when there are multiple target points that need to be marked, the terminal can also determine the minimum interval between two adjacent first lead lines according to the target font size. It should be understood that the relative position information needs to occupy a certain space when displayed, and the minimum interval is the minimum threshold of the distance between two adjacent first lead lines, that is, only when the interval between two adjacent first lead lines is greater than or equal to the minimum interval, the relative position information corresponding to the two first lead lines will not overlap. In one example, the minimum interval can be determined according to the position size that the text of the target font size needs to occupy when displayed, that is, the minimum interval is the same as the position size that the text of the target font size needs to occupy when displayed. In another example, the minimum interval can also be slightly larger than the position size that the text of the target font size needs to occupy when displayed (for example, adding a predetermined value on this basis to obtain the minimum interval), so as to avoid the relative position information being too compact when displayed, affecting viewing.
[0057] Then, after determining the minimum interval, the terminal can adjust the first lead line of the marked target point and its corresponding relative position information according to the minimum interval. Specifically, at the beginning of marking, since the number of target points selected by the operator is small, there is a large space in the interface. At this time, the first lead line can be displayed according to a predetermined slope. As the number of target points selected by the operator increases and the displayable space gradually decreases, the terminal can adjust the first lead line of the marked target point and its corresponding relative position information according to the minimum interval, that is, adjust the slope of the first lead line on the premise of avoiding overlap, so that the marked size becomes more and more compact.
[0058] Furthermore, when displaying the first lead line of the currently marked target point and its corresponding relative position information, the terminal can also use the minimum interval to ensure that the dimension information marked later does not affect the dimension information marked earlier, thereby ensuring the readability of the marked dimension information.
[0059] In one embodiment of the present application, after determining the reference point corresponding to the target graphic in response to a designation operation for the reference point on the target graphic, the method further includes:
[0060] A second lead line extends from the reference point, and prompt information indicating the reference point is displayed at the other end of the second lead line.
[0061] In this embodiment, after determining the reference point, the terminal may extend a second lead line from the reference point and display prompt information indicating the reference point at the other end of the second lead line. For example, the terminal may display "coordinate origin" at the other end of the second lead line.
[0062] In this way, the operator can intuitively know the location of the reference point from the interface, thereby improving the readability of the marked dimension information.
[0063] In other embodiments, the operator may also adjust the position of the reference point according to actual implementation needs, and correspondingly, the relative position information of the marked target point will also change accordingly with the change of the reference point.
[0064] The following describes an embodiment of the device of the present application, which can be used to execute the automatic marking method of part size in the above embodiment of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the automatic marking method of part size in the above embodiment of the present application.
[0065] Figure 4 A block diagram of an automatic part dimensioning device according to an embodiment of the present application is shown.
[0066] Reference Figure 4 As shown, according to an embodiment of the present application, an automatic part size marking device includes:
[0067] A first determination module is used to determine the annotation type corresponding to the target graphic according to the received dimension annotation request for the target graphic corresponding to the target part, wherein the annotation type includes plane coordinate annotation and rotation body annotation;
[0068] A second determining module, configured to determine a reference point corresponding to the target graphic in response to a designation operation on the reference point on the target graphic;
[0069] A third determination module is used to determine the relative position information between the target point and the reference point according to the reference point corresponding to the target graphic, the annotation type and the target point selected on the target graphic, wherein the type of the relative position information corresponds to the annotation type;
[0070] The display processing module is used to extend a first lead line from the target point and display the relative position information at the other end of the first lead line.
[0071] In one embodiment of the present application, when the annotation type is plane coordinate annotation, the relative position information includes coordinate information of the target point when the reference point is used as the coordinate origin;
[0072] When the annotation type is a rotational body annotation, the relative position information includes distance information between the target point and the reference point in the axial direction corresponding to the target part, and diameter information of the target part at the position of the target point.
[0073] In one embodiment of the present application, a first lead line is extended from the target point, and the relative position information is displayed at the other end of the first lead line, including:
[0074] determining a target font and / or a target font size according to the received selection information of the font and / or the font size for the relative position information;
[0075] A first lead line is extended from the target point, and the relative position information is displayed at the other end of the first lead line according to the target font and / or the target font size.
[0076] In one embodiment of the present application, when marking a plurality of target points, the display processing module is further configured to:
[0077] Determining the minimum interval between two adjacent first lead lines according to the target font size;
[0078] Adjusting the first lead-out line of the marked target point and its corresponding relative position information according to the minimum interval; and / or
[0079] The first leading line of the currently marked target point and its corresponding relative position information are displayed according to the minimum interval.
[0080] In one embodiment of the present application, after determining the reference point corresponding to the target graphic in response to the designation operation for the reference point on the target graphic, the second determination module is further configured to:
[0081] A second lead line extends from the reference point, and prompt information indicating the reference point is displayed at the other end of the second lead line.
[0082] Figure 5 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0083] It should be noted that Figure 5 The computer system of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0084] like Figure 5 As shown, the computer system includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503, such as executing the method described in the above embodiment. In RAM 503, various programs and data required for system operation are also stored. CPU 501, ROM 502 and RAM 503 are connected to each other through bus 504. Input / output (I / O) interface 505 is also connected to bus 504.
[0085] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.
[0086] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 509, and / or installed from a removable medium 511. When the computer program is executed by a central processing unit (CPU) 501, various functions defined in the system of the present application are executed.
[0087] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0088] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0089] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0090] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.
[0091] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0092] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0093] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0094] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for automatically marking part dimensions, characterized in that: include: Determine, according to the received dimension annotation request for the target graphic corresponding to the target part, the annotation type corresponding to the target graphic, wherein the annotation type includes plane coordinate annotation and rotation body annotation; In response to a designation operation for a reference point on the target graphic, determining a reference point corresponding to the target graphic; Determine relative position information between the target point and the reference point according to the reference point corresponding to the target graphic, the annotation type, and the target point selected on the target graphic, wherein the type of the relative position information corresponds to the annotation type; A first lead line is extended from the target point, and the relative position information is displayed at the other end of the first lead line.
2. The method according to claim 1, characterized in that When the annotation type is plane coordinate annotation, the relative position information includes coordinate information of the target point when the reference point is used as the coordinate origin; When the annotation type is a rotational body annotation, the relative position information includes distance information between the target point and the reference point in the axial direction corresponding to the target part, and diameter information of the target part at the position where the target point is located.
3. The method according to claim 1, characterized in that: A first lead line is extended from the target point, and the relative position information is displayed at the other end of the first lead line, including: determining a target font and / or a target font size according to the received selection information of the font and / or the font size for the relative position information; A first lead line is extended from the target point, and the relative position information is displayed at the other end of the first lead line according to the target font and / or the target font size.
4. The method according to claim 3, characterized in that When marking a plurality of target points, the method further comprises: Determining the minimum interval between two adjacent first lead lines according to the target font size; Adjusting the first lead line of the marked target point and its corresponding relative position information according to the minimum interval; and / or The first leading line of the currently marked target point and its corresponding relative position information are displayed according to the minimum interval.
5. The method according to any one of claims 1 to 4, characterized in that After determining the reference point corresponding to the target graphic in response to the designation operation for the reference point on the target graphic, the method further includes: A second lead line is extended from the reference point, and prompt information for indicating the reference point is displayed at the other end of the second lead line.
6. An automatic marking device for part dimensions, characterized in that: include: A first determination module is used to determine the annotation type corresponding to the target graphic according to the received dimension annotation request for the target graphic corresponding to the target part, wherein the annotation type includes plane coordinate annotation and rotation body annotation; A second determining module, configured to determine a reference point corresponding to the target graphic in response to a designation operation on the reference point on the target graphic; A third determination module is used to determine the relative position information between the target point and the reference point according to the reference point corresponding to the target graphic, the annotation type and the target point selected on the target graphic, wherein the type of the relative position information corresponds to the annotation type; The display processing module is used to extend a first lead line from the target point and display the relative position information at the other end of the first lead line.
7. The device according to claim 6, characterized in that When the annotation type is plane coordinate annotation, the relative position information includes coordinate information of the target point when the reference point is used as the coordinate origin; When the annotation type is a rotational body annotation, the relative position information includes distance information between the target point and the reference point in the axial direction corresponding to the target part, and diameter information of the target part at the position where the target point is located.
8. The device according to claim 6, characterized in that A first lead line is extended from the target point, and the relative position information is displayed at the other end of the first lead line, including: determining a target font and / or a target font size according to the received selection information of the font and / or the font size for the relative position information; A first lead line is extended from the target point, and the relative position information is displayed at the other end of the first lead line according to the target font and / or the target font size.
9. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for automatically marking part dimensions according to any one of claims 1 to 5 is implemented.
10. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the automatic part size marking method as described in any one of claims 1 to 5.
Citation Information
Cited By
Generation method of distribution box label and related device thereof
CN120470730A
Generation method of distribution box label and related device thereof
CN120470730B
