Coordinate labeling method and device based on AutoCAD software

By using dynamic tile technology in AutoCAD software, a coordinate label template containing coordinate calculation formulas was created, which solved the problem of coordinate errors in the drawing coordinate labels, and dynamic updates and automatic corrections of coordinate values ​​were achieved, improving the accuracy of design operations. and efficiency.

CN118940347APending Publication Date: 2024-11-12CHINA GASOLINEEUM PIPELINE ENG CORP +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310522105.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-10
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The prior art has coordinate error problems in drawing coordinate annotation, especially when coordinate elements are moved and copied, resulting in inconsistent coordinate values, affecting the efficiency and accuracy of design operations.

Method used

Using dynamic tile technology based on AutoCAD software, we create coordinate annotation templates, including coordinate base points, indicator line segments, attribute fields and attribute line segments. Dynamic updates of coordinate values ​​are achieved by embedding coordinate calculation formulas to ensure the coordinate values ​​in the movement and copy operations. consistency.

Benefits of technology

In the absence of special commands, the actual coordinate values ​​of the target point are automatically updated to ensure the reliability of soft and hard copies, avoid coordinate errors, and improve design and review work efficiency and quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118940347A_ABST
    Figure CN118940347A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the field of coordinate labeling, and provides a coordinate labeling method and device based on AutoCAD software. The method comprises the following steps: making a coordinate marking template comprising a coordinate base point for positioning a coordinate marking position, an indication line segment pointing to the coordinate base point, an attribute field for determining a current coordinate value of the coordinate base point based on a current position of the coordinate base point, and an attribute line segment for positioning an attribute field position based on a dynamic block technology of AutoCAD software; defining a building coordinate system in the CAD measurement drawing as a user coordinate system with a specified name; and inserting a coordinate marking template into the CAD measurement drawing, associating the coordinate base point with the attribute field, and updating the attribute field into an actual coordinate value based on the user coordinate system and / or the measurement coordinate system of the CAD measurement drawing. According to the embodiment of the invention, complete and correct coordinate display during mutual transmission of CAD drawings can be ensured, and the coordinate labeling efficiency and quality are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of coordinate marking of drawings, and in particular to a coordinate marking method and device based on AutoCAD software. Background Art

[0002] In urban and rural planning and design and engineering survey and design, the existing technology often uses coordinate marking to locate the plots, roads and the buildings and structures inside them in the drawings.

[0003] Currently, various professional computer-aided software are equipped with a coordinate annotation function, but the coordinate annotation values ​​obtained by using this function to annotate the drawings are all static texts, so that the coordinate values ​​after the coordinate elements in the drawings are moved and the new coordinate values ​​generated by the copying of the coordinate elements are inconsistent with the static coordinate annotation values, resulting in coordinate errors and inconvenience in design operations.

[0004] Although the relevant software has certain countermeasures for the problem of coordinate errors that may be caused by routine operations such as moving and copying, it is still unable to fundamentally solve this problem. Designers have to spend a lot of time and energy to check for coordinate errors in the drawings, which not only affects work efficiency, but also brings inconvenience to related work such as optimized design, project collaboration, land use pre-examination, surveying and demarcation, and integration of the "one map" of national land space. It is also difficult to ensure that all coordinates in the drawings are correct. Summary of the invention

[0005] The present disclosure aims to solve at least one of the problems existing in the prior art and provides a coordinate marking method and device based on AutoCAD software.

[0006] In one aspect of the present disclosure, a coordinate marking method based on AutoCAD software is provided, the coordinate marking method comprising:

[0007] Based on the dynamic block technology of AutoCAD software, a coordinate annotation template is produced; the coordinate annotation template includes a coordinate base point, an indicating line segment, an attribute field and an attribute line segment, wherein the coordinate base point is used to locate the coordinate annotation position, the indicating line segment points to the coordinate base point to indicate the position of the coordinate base point, the attribute field is used to determine the current user coordinate value or measured coordinate value of the coordinate base point based on the current position of the coordinate base point, and the attribute line segment is used to locate the position of the attribute field;

