Method, device, computer equipment and storage medium for adsorbing marking labels

By obtaining component parameters and preset rules to adjust the display status of mark labels, the problem of single mark label adsorption rules in the existing technology is solved, and flexible association and automatic updates between mark labels and components are realized, and modeling and drawing are improved. accuracy.

CN113901535BActive Publication Date: 2024-12-13GLODON CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111185835.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-12
Publication Date
2024-12-13
Estimated Expiration
2041-10-12

AI Technical Summary

Technical Problem

The adsorption rules of existing tag labels are single, and the flexible association and overall movement of tag labels and components cannot be achieved. The text display method is single, so it cannot be automatically adjusted to follow the movement of components.

Method used

By obtaining component parameters, determining the display status of the mark label according to preset rules, and parameterizing adjustments are made when the component position changes, automatic update and flexible editing of mark labels are realized.

Benefits of technology

The strong adsorption relationship between the marking label and the components is realized, and a flexible parameterized marking labeling adsorption scheme is provided, which improves the accuracy of modeling and drawing and engineering progress.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113901535B_ABST
    Figure CN113901535B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, computer equipment and storage medium for adsorbing a marking label, the method comprising the following steps: determining a target component to be adsorbed by the marking label; obtaining component parameters corresponding to the target component, and determining a first display state of the marking label according to the component parameters and a preset first rule; adjusting the marking label based on a preset second rule to obtain a second display state of the marking label; and parameterizing and storing the second display state. The present invention displays a default display state of a marking label with an adsorption relationship with a target component by a preset first rule, and determines by a preset second rule that when the position of the marking label or the target component changes, the display state of the marking label is adjusted in a correlation manner, thereby obtaining an adjusted display state of the marking label after the position change. Thereby, the automatic update and flexible editing functions of the marking label based on the target component are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer-aided design, and in particular to a method and device for adsorbing a marking label, a computer device and a storage medium. Background Art

[0002] In computer-aided drafting software, structural engineers will use different marking labels to represent and distinguish different components when modeling or drawing construction drawings. After creating a marking label, the user can adjust the position of the marking label while ensuring that the marking label is not disconnected from the main component. At this time, the adsorption function can be used to keep the marking label and the main component in a relatively fixed position relationship.

[0003] However, the existing adsorption rules of markers are simple and lack flexibility. Specifically, (1) the adsorption behavior of existing markers is all for the marker lead line, and the marker without a lead line cannot maintain the adsorption association with the main component; (2) the adsorption object of existing markers is only for the first clamp point of the lead line, and the overall movement of the marker cannot be achieved; (3) the text display method of existing markers is simple, and it is impossible to automatically change the text display direction of the marker while following the movement of the component. Summary of the invention

[0004] The purpose of the present invention is to provide a flexible and efficient parameterized label adsorption solution to solve the above-mentioned problems existing in the prior art.

[0005] To achieve the above object, the present invention provides a method for adsorbing a marking tag, comprising the following steps:

[0006] Determine the target component to be adsorbed by the marking tag;

[0007] Acquire component parameters corresponding to the target component, and determine a first display state of the marking label according to the component parameters and a preset first rule;

[0008] Adjusting the mark label based on a preset second rule to obtain a second display state of the mark label;

[0009] The second display state is stored in a parameterized manner.

[0010] According to the adsorption method of the marking label provided by the present invention, the component parameters include component type, component size and component position, and the step of obtaining the component parameters corresponding to the target component and determining the first display state of the marking label according to the component parameters and a preset first rule includes:

[0011] Determine the first lead state in the marking label according to the component type; the first lead state includes whether there is a lead, the number of lead segments, the lead angle and the lead length;

[0012] Determine a first text box state in the marking label according to the component position and / or the first lead state; the first text box state includes a text box size and a text box direction;

[0013] The display range of the mark label is determined according to the size of the component.

[0014] According to the method for adsorbing a mark label provided by the present invention, the component type is a linear component, and the step of adjusting the mark label based on a preset second rule to obtain the second display state of the mark label includes:

[0015] When the marking label is dragged, the first lead clamp point translates in the axial direction of the target component, and the length of the first lead segment is extended or shortened along the direction of the first angle; wherein the first lead clamp point is the clamp point in the lead label that is closest to the target component, the first lead segment is the lead segment where the first lead clamp point is located, and the first angle is the angle between the first lead segment and the target component.

[0016] According to the method for adsorbing a mark label provided by the present invention, the component type is a linear component, and the step of adjusting the mark label based on a preset second rule to obtain the second display state of the mark label includes:

[0017] When the marking label rotates around the target component, other parameters except the lead angle in the first lead state remain unchanged; the text box size in the first text box state remains unchanged, and the text box direction remains parallel to the target component.

[0018] According to the method for adsorbing a mark label provided by the present invention, the component type is a point-type component, and the step of adjusting the mark label based on a preset second rule to obtain the second display state of the mark label includes:

[0019] When the mark label is dragged, the first leader grip point remains unchanged, and the position of the second leader grip point changes with the dragging position;

[0020] The position of the text box follows the position of the last leader grip.

[0021] According to the adsorption method of the marking label provided by the present invention, the step of changing the position of the text box following the position of the last lead clip point comprises:

[0022] When the last lead grip point is located on the right side of the target component, the lower right corner of the text box remains adsorbed to the last lead grip point;

[0023] When the last lead clip point is located on the left side of the target component, the lower left corner point of the text box remains adsorbed to the last lead clip point;

[0024] When the last lead grip point is located just below or directly below the target component, the lower right corner point of the text box remains adsorbed to the last lead grip point.

[0025] According to the method for adsorbing a mark label provided by the present invention, the step of adjusting the mark label based on a preset second rule to obtain the second display state of the mark label further includes:

[0026] The marking label changes accordingly as the position of the target component changes.

[0027] To achieve the above object, the present invention further provides a device for adsorbing a marking label, comprising:

[0028] A target component determination module, adapted to determine a target component to be adsorbed by a marking tag;

[0029] A first display state module, adapted to obtain component parameters corresponding to the target component, and determine a first display state of the marking label according to the component parameters and a preset first rule;

[0030] A second display state module, adapted to adjust the mark label based on a preset second rule to obtain a second display state of the mark label;

[0031] The parameterized storage module is adapted to perform parameterized storage on the second display state.

[0032] To achieve the above objectives, the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0033] To achieve the above object, the present invention also provides a computer-readable storage medium on which a computer program is stored, and the computer program implements the steps of the above method when executed by a processor.

[0034] The adsorption method, device, computer equipment and storage medium of the marking label provided by the present invention realize the strong adsorption relationship between the marking label and the component in a parameterized manner. On the one hand, the present invention displays the default display state of the marking label with the target component having an adsorption relationship by presetting the first rule; on the other hand, the present invention determines that when the position of the marking label or the target component changes, the display state of the marking label is adjusted in a correlated manner by presetting the second rule, thereby obtaining the adjusted display state of the marking label after the position change. In this way, the automatic update and flexible editing function of the marking label based on the target component are realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 This is a flow chart of Example 1 of the method for adsorbing a marking tag of the present invention;

[0036] Figure 2 This is a schematic flow chart of determining a first display state according to Embodiment 1 of the present invention;

[0037] Figure 3 A schematic diagram of a marking label corresponding to a linear component of the present invention;

[0038] Figure 4A , Figure 4B A schematic diagram of determining a second display state in an example of Embodiment 1 of the present invention;

[0039] Figure 5 It is a schematic diagram of determining the second display state in yet another example of the first embodiment of the present invention;

[0040] Fig. 6A , Figure 6B and Figure 6C A schematic diagram of determining a second display state in another example of the first embodiment of the present invention;

[0041] Figure 7 This is a schematic diagram of a program module of Embodiment 1 of the adsorption device for marking labels of the present invention;

[0042] Figure 8 This is a schematic diagram of the hardware structure of the first embodiment of the adsorption device for marking tags of the present invention. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0044] Embodiment 1

[0045] See also Figure 1 This embodiment provides a method for adsorbing a marking tag, comprising the following steps:

[0046] S100: Determine the target component to be adsorbed by the marking tag.

[0047] The target component in this embodiment may include any component in a three-dimensional BIM model or a two-dimensional structural diagram, such as a wall, beam, plate, or column. The marking label is a combination of graphics and / or text displayed near the target component to characterize the specific parameters of the target component, such as specifications, dimensions, and materials. The marking label usually includes a lead and a text box, wherein the lead is used to indicate the position of the target component, and the text box is located near the end point of the lead to display the specific parameters of the target component. The lead may include one or more segments, and the end point of each segment of the lead becomes a pinch point. For example, the first end point of the first lead (i.e., the end point pointing to the target component) may be called the first pinch point. The text box is usually rectangular, and the specific parameters of the target component can be displayed in different fonts and font sizes in the text box. The lead is not a necessary content of the marking label. In some examples, only the text box may be included without the lead.