[0008] Define the building coordinate system in the CAD survey drawing as a user coordinate system with a specified name;

[0009] Insert the coordinate annotation template into the CAD measurement drawing, associate the coordinate base point with the target point of the to-be-corrected coordinates in the CAD measurement drawing, and enable the attribute field to update the actual coordinate value of the target point based on the user coordinate system and / or the measurement coordinate system of the CAD measurement drawing.

[0010] Optionally, the dynamic block technology based on AutoCAD software is used to make a coordinate annotation template, including:

[0011] Using the AutoCAD software to create a dynamic coordinate block, the dynamic coordinate block includes the coordinate base point, the indication line segment pointing to the coordinate base point, and the attribute line segment connected to the endpoint of the indication line segment away from the coordinate base point;

[0012] Adding the attribute field to the dynamic coordinate block, and marking the attribute field at the position of the attribute line segment, wherein the attribute field includes a horizontal coordinate field and a vertical coordinate field;

[0013] Embedding a horizontal coordinate calculation formula into the horizontal coordinate field, so that the horizontal coordinate field uses the horizontal coordinate calculation formula to convert the horizontal coordinate value of the coordinate base point in the user coordinate system based on the position coordinates of the coordinate base point;

[0014] The ordinate calculation formula is embedded in the ordinate field, so that the ordinate field uses the ordinate calculation formula to convert the ordinate value of the coordinate base point in the user coordinate system based on the position coordinates of the coordinate base point.

[0015] Optionally, the dynamic block technology based on AutoCAD software to make a coordinate annotation template also includes:

[0016] A stretching action and its corresponding stretching dynamic parameters are set for the dynamic coordinate block, so that when the dynamic coordinate block completes the stretching action, the position of the attribute line segment and the attribute field can be changed while keeping the position of the coordinate base point unchanged.

[0017] Optionally, the dynamic block technology based on AutoCAD software to make a coordinate annotation template also includes:

[0018] A flipping action and its corresponding flipping dynamic parameters are set for the dynamic coordinate block, so that the dynamic coordinate block can complete the flipping of the annotation direction corresponding to the dynamic coordinate block through the flipping action while keeping the position of the coordinate base point unchanged.

[0019] Another aspect of the present disclosure provides a coordinate marking device based on AutoCAD software, the coordinate marking device comprising:

[0020] A production module is used to produce a coordinate annotation template based on the dynamic block technology of AutoCAD software; the coordinate annotation template includes a coordinate base point, an indication line segment, an attribute field and an attribute line segment, wherein the coordinate base point is used to locate the coordinate annotation position, the indication line segment points to the coordinate base point to indicate the position of the coordinate base point, the attribute field is used to determine the current user coordinate value or measured coordinate value of the coordinate base point based on the current position of the coordinate base point, and the attribute line segment is used to locate the position of the attribute field;

[0021] A definition module is used to define the building coordinate system in the CAD survey drawing as a user coordinate system with a specified name;

[0022] The association module is used to insert the coordinate annotation template into the CAD measurement drawing, associate the coordinate base point with the target point of the coordinate to be corrected in the CAD measurement drawing, and enable the attribute field to update the actual coordinate value of the target point based on the user coordinate system and / or the measurement coordinate system of the CAD measurement drawing.

[0023] Optionally, the production module is used to produce a coordinate annotation template based on the dynamic block technology of AutoCAD software, including:

[0024] The production module is specifically used for:

[0025] Using the AutoCAD software to create a dynamic coordinate block, the dynamic coordinate block includes the coordinate base point, the indication line segment pointing to the coordinate base point, and the attribute line segment connected to the endpoint of the indication line segment away from the coordinate base point;

[0026] Adding the attribute field to the dynamic coordinate block, and marking the attribute field at the position of the attribute line segment, wherein the attribute field includes a horizontal coordinate field and a vertical coordinate field;