[0048] In this step, a one-to-one adsorption relationship can be established between the target component and the corresponding marking label, for example, an adsorption relationship is established between target component 1 and marking label 1, an adsorption relationship is established between target component 2 and marking label 2, an adsorption relationship is established between target component 3 and marking label 3, etc. The above adsorption relationship can be stored in the form of a data table.

[0049] S200: Obtain component parameters corresponding to the target component, and determine a first display state of the marking label according to the component parameters and a preset first rule.

[0050] Component parameters may include any parameters related to the target component, such as the application parameters such as specifications, dimensions, materials, etc. mentioned above, as well as graphic parameters such as coordinate position, shape, length, width, height, tilt angle, etc. of the target component in the BIM model or structure diagram. In general, component parameters may include component type, component size, and component position. Among them, the component type may include a linear component or a point component, the component size may include shape, length, width, height, tilt angle, etc., and the component position may include coordinate position. It can be understood that the content displayed in the text box of the marking label may be all or part of the data in the component parameters. The preset first rule in this embodiment includes the default display rule of the marking label having an adsorption relationship with the target component, including the default display state of the lead and the default display state of the text box. In this embodiment, the above-mentioned default display state is collectively referred to as the first display state of the marking label.

[0051] S300: Adjust the mark label based on a preset second rule to obtain a second display state of the mark label.

[0052] The preset second rule of this embodiment refers to the rule for adjusting the leader and / or text box in the marking label when the marking label or the corresponding target component changes. The so-called change can be a position change or an object change, etc. The position change mainly includes the change caused when the marking label or the corresponding target component is dragged or rotated. The object change generally refers to the change of the original target component with an adsorption relationship to a new target component. This embodiment provides adjustment rules to achieve automatic update of the marking label. The display state of the adjusted or updated marking label is called the second display state. This embodiment specifies different transformation forms of marking labels in various application scenarios by presetting the second rule, so as to meet the user's flexibility and rationality requirements when adjusting the marking label with an adsorption relationship.

[0053] S400: Parameterize and store the second display state.

[0054] This embodiment can store the adjusted second display state of the mark label in the form of a parameter string, which is conducive to saving computing resources and quick editing and modification. The second state can be parameterized by a preset format, for example, different character strings are used to represent the number of lead segments, lead angle, lead clamp position, text box position, text box size, text box direction and other features, and then these character strings are spliced ​​into a parameter string to obtain a parameterized representation of the second display state. When a feature in a mark label needs to be modified, as long as the corresponding character string in the corresponding parameter string is found, fast and targeted editing and modification can be achieved.

[0055] Through the above steps, this embodiment provides an overall marking label adsorption solution, which achieves a high degree of unification of the change process between the marking label and the corresponding target component, which is conducive to improving the accuracy of modeling or mapping and promoting the progress of the project.

[0056] Figure 2 FIG. 4 is a schematic flow chart of determining the first display state according to the first embodiment of the present invention. Figure 2 As shown, step S200 includes:

[0057] S210: Determine a first lead state in the marking label according to the component type; the first lead state includes whether there is a lead, the number of lead segments, the lead angle and the lead length.

[0058] Component types can be divided into different granularities based on different standards. For example, component types can be divided into linear components and point components according to the overall shape, wherein linear components may include components such as beams and columns in the main view and side view whose longitudinal sections are long strips; point components may include components such as columns in the top view, which can be equivalent to a point when their cross-sectional area is small enough compared to the entire structural diagram. The preset first rule in this embodiment may specify that different default first lead states are set for different component types. In one example, it may be specified that the marking label corresponding to the linear component contains two lead segments, each lead segment is 1 / N (N is a natural number) of the component length, the first lead segment is at an angle A to the target component, and the second lead segment is parallel to the target component, etc. In another example, it may be specified that the marking label corresponding to the point component contains a lead segment, the lead segment is 1 / N (N is a natural number) of the component length, and the lead segment is at an angle B to the horizontal direction, etc. Figure 3 Figure 2 shows a schematic diagram of the marking label corresponding to a linear component. Figure 3 As shown, the target component G1 is a linear component, and its corresponding marking label includes two lead lines, namely line segment J1J2 and line segment J2J3, wherein the angle between J1J2 and the target component G1 is A.