[0027] Embedding a horizontal coordinate calculation formula into the horizontal coordinate field, so that the horizontal coordinate field uses the horizontal coordinate calculation formula to convert the horizontal coordinate value of the coordinate base point in the user coordinate system based on the position coordinates of the coordinate base point;

[0028] The ordinate calculation formula is embedded in the ordinate field, so that the ordinate field uses the ordinate calculation formula to convert the ordinate value of the coordinate base point in the user coordinate system based on the position coordinates of the coordinate base point.

[0029] Optionally, the production module is used to produce a coordinate annotation template based on the dynamic block technology of AutoCAD software, and further includes:

[0030] The production module is specifically used to set a stretching action and its corresponding stretching dynamic parameters for the dynamic coordinate block, so that when the dynamic coordinate block completes the stretching action, the position of the attribute line segment and the attribute field can be changed while keeping the position of the coordinate base point unchanged.

[0031] Optionally, the production module is used to produce a coordinate annotation template based on the dynamic block technology of AutoCAD software, and further includes:

[0032] The production module is specifically used to set a flip action and its corresponding flip dynamic parameters for the dynamic coordinate block, so that the dynamic coordinate block can complete the flipping of the annotation direction corresponding to the dynamic coordinate block through the flip action while keeping the position of the coordinate base point unchanged.

[0033] Another aspect of the present disclosure provides an electronic device, including:

[0034] at least one processor; and,

[0035] a memory communicatively connected to at least one processor; wherein,

[0036] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor so that the at least one processor can execute the coordinate marking method based on AutoCAD software described above.

[0037] Another aspect of the present disclosure provides a computer-readable storage medium storing a computer program, which implements the coordinate marking method based on AutoCAD software described above when executed by a processor.

[0038] Compared with the prior art, the present invention, when coordinates are marked based on AutoCAD software, uses a secondary development plug-in to embed a coordinate conversion formula that can be automatically executed by AutoCAD software. No special commands or plug-ins are required during the editing process such as copying and moving. Before operations such as saving, printing, and sending files, the actual coordinate value of the target point can be automatically updated, thereby ensuring the reliability of soft copies and hard copies. The actual coordinate value of the target point can also be automatically updated when a regenerate (REGEN) graphic update command is received during the graphic editing process of the AutoCAD software. This not only ensures that the coordinate display is complete and the value is correct when CAD drawings are transferred to each other, but also avoids coordinate errors caused by lack of plug-ins, coordinate correction functions not being called in a timely manner, etc. At the same time, since the process of automatically correcting coordinates in the present invention does not require plug-ins, it also avoids problems caused by software upgrades, incompatibility with plug-ins, and inability to mark and display, and avoids coordinate errors that may be missed due to incomplete verification, reduces the workload of design and verification, and improves work efficiency and quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplifications do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0040] Figure 1 A flowchart of a coordinate marking method based on AutoCAD software provided in one embodiment of the present disclosure;

[0041] Figure 2 A schematic diagram of the structure of a coordinate annotation template provided in another embodiment of the present disclosure;

[0042] Figure 3 A schematic structural diagram of a coordinate marking device based on AutoCAD software provided by another embodiment of the present disclosure;

[0043] Figure 4 A schematic structural diagram of an electronic device provided in another embodiment of the present disclosure. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. However, it can be understood by those skilled in the art that in each embodiment of the present disclosure, many technical details are proposed in order to enable readers to better understand the present disclosure. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed for protection in the present disclosure can also be implemented. The division of the following embodiments is for the convenience of description and should not constitute any limitation on the specific implementation of the present disclosure. The various embodiments can be combined and referenced with each other without contradiction.

[0045] One embodiment of the present disclosure relates to a coordinate marking method based on AutoCAD software, the process of which is as follows: Figure 1 As shown, including:

[0046] Step S110, based on the dynamic block technology of AutoCAD software, a coordinate annotation template is made; the coordinate annotation template includes a coordinate base point, an indicator line segment, an attribute field and an attribute line segment, wherein the coordinate base point is used to locate the coordinate annotation position, the indicator line segment points to the coordinate base point to indicate the position of the coordinate base point, the attribute field is used to determine the current user coordinate value or measured coordinate value of the coordinate base point based on the current position of the coordinate base point, and the attribute line segment is used to locate the position of the attribute field.

[0047] Specifically, the coordinate annotation template is a dynamic block located in an external file of the AutoCAD software, which can be established using the attributes and dynamic functions of the blocks in the AutoCAD software. The attribute fields in the coordinate annotation template represent the coordinate values ​​of the coordinate base point in the user coordinate system, which are converted based on the formula of the measured coordinate value of the coordinate base point at the current position. The coordinate acquisition function of the AutoCAD software itself is used to determine the coordinate value of the coordinate base point in the measured coordinate system, i.e., the measured coordinate value, and then the measured coordinate value is converted into the current user coordinate value of the coordinate base point, i.e., the coordinate value of the coordinate base point in the current user coordinate system, by embedding the coordinate calculation formula.

[0048] Exemplarily, step S110 includes: using AutoCAD software to create a dynamic coordinate block, the dynamic coordinate block includes a coordinate base point, an indicating line segment pointing to the coordinate base point, and an attribute line segment connected to the endpoint of the indicating line segment away from the coordinate base point; adding an attribute field to the dynamic coordinate block, marking the attribute field at the position of the attribute line segment, wherein the attribute field includes a horizontal coordinate field and a vertical coordinate field; embedding a horizontal coordinate calculation formula into the horizontal coordinate field, so that the horizontal coordinate field uses the horizontal coordinate calculation formula to convert the horizontal coordinate value of the coordinate base point in the user coordinate system based on the position coordinates of the coordinate base point; embedding the vertical coordinate calculation formula into the vertical coordinate field, so that the vertical coordinate field uses the vertical coordinate calculation formula to convert the vertical coordinate value of the coordinate base point in the user coordinate system based on the position coordinates of the coordinate base point.

[0049] Specific, combined Figure 2 In step S110, the indicating line segment LINE1 and the attribute line segment LINE2 connected to one end point of the indicating line segment LINE1 can be first drawn using AutoCAD software, and the end point of LINE1 away from LINE2 is determined as the base point of the dynamic coordinate block, that is, the coordinate base point, to obtain the basic graphics of the dynamic coordinate block, and attribute fields including abscissa fields and ordinate fields are added to the basic graphics, and the abscissa fields and ordinate fields are respectively marked at the position of LINE2, such as the ordinate fields and abscissa fields can be respectively marked on both sides of the straight line part of LINE2. Next, in step S110, the basic graphics composed of the indicating line segment and the attribute line segment are defined as a dynamic block using AutoCAD software to obtain a dynamic coordinate block. Afterwards, step S110 uses AutoCAD software to edit the properties of the horizontal coordinate field and the vertical coordinate field respectively: embed the horizontal coordinate calculation formula into the horizontal coordinate field, so that the horizontal coordinate field uses the horizontal coordinate calculation formula to convert the horizontal coordinate value of the coordinate base point in the user coordinate system based on the position coordinates of the coordinate base point; embed the vertical coordinate calculation formula into the vertical coordinate field, so that the vertical coordinate field uses the vertical coordinate calculation formula to convert the vertical coordinate value of the coordinate base point in the user coordinate system based on the position coordinates of the coordinate base point.

[0050] This implementation uses AutoCAD software to create a dynamic coordinate block. By adding attributes to the dynamic coordinate block, embedding fields in the attributes, embedding coordinate calculation formulas in the fields, and embedding an identity document (ID) that can determine the actual position of the coordinate base point in the dynamic coordinate block in the coordinate calculation formula, a dynamic link relationship is formed between the coordinate calculation formula and the actual position of the dynamic coordinate block, realizing the linkage between the coordinate value displayed in the attribute field and the actual position of the dynamic coordinate block.