[0059] S220: Determine a first text box state in the marking label according to the component position and / or the first lead state; the first text box state includes a text box size and a text box direction.

[0060] The first text box state can be determined based on the component position and / or the first lead state. The component position in this embodiment can include the coordinate position of each endpoint of the component. For example, the width of the text box can be set to the difference between the X-axis coordinate positions of the two farthest endpoints in the component, and the height of the text box can be set to the difference between the Y-axis coordinate positions of the two farthest endpoints in the component, and so on. When determining the first text box state according to the first lead state, the width of the first text box can be specified as the length of the last segment of the lead, and the height of the first text box is in a preset ratio to its width. The text box direction can usually be set to be parallel to the extension direction of the linear component, or directly set to the horizontal direction, vertical direction, etc., which can be determined according to different scene requirements.

[0061] S230: Determine the display range of the marking label according to the component size.

[0062] The display range of the mark label is determined to ensure that the mark label does not exceed the preset range when being dragged, so as to avoid losing the identification function due to being too far away from the target component. The display range can be a circle with the center point of the target component as the center, and its radius can be determined according to the length of the target component, or specified as a fixed value, such as 300mm.

[0063] Through the above steps, this embodiment can obtain a marking label corresponding to the target component and taking into account both personalized settings and common features.

[0064] As mentioned above, the preset second rule in this embodiment is a rule for adjusting the leader and / or text box in the marking label when the marking label or the corresponding target component changes. This embodiment is described in detail through the following several different situations.

[0065] (1) When the component type of the target component is a linear component, when the marking label is dragged, the first lead clamp point translates in the axial direction of the target component, and the length of the first lead segment is extended or shortened along the direction of the first angle; wherein the first lead clamp point is the clamp point in the lead label that is closest to the target component, the first lead segment is the lead segment where the first lead clamp point is located, and the first angle is the angle between the first lead segment and the target component.

[0066] Figure 4A and Figure 4B FIG. 1 is a schematic diagram showing a method of determining the second display state in an example of the first embodiment of the present invention. As can be seen, Figure 4A and Figure 4B is Figure 3 The marking label is dragged on the basis of. During the dragging process, the first lead grip point J1 moves along the axis of the target component G1, and the length of the first lead segment J1J2 changes with the dragging. It should be noted that, Figure 4B The mark label is dragged to the other side of the target component G1, and the first angle A remains unchanged. The positional relationship between the text box and the last lead segment can be determined by the distance between the last lead segment and the target component. For example Figure 4A In , the distance between the lead segment J2J3 and the component G1 is less than the preset threshold, then the text box W1 and the target component G1 are located on both sides of the lead segment J2J3 respectively; Figure 4B In the example, if the distance between the lead segment J2J3 and the component G1 is greater than a preset threshold, the text box W1 and the target component G1 may be located on the same side of the lead segment J2J3.

[0067] Figure 5 FIG. 2 shows a schematic diagram of determining the second display state in another example of the first embodiment of the present invention. Figure 5 As shown in the figure, when the mark label corresponding to the target component G2 is dragged, the first lead grip point moves along the axial direction of the component G2, and other features remain unchanged. Figure 5 The direction of the text in the text box is parallel to the direction of the target component G2. When necessary, the text direction of the text box can also be modified separately in this embodiment, for example, to a horizontal direction.

[0068] (2) When the marking label rotates around the target component, other parameters in the first lead state except the lead angle remain unchanged; the text box size in the first text box state remains unchanged, and the text box direction remains parallel to the target component.

[0069] This example shows the effect of the mark label rotating with the first lead grip point as the center point. It can be understood that during the rotation, the first angle varies from 0° to 360°. Further, this embodiment can stipulate that the direction of the text box is always parallel to the target component, which is conducive to maintaining the consistency of the mark label and the target component.

[0070] (3) When the component type of the target component is a point-type component, when the mark label is dragged, the first leader grip point remains unchanged, and the position of the second leader grip point changes with the dragging position; the position of the text box changes with the position of the last leader grip point.