[0051] Exemplarily, step S110 further includes: setting a stretching action and its corresponding stretching dynamic parameters for the dynamic coordinate block, so that when the dynamic coordinate block completes the stretching action, the position of the attribute line segment and the attribute field can be changed while keeping the position of the coordinate base point unchanged.

[0052] Specifically, step S110 can use AutoCAD software to set a stretching action and its corresponding stretching parameters for the dynamic coordinate block, so that the dynamic coordinate block can change the position of the attribute line segment and the attribute field by completing the stretching action, thereby completing the adjustment of the attribute field annotation position including the horizontal coordinate field and the vertical coordinate field. Figure 2 As shown, in step S110, the endpoints connected by LINE1 and LINE2 can be stretched by using AutoCAD software, so as to adjust the text positions corresponding to the horizontal and vertical coordinates and the position of the attribute line segments.

[0053] Exemplarily, step S110 further includes: setting a flip action and its corresponding flip dynamic parameters for the dynamic coordinate block, so that the dynamic coordinate block can complete the flipping of the annotation direction corresponding to the dynamic coordinate block through the flip action while keeping the position of the coordinate base point unchanged.

[0054] Specific, combined Figure 2 In step S110, AutoCAD software can be used to set a flip action and its corresponding flip parameters for the dynamic coordinate block, so as to use the dynamic coordinate block to complete the flip action to achieve the flip of the annotation direction corresponding to the dynamic coordinate block. The flip action here refers to mirror flipping the position of the indicator line segment, attribute line segment and attribute field along the preset mirror line, while keeping the position of the coordinate base point unchanged.

[0055] Step S120: defining the building coordinate system in the CAD measurement drawing as a user coordinate system with a specified name.

[0056] Specifically, step S120 can use AutoCAD software to define a coordinate system in a CAD survey drawing, define the building coordinate system as a user coordinate system with a specified name, and save various parameters involved in defining the coordinate system in a graphic file of the CAD survey drawing in the form of extended data.

[0057] Step S130, inserting a coordinate annotation template into the CAD measurement drawing, associating the coordinate base point with the target point whose coordinates are to be corrected in the CAD measurement drawing, and updating the actual coordinate value of the target point based on the user coordinate system and / or the measurement coordinate system of the CAD measurement drawing in the attribute field.

[0058] Specifically, since the attribute field is used to determine the current user coordinate value of the coordinate base point based on the current position of the coordinate base point, after associating the coordinate base point with the target point whose coordinates are to be corrected in the CAD measurement drawing, the attribute field can determine the coordinate value of the target point in the current user coordinate system and / or the measurement coordinate system of the CAD measurement drawing based on the current position of the target point, and use the coordinate value as the actual coordinate value of the target point at the current position to complete the update and correction of the target point coordinates.

[0059] When the CAD measurement drawing with the coordinate annotation template inserted is moved, the actual coordinate value of the coordinate base point will change accordingly. Before the next save, print, regenerate, or electronic transmission of the file, AutoCAD software will automatically read the measured coordinates of the coordinate base point, and use the attribute fields in the coordinate annotation template according to the coordinate calculation formula to calculate the actual user coordinate value, that is, the coordinate value of the coordinate base point in the current user coordinate system, and use the calculated actual user coordinate value as part of the attribute text. At the same time, the coordinate value update process of the coordinate base point is a function natively supported by AutoCAD software, without the need for any plug-ins, thus achieving plug-in-free support.

[0060] During the copy operation of a CAD measurement drawing with a coordinate annotation template inserted, the dynamic link relationship between the attribute text of the new target point generated by the copy and the inserted base point, i.e., the coordinate base point in the new coordinate annotation template, is automatically maintained by the AutoCAD software, thereby achieving automatic correction of the coordinate value of the new target point generated by the copy based on the AutoCAD software.

[0061] Compared with the prior art, the embodiment of the present disclosure utilizes the native dynamic block technology of AutoCAD software to produce a coordinate annotation template. In the process of annotating coordinates, the new coordinate annotation function is associated with the CAD measurement drawing and the user coordinate system by calling the coordinate annotation template, and the associated coordinate calculation formula is embedded, so that the coordinate annotation template can be used in the CAD measurement drawing to update the actual user coordinate value of the target point based on the user coordinate system to complete the coordinate annotation. After editing the coordinates, no special command needs to be issued. The AutoCAD software can automatically complete the update of the actual coordinate value of the target point before operations such as saving, printing, and sending files, thereby ensuring the reliability of soft copies and hard copies. The actual coordinate value of the target point can also be automatically updated when a regenerate (REGEN) graphic update command is received during the graphic editing process of the AutoCAD software. This not only ensures that the coordinate display is complete and the value is correct when the CAD drawings are transferred to each other, but also avoids coordinate errors caused by the failure of the coordinate correction function to be called in a timely manner, avoids the problem of being unable to annotate and display due to software upgrades and incompatibility with plug-ins, and avoids coordinate errors that may be missed due to incomplete verification, reduces the workload of design and verification, and improves work efficiency and quality.

[0062] Another embodiment of the present disclosure relates to a coordinate marking device based on AutoCAD software, such as Figure 3 As shown, including:

[0063] The production module 301 is used to produce a coordinate annotation template based on the dynamic block technology of the AutoCAD software; the coordinate annotation template includes a coordinate base point, an indicator line segment, an attribute field and an attribute line segment, wherein the coordinate base point is used to locate the coordinate annotation position, the indicator line segment points to the coordinate base point to indicate the position of the coordinate base point, the attribute field is used to determine the current coordinate value or measured coordinate value of the coordinate base point based on the current position of the coordinate base point, and the attribute line segment is used to locate the position of the attribute field;

[0064] A definition module 302, used to define the building coordinate system in the CAD survey drawing as a user coordinate system with a specified name;

[0065] The association module 303 is used to insert a coordinate annotation template into the CAD measurement drawing, associate the coordinate base point with the target point whose coordinates are to be corrected in the CAD measurement drawing, and update the actual coordinate value of the target point based on the user coordinate system and / or the measurement coordinate system of the CAD measurement drawing in the attribute field.

[0066] Exemplarily, the making module 301 is used to make a coordinate annotation template based on the dynamic block technology of AutoCAD software, including:

[0067] The production module 301 is specifically used for: creating a dynamic coordinate block using AutoCAD software, the dynamic coordinate block including a coordinate base point, an indicating line segment pointing to the coordinate base point, and an attribute line segment connected to the endpoint of the indicating line segment away from the coordinate base point; adding an attribute field to the dynamic coordinate block, marking the attribute field at the position of the attribute line segment, wherein the attribute field includes a horizontal coordinate field and a vertical coordinate field; embedding a horizontal coordinate calculation formula into the horizontal coordinate field, so that the horizontal coordinate field uses the horizontal coordinate calculation formula to convert the horizontal coordinate value of the coordinate base point in the user coordinate system based on the position coordinates of the coordinate base point; embedding a vertical coordinate calculation formula into the vertical coordinate field, so that the vertical coordinate field uses the vertical coordinate calculation formula to convert the vertical coordinate value of the coordinate base point in the user coordinate system based on the position coordinates of the coordinate base point.

[0068] Exemplarily, the making module 301 is used to make a coordinate annotation template based on the dynamic block technology of AutoCAD software, and also includes:

[0069] The production module 301 is specifically used to set a stretching action and its corresponding stretching dynamic parameters for the dynamic coordinate block, so that when the dynamic coordinate block completes the stretching action, the position of the attribute line segment and the attribute field can be changed while keeping the position of the coordinate base point unchanged.

[0070] Exemplarily, the making module 301 is used to make a coordinate annotation template based on the dynamic block technology of AutoCAD software, and also includes:

[0071] The production module 301 is specifically used to set a flip action and its corresponding flip dynamic parameters for the dynamic coordinate block, so that the dynamic coordinate block can complete the flipping of the annotation direction corresponding to the dynamic coordinate block through the flip action while keeping the position of the coordinate base point unchanged.