[0071] Fig. 6A , Figure 6B and Figure 6C FIG. 6 shows a schematic diagram of determining the second display state in another example of the first embodiment of the present invention. In the example of FIG. 6 , the target component is a point component. Fig. 6A It can be seen that when the last lead grip point of the mark label is located on the right side of the target component, it is equivalent to the first and fourth quadrants of the rectangular coordinate system, and the lower right corner of the text box remains adsorbed to the last lead grip point. Figure 6B It can be seen that when the last lead grip point of the mark label is located on the left side of the target component, it is equivalent to the second and third quadrants of the rectangular coordinate system, and the lower left corner of the text box remains adsorbed to the last lead grip point. Figure 6C It can be seen that when the last lead clip point is located just below or directly below the target component, it is equivalent to the Y axis of the rectangular coordinate system, and the lower right corner point of the corresponding text box remains adsorbed with the last lead clip point.

[0072] Through the above steps, this embodiment specifies different adjustment rules for line components and point components respectively to obtain the second display state after the mark label is adjusted, and can achieve flexible and reasonable style transformation on the basis of maintaining the adsorption relationship with the target component.

[0073] It should be noted that when the position of the target component itself changes, the corresponding marking label and the target component maintain the same relative position, thereby achieving the effect that the marking label changes accordingly with the change of the target component.

[0074] Please continue reading Figure 7, shows a device for adsorbing a marking tag. In this embodiment, the device for adsorbing a marking tag 70 may include or be divided into one or more program modules. One or more program modules are stored in a storage medium and executed by one or more processors to complete the present invention and implement the above-mentioned method for adsorbing a marking tag. The program module referred to in the present invention refers to a series of computer program instruction segments that can complete specific functions, which is more suitable for describing the execution process of the device for adsorbing a marking tag 70 in a storage medium than the program itself. The following description will specifically introduce the functions of each program module in this embodiment:

[0075] A target component determination module 71, adapted to determine a target component to be adsorbed by a marking tag;

[0076] A first display state module 72, adapted to obtain component parameters corresponding to the target component, and determine a first display state of the marking label according to the component parameters and a preset first rule;

[0077] A second display state module 73, adapted to adjust the mark label based on a preset second rule to obtain a second display state of the mark label;

[0078] The parameterized storage module 74 is adapted to perform parameterized storage on the second display state.

[0079] The present embodiment also provides a computer device, such as a smart phone, tablet computer, laptop computer, desktop computer, rack server, blade server, tower server or cabinet server (including an independent server or a server cluster composed of multiple servers) that can execute programs. The computer device 80 of the present embodiment includes at least but is not limited to: a memory 81 and a processor 82 that can communicate with each other via a system bus, such as Figure 8 It should be pointed out that Figure 8 Only a computer device 80 having components 81 - 82 is shown, but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.

[0080] In this embodiment, the memory 81 (i.e., readable storage medium) includes flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 81 can be an internal storage unit of the computer device 80, such as a hard disk or memory of the computer device 80. In other embodiments, the memory 81 can also be an external storage device of the computer device 80, such as a plug-in hard disk equipped on the computer device 80, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. Of course, the memory 81 can also include both the internal storage unit of the computer device 80 and its external storage device. In this embodiment, the memory 81 is generally used to store the operating system and various application software installed on the computer device 80, such as the program code of the adsorption device 70 of the marking label in the first embodiment. In addition, the memory 81 can also be used to temporarily store various types of data that have been output or are to be output.

[0081] In some embodiments, the processor 82 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 82 is generally used to control the overall operation of the computer device 80. In this embodiment, the processor 82 is used to run the program code stored in the memory 81 or process data, such as running the adsorption device 70 of the marking label to implement the adsorption method of the marking label of the first embodiment.

[0082] This embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, and when the program is executed by a processor, a corresponding function is realized. The computer-readable storage medium of this embodiment is used to store the adsorption device 70 of the marking label, and when executed by the processor, the adsorption method of the marking label of the first embodiment is realized.

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

[0084] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.

[0085] A person of ordinary skill in the art can understand that all or part of the steps carried out in the above-mentioned embodiment method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable medium. When the program is executed, it includes one of the steps of the method embodiment or a combination thereof.

[0086] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0087] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.