[0072] The specific implementation method of the coordinate labeling device based on AutoCAD software provided in the embodiment of the present disclosure can be found in the coordinate labeling method based on AutoCAD software provided in the embodiment of the present disclosure, which will not be repeated here.

[0073] Compared with the prior art, the disclosed embodiment does not need to issue any special commands when coordinate annotation is performed based on AutoCAD software. The actual coordinate value of the target point can be automatically updated before operations such as saving, printing, and sending files, thereby ensuring the reliability of soft copies and hard copies. The actual coordinate value of the target point can also be automatically updated when a regenerate (REGEN) graphic update command is received during the graphic editing process of the AutoCAD software. This not only ensures that the coordinate display is complete and the values ​​are correct when CAD drawings are transferred to each other, but also avoids coordinate errors caused by the coordinate correction function not being called in time, avoids the problem of being unable to annotate and display due to software upgrades and incompatibility with plug-ins, and avoids coordinate errors that may be missed due to incomplete verification, reduces the workload of design and verification, and improves work efficiency and quality.

[0074] Another embodiment of the present disclosure relates to an electronic device, such as Figure 4 As shown, including:

[0075] at least one processor 401; and,

[0076] A memory 402 is communicatively connected to at least one processor 401; wherein,

[0077] The memory 402 stores instructions that can be executed by at least one processor 401. The instructions are executed by at least one processor 401 so that the at least one processor 401 can execute the coordinate marking method based on AutoCAD software described in the above embodiment.

[0078] Among them, the memory and the processor are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors and memories together. The bus can also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor.

[0079] The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory can be used to store data used by the processor when performing operations.

[0080] Another embodiment of the present disclosure relates to a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the coordinate labeling method based on AutoCAD software described in the above embodiment.

[0081] That is, those skilled in the art can understand that all or part of the steps in the method described in the above embodiments can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions for making a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0082] Those skilled in the art will appreciate that the above-mentioned embodiments are specific embodiments for implementing the present disclosure, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present disclosure.

Claims

1. A coordinate marking method based on AutoCAD software, characterized in that: The coordinate marking method comprises: Based on the dynamic block technology of AutoCAD software, a coordinate annotation template is produced; the coordinate annotation template includes a coordinate base point, an indicating line segment, an attribute field and an attribute line segment, wherein the coordinate base point is used to locate the coordinate annotation position, the indicating line segment points to the coordinate base point to indicate the position of the coordinate base point, the attribute field is used to determine the current user coordinate value or measured coordinate value of the coordinate base point based on the current position of the coordinate base point, and the attribute line segment is used to locate the position of the attribute field; Define the building coordinate system in the CAD survey drawing as a user coordinate system with a specified name; Insert the coordinate annotation template into the CAD measurement drawing, associate the coordinate base point with the target point of the to-be-corrected coordinates in the CAD measurement drawing, and enable the attribute field to update the actual coordinate value of the target point based on the user coordinate system and / or the measurement coordinate system of the CAD measurement drawing.

2. The coordinate marking method according to claim 1, characterized in that: The dynamic block technology based on AutoCAD software is used to make a coordinate annotation template, including: Using the AutoCAD software to create a dynamic coordinate block, the dynamic coordinate block includes the coordinate base point, the indication line segment pointing to the coordinate base point, and the attribute line segment connected to the endpoint of the indication line segment away from the coordinate base point; Adding the attribute field to the dynamic coordinate block, and marking the attribute field at the position of the attribute line segment, wherein the attribute field includes a horizontal coordinate field and a vertical coordinate field; Embedding a horizontal coordinate calculation formula into the horizontal coordinate field, so that the horizontal coordinate field uses the horizontal coordinate calculation formula to convert the horizontal coordinate value of the coordinate base point in the user coordinate system based on the position coordinates of the coordinate base point; The ordinate calculation formula is embedded in the ordinate field, so that the ordinate field uses the ordinate calculation formula to convert the ordinate value of the coordinate base point in the user coordinate system based on the position coordinates of the coordinate base point.

3. The coordinate marking method according to claim 2, characterized in that: The dynamic block technology based on AutoCAD software is used to make a coordinate annotation template, and further includes: A stretching action and its corresponding stretching dynamic parameters are set for the dynamic coordinate block, so that when the dynamic coordinate block completes the stretching action, the position of the attribute line segment and the attribute field can be changed while keeping the position of the coordinate base point unchanged.

4. The coordinate marking method according to claim 2, characterized in that: The dynamic block technology based on AutoCAD software is used to make a coordinate annotation template, and further includes: A flipping action and its corresponding flipping dynamic parameters are set for the dynamic coordinate block, so that the dynamic coordinate block can complete the flipping of the annotation direction corresponding to the dynamic coordinate block through the flipping action while keeping the position of the coordinate base point unchanged.

5. A coordinate marking device based on AutoCAD software, characterized in that: The coordinate marking device comprises: A production module is used to produce a coordinate annotation template based on the dynamic block technology of AutoCAD software; the coordinate annotation template includes a coordinate base point, an indication line segment, an attribute field and an attribute line segment, wherein the coordinate base point is used to locate the coordinate annotation position, the indication line segment points to the coordinate base point to indicate the position of the coordinate base point, the attribute field is used to determine the current user coordinate value or measured coordinate value of the coordinate base point based on the current position of the coordinate base point, and the attribute line segment is used to locate the position of the attribute field; A definition module is used to define the building coordinate system in the CAD survey drawing as a user coordinate system with a specified name; The association module is used to insert the coordinate annotation template into the CAD measurement drawing, associate the coordinate base point with the target point of the coordinate to be corrected in the CAD measurement drawing, and enable the attribute field to update the actual coordinate value of the target point based on the user coordinate system and / or the measurement coordinate system of the CAD measurement drawing.

6. The coordinate marking device according to claim 5, characterized in that: The production module is used to produce a coordinate annotation template based on the dynamic block technology of AutoCAD software, including: The production module is specifically used for: Using the AutoCAD software to create a dynamic coordinate block, the dynamic coordinate block includes the coordinate base point, the indication line segment pointing to the coordinate base point, and the attribute line segment connected to the endpoint of the indication line segment away from the coordinate base point; Adding the attribute field to the dynamic coordinate block, and marking the attribute field at the position of the attribute line segment, wherein the attribute field includes a horizontal coordinate field and a vertical coordinate field; Embedding a horizontal coordinate calculation formula into the horizontal coordinate field, so that the horizontal coordinate field uses the horizontal coordinate calculation formula to convert the horizontal coordinate value of the coordinate base point in the user coordinate system based on the position coordinates of the coordinate base point; The ordinate calculation formula is embedded in the ordinate field, so that the ordinate field uses the ordinate calculation formula to convert the ordinate value of the coordinate base point in the user coordinate system based on the position coordinates of the coordinate base point.

7. The coordinate marking device according to claim 6, characterized in that: The production module is used to produce a coordinate annotation template based on the dynamic block technology of AutoCAD software, and also includes: The production module is specifically used to set a stretching action and its corresponding stretching dynamic parameters for the dynamic coordinate block, so that when the dynamic coordinate block completes the stretching action, the position of the attribute line segment and the attribute field can be changed while keeping the position of the coordinate base point unchanged.

8. The coordinate marking device according to claim 6, characterized in that: The production module is used to produce a coordinate annotation template based on the dynamic block technology of AutoCAD software, and also includes: The production module is specifically used to set a flip action and its corresponding flip dynamic parameters for the dynamic coordinate block, so that the dynamic coordinate block can complete the flipping of the annotation direction corresponding to the dynamic coordinate block through the flip action while keeping the position of the coordinate base point unchanged.

9. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the coordinate labeling method based on AutoCAD software described in any one of claims 1 to 4.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the coordinate marking method based on AutoCAD software described in any one of claims 1 to 4 is implemented.