[0088] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for adsorbing a label, characterized in that: The following steps are involved: Determine the target component to be adsorbed by the marking label; wherein the marking label includes: one or more segments of lead lines and text boxes; Acquire component parameters corresponding to the target component, and determine a first display state of the marking label according to the component parameters and a preset first rule; Adjusting the mark label based on a preset second rule to obtain a second display state of the mark label; Parameterizing and storing the second display state; The component parameters include component type, component size and component position, and the step of obtaining the component parameters corresponding to the target component and determining the first display state of the marking label according to the component parameters and a preset first rule includes: Determine the first lead state in the marking label according to the component type; the first lead state includes whether there is a lead, the number of lead segments, the lead angle and the lead length; Determine a first text box state in the marking label according to the component position and / or the first lead state; the first text box state includes a text box size and a text box direction; Determining a display range of the marking label according to the size of the component; The step of adjusting the mark label based on the preset second rule to obtain the second display state of the mark label includes: When the target component is a linear component and the marking label is dragged, the first lead clamp point translates in the axial direction of the target component, the length of the first lead segment is extended or shortened along the direction of the first angle, and when the distance between the last lead segment and the target component is less than a preset threshold, the text box and the target component are respectively located on both sides of the last lead segment, or when the distance between the last lead segment and the target component is greater than a preset threshold, the text box and the target component are located on the same side of the last lead segment; wherein the first lead clamp point is the clamp point in the lead label that is closest to the target component, the first lead segment is the lead segment where the first lead clamp point is located, and the first angle is the angle between the first lead segment and the target component.

2. The method for adsorbing a marking label according to claim 1, characterized in that: When the component type is a linear component, the step of adjusting the mark label based on the preset second rule to obtain the second display state of the mark label is replaced by: When the marking label rotates around the target component, other parameters except the lead angle in the first lead state remain unchanged; the text box size in the first text box state remains unchanged, and the text box direction remains parallel to the target component.

3. The method for adsorbing a marking label according to claim 1, characterized in that: When the component type is a point-type component, the step of adjusting the mark label based on the preset second rule to obtain the second display state of the mark label is replaced by: When the mark label is dragged, the first leader grip point remains unchanged, and the position of the second leader grip point changes with the dragging position; The position of the text box follows the position of the last leader grip.

4. The method for adsorbing a marking label according to claim 3, characterized in that: The step of changing the position of the text box to follow the position of the last leader grip point includes: When the last lead grip point is located on the right side of the target component, the lower right corner of the text box remains adsorbed to the last lead grip point; When the last lead clip point is located on the left side of the target component, the lower left corner point of the text box remains adsorbed to the last lead clip point; When the last lead clip point is located directly above or directly below the target component, the lower right corner point of the text box remains adsorbed to the last lead clip point.

5. The method for adsorbing a marking label according to any one of claims 1 to 4, characterized in that: The step of adjusting the mark label based on the preset second rule to obtain the second display state of the mark label also includes: The marking label changes accordingly as the position of the target component changes.

6. A label adsorption device, characterized in that: include: The target component determination module is adapted to determine the target component to be adsorbed by the marking label; wherein the marking label includes: one or more segments of lead lines and text boxes; A first display state module, adapted to obtain component parameters corresponding to the target component, and determine a first display state of the marking label according to the component parameters and a preset first rule; A second display state module, adapted to adjust the mark label based on a preset second rule to obtain a second display state of the mark label; A parameterized storage module, adapted to perform parameterized storage on the second display state; The component parameters include component type, component size and component position. The first display state module is applicable to: Determine the first lead state in the marking label according to the component type; the first lead state includes whether there is a lead, the number of lead segments, the lead angle and the lead length; Determine a first text box state in the marking label according to the component position and / or the first lead state; the first text box state includes a text box size and a text box direction; Determining a display range of the marking label according to the size of the component; The second display status module is applicable to: When the target component is a linear component and the marking label is dragged, the first lead clamp point translates in the axial direction of the target component, the length of the first lead segment is extended or shortened along the direction of the first angle, and when the distance between the last lead segment and the target component is less than a preset threshold, the text box and the target component are respectively located on both sides of the last lead segment, or when the distance between the last lead segment and the target component is greater than a preset threshold, the text box and the target component are located on the same side of the last lead segment; wherein the first lead clamp point is the clamp point in the lead label that is closest to the target component, the first lead segment is the lead segment where the first lead clamp point is located, and the first angle is the angle between the first lead segment and the target component.

7. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.