A method for automatically drawing profiles of directional drilling with curved trajectory

By selecting key points on the curve trajectory and determining their attribute values, the automatic drawing of the drilling section diagram is realized, which solves the problem of high difficulty in drawing complex curved drilling section diagrams in the prior art, and improves work efficiency.

CN113870382BActive Publication Date: 2025-04-15HEBEI COAL SCI RES INST
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111215428.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-19
Publication Date
2025-04-15
Estimated Expiration
2041-10-19

AI Technical Summary

Technical Problem

In the prior art, the process is complicated and difficult when drawing a drilling section, especially when dealing with curved drilling trajectories with irregular shapes.

Method used

By selecting key points on the curve trajectory, determining the position information, point types and attribute values ​​of each key point, and setting section parameters based on these information, automatically drawing the drilling section diagram.

Benefits of technology

The drawing process of drilling section diagrams is simplified, the difficulty is reduced, and technicians and even non-technical personnel can complete the work quickly, greatly improving work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113870382B_ABST
    Figure CN113870382B_ABST
Patent Text Reader

Abstract

The present invention is applicable to the technical field of drilling profile drawing, and provides a method, device, terminal and storage medium for automatically drawing a directional drilling profile of a curve trajectory. The method comprises: selecting key points on the curve trajectory, the key points include the starting point, the end point and multiple points between the starting point and the end point of the curve trajectory; determining the position information of each key point on the curve trajectory; determining the point type of each key point, and obtaining the attribute value of each key point according to the point type; determining the profile parameters, and automatically drawing according to the profile parameters, position information, point type and attribute value to obtain a drilling profile. The present invention can simplify the drawing process of the drilling profile and reduce the difficulty of drawing the drilling profile.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of drilling profile drawing, and in particular to an automatic drawing method, device, terminal and storage medium for a curved trajectory directional drilling profile. Background Art

[0002] At present, with the increasing application of ground directional drilling technology in fields such as mine water prevention and control, more and more people are beginning to pay attention to the technology of directional drilling. In the engineering design of directional drilling, people need to scientifically and reasonably design the directional drilling trajectory and draw the profile of the borehole.

[0003] However, due to the limitations of drilling geological tasks, the drilling trajectory is often an irregular curve, which makes the process of drawing the profile of the borehole complicated and difficult. Summary of the invention

[0004] The embodiments of the present invention provide a method, device, terminal and storage medium for automatically drawing a curved trajectory directional drilling profile diagram to solve the problem of complex and difficult process when drawing a drilling profile diagram in the prior art.

[0005] A first aspect of the present invention provides a method for automatically drawing a profile of a curved trajectory directional drilling, comprising:

[0006] Selecting key points on the curve trajectory, wherein the key points include a starting point, an end point, and a plurality of points between the starting point and the end point of the curve trajectory;

[0007] Determine the position information of each key point on the curve trajectory;

[0008] Determine the point type of each key point, and obtain the attribute value of each key point according to the point type;

[0009] Determine profile parameters, and automatically draw according to the profile parameters, the location information, the point type and the attribute value to obtain a drilling profile.

[0010] In a possible implementation, selecting key points on the curve trajectory includes:

[0011] Determining a starting point of the curved trajectory;

[0012] Determining an end point of the curved trajectory;

[0013] Randomly select a plurality of points between the starting point and the end point;

[0014] The starting point, the end point and the multiple points are selected as key points on the curve trajectory.

[0015] In a possible implementation manner, the position information of each key point on the curve trajectory includes: the curve length of each key point from the starting point.

[0016] In a possible implementation, the point types include: a curve starting point, a curve end point, a contour point, a longitude and latitude grid point, a fault point, a tunnel point, or an electrical anomaly area point.

[0017] In a possible implementation, obtaining the attribute value of each key point according to the point type includes:

[0018] If the point type of a key point is the starting point of a curve, the elevation value of the starting point of the curve is determined as the attribute value of the key point;

[0019] If the point type of a key point is a curve end point, the elevation value of the curve end point is determined as the attribute value of the key point;

[0020] If the point type of a key point is a contour point, the elevation value of the contour point is determined to be the attribute value of the key point;

[0021] If the point type of a key point is a longitude and latitude grid point, the horizontal coordinate or vertical coordinate of the longitude and latitude grid point in the geodetic coordinate system is determined as the attribute value of the key point;

[0022] If the point type of a key point is a fault point, the text value corresponding to the fault point is determined to be the attribute value of the key point;

[0023] If the point type of a key point is a lane point, the text value corresponding to the lane point is determined to be the attribute value of the key point;

[0024] If the point type of a key point is an electrical anomaly point, the text value corresponding to the electrical anomaly point is determined to be the attribute value of the key point.

[0025] In a possible implementation, the profile parameters include:

[0026] Add distance on the left side of the section, add distance on the right side of the section, section start elevation, section end elevation, section line spacing and dimension font height.

[0027] In a possible implementation, automatically drawing according to the profile parameters, the location information, the point type, and the attribute value to obtain the borehole profile includes:

[0028] Specify the drawing base point;

[0029] Automatically draw based on the drawing base point according to the section parameters, the position information, the point type and the attribute value to obtain a basic section figure;

[0030] The basic profile figure is processed by connecting contour points, drawing stratum structure or drawing fault structure to obtain a borehole profile.

[0031] A second aspect of the present invention provides an automatic drawing device for a curved trajectory directional drilling profile, comprising:

[0032] A key point selection unit, used for selecting key points on the curve trajectory, wherein the key points include a starting point, an end point, and a plurality of points between the starting point and the end point of the curve trajectory;

[0033] A position information determining unit, used to determine the position information of each key point on the curve trajectory;

[0034] An attribute value determination unit, used to determine the point type of each key point and obtain the attribute value of each key point according to the point type;

[0035] The drawing unit is used to determine the profile parameters and automatically draw according to the profile parameters, the position information, the point type and the attribute value to obtain a drilling profile.

[0036] In a possible implementation manner, the key point selection unit is specifically used to perform the following steps:

[0037] Determining a starting point of the curved trajectory;

[0038] Determining an end point of the curved trajectory;

[0039] Randomly select a plurality of points between the starting point and the end point;

[0040] The starting point, the end point and the multiple points are selected as key points on the curve trajectory.

[0041] In a possible implementation manner, the position information of each key point on the curve trajectory includes: the curve length of each key point from the starting point.

[0042] In a possible implementation, the point types include: a curve starting point, a curve end point, a contour point, a longitude and latitude grid point, a fault point, a tunnel point, or an electrical anomaly area point.

[0043] In a possible implementation manner, the attribute value determining unit is specifically configured to perform the following steps:

[0044] If the point type of a key point is the starting point of a curve, the elevation value of the starting point of the curve is determined as the attribute value of the key point;

[0045] If the point type of a key point is a curve end point, the elevation value of the curve end point is determined as the attribute value of the key point;

[0046] If the point type of a key point is a contour point, the elevation value of the contour point is determined to be the attribute value of the key point;

[0047] If the point type of a key point is a longitude and latitude grid point, the horizontal coordinate or vertical coordinate of the longitude and latitude grid point in the geodetic coordinate system is determined as the attribute value of the key point;

[0048] If the point type of a key point is a fault point, the text value corresponding to the fault point is determined to be the attribute value of the key point;

[0049] If the point type of a key point is a lane point, the text value corresponding to the lane point is determined to be the attribute value of the key point;

[0050] If the point type of a key point is an electrical anomaly point, the text value corresponding to the electrical anomaly point is determined to be the attribute value of the key point.

[0051] In a possible implementation, the profile parameters include:

[0052] Add distance on the left side of the section, add distance on the right side of the section, section start elevation, section end elevation, section line spacing and dimension font height.

[0053] In a possible implementation manner, the drawing unit is specifically used to perform the following steps:

[0054] Specify the drawing base point;

[0055] Automatically draw based on the drawing base point according to the section parameters, the position information, the point type and the attribute value to obtain a basic section figure;

[0056] The basic profile figure is processed by connecting contour points, drawing stratum structure or drawing fault structure to obtain a borehole profile.

[0057] The third aspect of the present invention provides a terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method for automatically drawing a curved trajectory directional drilling profile diagram as described in any one of the above items are implemented.

[0058] A fourth aspect of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method for automatically drawing a curved trajectory directional drilling profile as described in any of the above items.

[0059] Compared with the prior art, the present invention has the following beneficial effects:

[0060] The present invention selects key points on a curve trajectory, determines the position information of each key point on the curve trajectory and the point type of each key point, obtains the attribute value of each key point according to the point type, and finally sets the profile parameters. The borehole profile is automatically drawn according to the above information to obtain the borehole profile. The present invention first determines the position information, point type and attribute value of each key point on the curve trajectory, and then sets the profile parameters. The automatic drawing of the borehole profile can be achieved according to the above position information, point type, attribute value and profile parameters, which simplifies the drawing process of the borehole profile and reduces the difficulty of drawing the borehole profile. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0062] Figure 1 It is a flow chart of the implementation of the method for automatically drawing a curved trajectory directional drilling profile provided by an embodiment of the present invention;

[0063] Figure 2 It is an example diagram of a DCL dialog box for obtaining data from a curve trajectory CAD graphic or importing data from a CSV file provided in an embodiment of the present invention;

[0064] Figure 3 is an example diagram of selecting key points on a curve trajectory provided by an embodiment of the present invention;

[0065] Figure 4 is an example diagram of a point type selection DCL dialog box provided by an embodiment of the present invention;

[0066] Figure 5 This is an example diagram of the CSV file format provided by an embodiment of the present invention;

[0067] Figure 6 is an example diagram of a DCL dialog box for setting profile parameters provided by an embodiment of the present invention;

[0068] Figure 7 is an example diagram of a basic profile of directional drilling automatically generated according to an embodiment of the present invention;

[0069] Figure 8 is an example diagram of a perfectly processed directional drilling profile provided by an embodiment of the present invention;

[0070] Fig. 9 It is a schematic structural diagram of a device for automatically drawing a profile of a curved trajectory directional drilling provided by an embodiment of the present invention;

[0071] Fig.10 is a schematic diagram of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0072] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.

[0073] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.

[0074] See also Figure 1 , which shows a flowchart of the automatic drawing method of the curved trajectory directional drilling profile provided by an embodiment of the present invention, and is described in detail as follows:

[0075] In step S101 , key points are selected on the curve trajectory, wherein the key points include a starting point, an end point, and a plurality of points between the starting point and the end point of the curve trajectory.

[0076] It should be noted that before executing the above steps, it is necessary to copy the plane graphics of the curve trajectory of the drilling profile to be drawn into a new file, enter APPLOAD in the command line of the CAD software to load the above new file, and then enter the D-SECTION command to start the process steps of automatically drawing the curve trajectory directional drilling profile. It can be understood that in order to correctly obtain the information contained in the curve trajectory graphics and to smoothly draw the curve trajectory directional drilling profile, when starting the process steps of automatically drawing the curve trajectory directional drilling profile, the drawing environment can be initialized first, which may include setting the current coordinate system to the world coordinate system, obtaining the object snap mode setting, closing the command line prompt and displaying the program operation precautions, etc. The specific code to implement the above-mentioned initialization function of the drawing environment is:

[0077] (defun init_environment()

[0078] (setvar "cmdecho" 0)

[0079] (if(=(getvar"WORLDUCS")0)(command"ucs"""))

[0080] (setq snap_var(getvar"OSMODE"))

[0081] (prompt"\nGet the length of a point on a curve (spline and polyline) from the starting point of the curve, extract it to the specified CSV file and automatically draw the basic profile graphics. Before use, please copy the curve and related graphics to a dedicated file and then operate. When using, please pay attention to follow the prompts and do not use the Esc key to interrupt the program, otherwise it may cause errors."))

[0082] It should also be noted that in the present invention, the key points, key point location information, point type and attribute value on the curve trajectory can be directly determined from the curve trajectory CAD graphics in the new file opened by CAD, and then the profile parameters can be set to automatically draw the basic profile graphics; the CSV file that stores relevant data saved in advance can also be imported into the CAD software, and the basic profile graphics can be automatically drawn according to the data saved in the CSV file. In the embodiment of the present invention, it can be determined whether to obtain data from the curve trajectory CAD graphics or import data from the CSV file by designing the DCL dialog box. Figure 2 An example diagram of a DCL dialog box for obtaining data from a curve trajectory CAD drawing or importing data from a CSV file provided in an embodiment of the present invention is shown. The DCL dialog box provides two buttons, "OK" and "Cancel". Click OK to directly obtain data from the current curve trajectory CAD drawing, and click Cancel to import data from an existing CSV file with the same format.

[0083] In an embodiment of the present invention, when selecting key points on a curve trajectory, you can check "Intersection" and "Nearest Point" under "Object Snap" in the CAD software, and select points on the curve trajectory through this mode; you can also manually select any point on the curve trajectory, and you can select it in order or not. The specific method of selecting key points on the curve trajectory is not limited here.

[0084] In an embodiment of the present invention, the key points must include the starting point and the end point of the curve trajectory. In order to make the final profile of the curve trajectory directional drilling more vivid, multiple points can be selected between the starting point and the end point of the curve trajectory. The specific number of selected key points is not limited here.

[0085] Optionally, in one embodiment, the above step S101 may include:

[0086] Determine the starting point of the curved trajectory.

[0087] Determines the end point of the curved trajectory.

[0088] Randomly pick multiple points between the start and end points.

[0089] Use the start point, end point, and multiple points as key points to pick on the curve trajectory.

[0090] As mentioned above, the key points include the starting point, the end point, and multiple points between the starting point and the end point of the curve trajectory. When selecting multiple points between the starting point and the end point of the curve trajectory, they can be randomly selected; or the distance range between two adjacent points can be preset, and multiple points can be selected between the starting point and the end point of the curve trajectory according to the preset range. The key points selected in this way are more evenly distributed on the curve trajectory, which can improve the control over the curve trajectory and the effect of the final drawn drilling profile.

[0091] In an embodiment of the present invention, points can also be selected on the curve trajectory according to different geological information. That is to say, according to the geological map of the area where the curve trajectory is located, at least one key point can be included in each geological type when selecting points. The key points selected in this way can make the final borehole profile include all geological types in the geological layer, thereby improving the integrity of the drawing of the borehole profile.

[0092] In a specific embodiment, Figure 3 An example diagram of selecting key points on a curve trajectory provided by an embodiment of the present invention is shown.

[0093] In step S102, the position information of each key point on the curve trajectory is determined.

[0094] In an embodiment of the present invention, the position information of each key point on the curve trajectory can be directly determined from the curve trajectory CAD graphic in the new file opened by CAD, and the position information of each key point on the curve trajectory can be stored in a CSV file; the CSV file saved in advance and storing the position information of each key point on the curve trajectory can also be imported into the CAD software, and the specific method of determining the position information of each key point on the curve is not limited here.

[0095] In an embodiment of the present invention, if the position information of each key point on the curve trajectory is determined directly from the curve trajectory CAD graphic, several key AutoLISP extension functions in the CAD software can be used to determine the position information, and these extension functions include: vlax-ename->vla-object function, which is used to convert the AutoLISP type graphic name into a VLA object, so that other vlax-functions can be used normally; vlax-curve-getStartPoint function, which can return the starting point coordinates of the above-mentioned curve trajectory CAD graphic; vlax-curve-getEndPoint function, which can return the end point coordinates of the above-mentioned curve trajectory CAD graphic; vlax-curve-getDistAtPoint function, which can return the length of the curve segment from the starting point to the specified point of the above-mentioned curve trajectory CAD graphic.

[0096] Optionally, in one embodiment, the position information of each key point on the curve track in the above step S102 includes: the curve length of each key point from the starting point.

[0097] In an embodiment of the present invention, the position information of each key point on the curve trajectory can be the curve length of each key point from the starting point of the curve trajectory, or it can be set as the curve length of each key point from the end point of the curve trajectory according to actual conditions. In an embodiment of the present invention, it is set as the curve length of each key point from the starting point of the curve trajectory. As mentioned above, the vlax-curve-getDistAtPoint function can be used to return the length of the curve segment from the starting point to the specified point of the curve trajectory CAD figure. It can be understood that the vlax-curve-getDistAtPoint function can be used to determine the position information of each key point on the curve trajectory.

[0098] In an embodiment of the present invention, it is necessary to determine the length of the curve from each key point to the starting point of the curve trajectory, and the measurement of a single curve length can be performed through the lengthen and list commands in CAD. The specific measurement method is: interrupt the curve at the position of the key point, and then measure the length of the curve; compared with the method of using the vlax-curve-getDistAtPoint function to determine the position information of each key point on the curve trajectory, the operation is cumbersome and more prone to errors.

[0099] In step S103, the point type of each key point is determined, and the attribute value of each key point is obtained according to the point type.

[0100] As mentioned above, key points are selected on the curve trajectory. The key points include the starting point, the end point and multiple points between the starting point and the end point of the curve trajectory. Since each point on the curve trajectory has specific geological attributes, these geological attributes include but are not limited to contour lines, longitude and latitude grids, faults, tunnels, electrical anomaly areas, collapse columns, geophysical anomaly areas, mining field boundaries, village scopes, protective coal pillars, rivers, etc., and the key point is the intersection of the curve trajectory and these geological attributes. The geological attribute of the intersection is also the point type of each key point.

[0101] In the embodiment of the present invention, each time a key point is selected on the curve trajectory, it is necessary to determine the point type of the key point. The point type of each key point can be determined in the form of a design DCL dialog box.

[0102] Optionally, in one embodiment, the point types in the above step S103 include: curve starting point, curve end point, contour point, longitude and latitude grid point, fault point, tunnel point or electrical abnormal area point.

[0103] In a specific embodiment, Figure 4 An example diagram of the point type selection DCL dialog box provided in an embodiment of the present invention is shown, wherein the point type can be set manually and is not limited here. In this embodiment, it can be set to contour points, longitude and latitude points, fault points, lane points and other points, which are implemented using 5 radio buttons.

[0104] It can be understood that the DCL dialog box can provide a friendly interactive interface, which can visually check the point type of each key point. If there is an error, it can be modified again, which greatly reduces the probability of misoperation.

[0105] In the embodiment of the present invention, the curve starting point and the curve end point in the point type correspond to the starting point and the end point of the curve track in the key point.

[0106] In an embodiment of the present invention, the point type of the key point is the geological information at the intersection, so the point type of the key point includes but is not limited to contour points, longitude and latitude points, fault points, tunnel points, electrical anomaly area points, collapse column points, geophysical anomaly area points, well field boundary points, village range points, protective coal pillar points, river points, etc.

[0107] In the embodiment of the present invention, after the point type of each key point is determined, the point type information of each key point may be stored in a CSV file.

[0108] Optionally, in one embodiment, the above step S103 may include:

[0109] If the point type of a key point is the starting point of a curve, the elevation value of the starting point of the curve is determined as the attribute value of the key point.

[0110] If the point type of a key point is a curve end point, the elevation value of the curve end point is determined as the attribute value of the key point.

[0111] If the point type of a key point is a contour point, the elevation value of the contour point is determined as the attribute value of the key point.

[0112] If the point type of a key point is a longitude and latitude grid point, the horizontal coordinate or vertical coordinate of the longitude and latitude grid point in the geodetic coordinate system is determined as the attribute value of the key point.

[0113] If the point type of a key point is a fault point, the text value corresponding to the fault point is determined to be the attribute value of the key point.

[0114] If the point type of a key point is a lane point, the text value corresponding to the lane point is determined to be the attribute value of the key point.

[0115] If the point type of a key point is an electrical anomaly point, the text value corresponding to the electrical anomaly point is determined to be the attribute value of the key point.

[0116] In an embodiment of the present invention, after the point type of each key point is determined, the attribute value of each key point can be obtained according to the point type, wherein when the point type is a curve starting point, a contour point, a longitude and latitude grid point, or a curve end point, its attribute value must be a numerical value, and the attribute value corresponding to other point types can be a text value or a numerical value corresponding to its name or type.

[0117] In an embodiment of the present invention, if the point type of a key point is a curve starting point, the elevation value of the curve starting point is determined as the attribute value of the key point; if the point type of a key point is a curve end point, the elevation value of the curve end point is determined as the attribute value of the key point; if the point type of a key point is a contour point, the elevation value of the contour point is determined as the attribute value of the key point; if the point type of a key point is a longitude and latitude grid point, the horizontal coordinate or vertical coordinate of the longitude and latitude grid point in the geodetic coordinate system is determined as the attribute value of the key point; if the point type of a key point is a fault point, the text value corresponding to the name of the fault where the fault point is located is determined as the attribute value of the key point; if the point type of a key point is a lane point, the text value corresponding to the name of the lane where the lane point is located is determined as the attribute value of the key point; if the point type of a key point is an electrical anomaly area point, the text value corresponding to the name of the electrical anomaly area where the electrical anomaly area point is located is determined as the attribute value of the key point. The attribute value of the key point; if the point type of a key point is a sinkhole point, then the text value corresponding to the name of the sinkhole where the sinkhole point is located is determined as the attribute value of the key point; if the point type of a key point is a geophysical anomaly area point, then the text value corresponding to the name of the geophysical anomaly area where the geophysical anomaly area point is located is determined as the attribute value of the key point; if the point type of a key point is a well field boundary point, then the text value corresponding to the name of the well field boundary where the well field boundary point is located is determined as the attribute value of the key point; if the point type of a key point is a village range point, then the text value corresponding to the name of the village range where the village range point is located is determined as the attribute value of the key point; if the point type of a key point is a protective coal pillar point, then the text value corresponding to the name of the protective coal pillar where the protective coal pillar point is located is determined as the attribute value of the key point; if the point type of a key point is a river point, then the text value corresponding to the name of the river where the river point is located is determined as the attribute value of the key point.

[0118] In the embodiment of the present invention, after the attribute value of each key point is obtained, the attribute value of each key point is stored in a CSV file.

[0119] It should be noted that, as mentioned above, the position information of each key point on the curve trajectory is stored in a CSV file, the point type information of each key point is stored in a CSV file, and the attribute value of each key point is stored in a CSV file. The CSV files they store are the same CSV file. In an embodiment of the present invention, all the above data can be saved in a specified CSV file.

[0120] In a specific embodiment, Figure 5An example diagram of the CSV file format provided by an embodiment of the present invention is shown. A CSV file is a text file with a CSV extension in which columns are separated by commas. A CSV file that meets the requirements includes 4 columns. The first column is "serial number", which is the number of key points selected in the present invention; the second column is "distance from the starting point", which must be a numerical value, which is the location information of each key point in the present invention; the third column is "attribute value"; the fourth column is "point type"; the first line is the title row, which will be ignored when imported into CAD.

[0121] In step S104, the profile parameters are determined, and the drilling profile is automatically drawn according to the profile parameters, location information, point type and attribute values ​​to obtain a drilling profile.

[0122] In a specific embodiment, the profile parameters can be determined by designing a DCL dialog box. Figure 6 The schematic diagram of the DCL dialog box for setting profile parameters provided by the embodiment of the present invention is shown. It can be understood that the DCL dialog box can provide a friendly interactive interface, and the determined profile parameters can be checked intuitively. If there are errors, they can be revised again, which greatly reduces the probability of misoperation.

[0123] Optionally, in one embodiment, the profile parameters in the above step S104 include: increased distance on the left side of the profile, increased distance on the right side of the profile, starting elevation of the profile, ending elevation of the profile, profile line spacing and annotation font height.

[0124] Optionally, in one embodiment, the above step S104 may include:

[0125] Specify the drawing base point.

[0126] Based on the drawing base point, the section parameters, location information, point type and attribute value are automatically drawn to obtain the basic section graphics.

[0127] The basic profile figure is processed by connecting contour points, drawing stratum structure or drawing fault structure to obtain a borehole profile.

[0128] In the embodiment of the present invention, the drawing base point is the starting point of the drawn cross-section basic figure, which can be manually specified.

[0129] In the embodiment of the present invention, automatic drawing is performed based on the drawing base point according to the section parameters, position information, point type and attribute value to obtain the basic section figure, which can be specifically: automatic calculation is performed based on the section parameters, position information, point type and attribute value, and the section grid is drawn based on the drawing base point, the elevation is marked, and the obtained position information, point type and attribute value are drawn on the section map in different colors according to different attributes, the starting point, end point and contour point of the curve trajectory are automatically drawn with auxiliary lines according to the corresponding elevations and the data are marked, which can be deleted after later verification, the longitude and latitude points are automatically marked, and auxiliary lines are automatically drawn for key points such as fault points and lane points, Figure 7 An example diagram of a basic profile of directional drilling automatically generated according to an embodiment of the present invention is shown.

[0130] In the embodiment of the present invention, the basic profile graphic is processed by connecting contour points, drawing stratum structure or drawing fault structure, and the specific process of obtaining the borehole profile can be: connecting the automatically marked contour points into line segments, offsetting the line segments according to the stratum thickness to obtain the stratum structure, drawing the fault structure, and then filling the stratum according to the lithology, and finally trimming and beautifying the graphic, deleting redundant marks, adding a frame and a label, and obtaining a perfect profile graphic. It can be understood that Figure 8 An example diagram of a perfectly processed directional drilling profile provided by an embodiment of the present invention is shown.

[0131] In one embodiment, it should be noted that errors may occur during the execution of all the above steps. When an error occurs, operations such as displaying an error message, closing file reading and writing (writing buffer data to a file and releasing file occupation), setting the current color to follow the layer, opening a command line prompt, restoring object snap settings, terminating all DCL dialog boxes, and deleting temporary DCL files can be performed. The specific implementation code is as follows:

[0132]

[0133]

[0134] From the above, it can be seen that the present invention can first obtain relevant data from the CAD graphics of the curve trajectory, and then convert the data into a CAD profile graphic. The implementation method adopts the AutoLISP language, and the relevant data can also be stored in a CSV file for comparison and inspection to see whether the basic profile graphic is correctly generated. If the generated profile graphic is incorrect, the data in the CSV file can be directly modified, and then the data in the CSV file can be imported to automatically generate the basic profile graphic. The DCL dialog box can also be designed to provide a friendly user interaction interface to improve the user experience, and finally realize the automatic drawing method of the curve trajectory directional drilling profile.

[0135] The present invention reduces the complexity and technical difficulty of drawing directional drilling profiles, allowing technical personnel and even non-technical personnel to quickly complete the work, greatly improving work efficiency, shortening the drawing time to 1 / 3 to 1 / 4 of conventional drawing, freeing technical personnel from heavy drawing work and allowing them to focus more on research and analysis.

[0136] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0137] The following is an embodiment of the device of the present invention. For details not described in detail therein, reference may be made to the corresponding method embodiment described above.

[0138] Fig. 9 The following is a schematic diagram showing the structure of an automatic drawing device for a curved trajectory directional drilling profile provided by an embodiment of the present invention. For ease of description, only the parts related to the embodiment of the present invention are shown, which are described in detail as follows:

[0139] like Fig. 9 As shown, the automatic drawing device 9 for the curve trajectory directional drilling profile includes: a key point selection unit 901, a position information determination unit 902, an attribute value determination unit 903, and a drawing unit 904.

[0140] A key point selection unit 901 is used to select key points on the curve trajectory, wherein the key points include the starting point, the end point and multiple points between the starting point and the end point of the curve trajectory;

[0141] A position information determining unit 902, used to determine the position information of each key point on the curve track;

[0142] The attribute value determination unit 903 is used to determine the point type of each key point and obtain the attribute value of each key point according to the point type;

[0143] The drawing unit 904 is used to determine the profile parameters and automatically draw according to the profile parameters, location information, point type and attribute values ​​to obtain a drilling profile.

[0144] In a possible implementation, the key point selection unit 901 may be configured to perform the following steps:

[0145] Determine the starting point of the curve trajectory;

[0146] Determine the end point of the curve trajectory;

[0147] Randomly select multiple points between the starting point and the end point;

[0148] Use the start point, end point, and multiple points as key points to pick on the curve trajectory.

[0149] In a possible implementation, the position information of each key point on the curve trajectory includes: the curve length from each key point to the starting point.

[0150] In a possible implementation, the point types include: a curve starting point, a curve end point, a contour point, a longitude and latitude grid point, a fault point, a tunnel point, or an electrical anomaly area point.

[0151] In a possible implementation, the attribute value determining unit 903 may be configured to perform the following steps:

[0152] If the point type of a key point is the starting point of a curve, the elevation value of the starting point of the curve is determined as the attribute value of the key point;

[0153] If the point type of a key point is a curve end point, the elevation value of the curve end point is determined as the attribute value of the key point;

[0154] If the point type of a key point is a contour point, the elevation value of the contour point is determined to be the attribute value of the key point;

[0155] If the point type of a key point is a longitude and latitude grid point, the horizontal coordinate or vertical coordinate of the longitude and latitude grid point in the geodetic coordinate system is determined as the attribute value of the key point;

[0156] If the point type of a key point is a fault point, the text value corresponding to the fault point is determined to be the attribute value of the key point;

[0157] If the point type of a key point is a lane point, the text value corresponding to the lane point is determined to be the attribute value of the key point;

[0158] If the point type of a key point is an electrical anomaly point, the text value corresponding to the electrical anomaly point is determined to be the attribute value of the key point.

[0159] In a possible implementation, the section parameters include: the added distance on the left side of the section, the added distance on the right side of the section, the section start elevation, the section end elevation, the section line spacing, and the annotation font height.

[0160] In a possible implementation, the drawing unit 904 may be configured to perform the following steps:

[0161] Specify the drawing base point;

[0162] Automatically draw based on the drawing base point according to the section parameters, location information, point type and attribute value to obtain the basic section graphics;

[0163] The basic profile figure is processed by connecting contour points, drawing stratum structure or drawing fault structure to obtain a borehole profile.

[0164] Fig.10 is a schematic diagram of a terminal provided by an embodiment of the present invention. Fig.10 As shown, the terminal 10 of this embodiment includes: a processor 100, a memory 101, and a computer program 102 stored in the memory 101 and executable on the processor 100. When the processor 100 executes the computer program 102, the steps in the above-mentioned method for automatically drawing the curved trajectory directional drilling profile are implemented, for example Figure 1 Alternatively, when the processor 100 executes the computer program 102, the functions of each unit in the above-mentioned device embodiments are realized, for example, Fig. 9 The functions of units 901 to 904 are shown.

[0165] Exemplarily, the computer program 102 may be divided into one or more units, which are stored in the memory 101 and executed by the processor 100 to implement the present invention. The one or more units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program 102 in the terminal 10. For example, the computer program 102 may be divided into Fig. 9 The key point selection unit, position information determination unit, attribute value determination unit, and drawing unit are shown.

[0166] The terminal 10 may be a computer. The terminal 10 may include, but is not limited to, a processor 100 and a memory 101. Those skilled in the art will appreciate that Fig.10 It is only an example of the terminal 10 and does not constitute a limitation on the terminal 10. The terminal 10 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal may also include input and output devices, network access devices, buses, etc.

[0167] The processor 100 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0168] The memory 101 may be an internal storage unit of the terminal 10, such as a hard disk or memory of the terminal 10. The memory 101 may also be an external storage device of the terminal 10, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (FlashCard), etc. equipped on the terminal 10. Further, the memory 101 may also include both an internal storage unit of the terminal 10 and an external storage device. The memory 101 is used to store the computer program and other programs and data required by the terminal. The memory 101 may also be used to temporarily store data that has been output or is to be output.

[0169] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0170] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0171] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0172] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminals and methods can be implemented in other ways. For example, the device / terminal embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0173] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0174] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0175] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned automatic drawing method of each curved trajectory directional drilling profile can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practices in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practices, computer-readable media does not include electrical carrier signals and telecommunication signals.

[0176] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for automatically drawing a profile of a curved trajectory directional drilling, characterized in that: include: Selecting key points on the curve trajectory, wherein the key points include a starting point, an end point, and a plurality of points between the starting point and the end point of the curve trajectory; Determine the position information of each key point on the curve trajectory; Determine the point type of each key point, and obtain the attribute value of each key point according to the point type; Determine profile parameters, and automatically draw according to the profile parameters, the location information, the point type and the attribute value to obtain a drilling profile; The point types include: curve starting point, curve end point, contour point, longitude and latitude grid point, fault point, tunnel point or electrical abnormal area point; The obtaining of the attribute value of each key point according to the point type comprises: If the point type of a key point is the starting point of a curve, the elevation value of the starting point of the curve is determined as the attribute value of the key point; If the point type of a key point is the end point of a curve, the elevation value of the end point of the curve is determined as the attribute value of the key point; If the point type of a key point is a contour point, the elevation value of the contour point is determined to be the attribute value of the key point; If the point type of a key point is a longitude and latitude grid point, the horizontal coordinate or vertical coordinate of the longitude and latitude grid point in the geodetic coordinate system is determined as the attribute value of the key point; If the point type of a key point is a fault point, the text value corresponding to the fault point is determined to be the attribute value of the key point; If the point type of a key point is a lane point, the text value corresponding to the lane point is determined to be the attribute value of the key point; If the point type of a key point is an electrical anomaly point, the text value corresponding to the electrical anomaly point is determined to be the attribute value of the key point.

2. The method for automatically drawing a profile of a curved trajectory directional drilling according to claim 1, characterized in that: The step of selecting key points on the curve trajectory includes: Determining a starting point of the curved trajectory; Determining an end point of the curved trajectory; Randomly select a plurality of points between the starting point and the end point; The starting point, the end point and the multiple points are selected as key points on the curve trajectory.

3. The method for automatically drawing a profile of a curved trajectory directional drilling according to claim 1, characterized in that: The position information of each key point on the curve trajectory includes: the curve length of each key point from the starting point.

4. The method for automatically drawing a profile of a curved trajectory directional drilling according to any one of claims 1 to 3, characterized in that: The profile parameters include: Add distance on the left side of the section, add distance on the right side of the section, section start elevation, section end elevation, section line spacing and dimension font height.

5. The method for automatically drawing a profile of a curved trajectory directional drilling according to any one of claims 1 to 3, characterized in that: The step of automatically drawing the borehole profile according to the profile parameters, the location information, the point type and the attribute value comprises: Specify the drawing base point; Automatically draw based on the drawing base point according to the section parameters, the position information, the point type and the attribute value to obtain a basic section figure; The basic profile figure is processed by connecting contour points, drawing stratum structure or drawing fault structure to obtain a borehole profile.

6. An automatic drawing device for a curved trajectory directional drilling profile, characterized in that: include: A key point selection unit, used to select key points on the curve trajectory, wherein the key points include a starting point, an end point, and a plurality of points between the starting point and the end point of the curve trajectory; A position information determining unit, used to determine the position information of each key point on the curve trajectory; An attribute value determination unit, used to determine the point type of each key point and obtain the attribute value of each key point according to the point type; A drawing unit, used for determining profile parameters, and automatically drawing according to the profile parameters, the location information, the point type and the attribute value to obtain a drilling profile; The point types include: curve starting point, curve end point, contour point, longitude and latitude grid point, fault point, tunnel point or electrical abnormal area point; The obtaining of the attribute value of each key point according to the point type comprises: If the point type of a key point is the starting point of a curve, the elevation value of the starting point of the curve is determined as the attribute value of the key point; If the point type of a key point is the end point of a curve, the elevation value of the end point of the curve is determined as the attribute value of the key point; If the point type of a key point is a contour point, the elevation value of the contour point is determined to be the attribute value of the key point; If the point type of a key point is a longitude and latitude grid point, the horizontal coordinate or vertical coordinate of the longitude and latitude grid point in the geodetic coordinate system is determined as the attribute value of the key point; If the point type of a key point is a fault point, the text value corresponding to the fault point is determined to be the attribute value of the key point; If the point type of a key point is a lane point, the text value corresponding to the lane point is determined to be the attribute value of the key point; If the point type of a key point is an electrical anomaly point, the text value corresponding to the electrical anomaly point is determined to be the attribute value of the key point.

7. A terminal 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 processor implements the steps of the method for automatically drawing a curved trajectory directional drilling profile as described in any one of claims 1 to 5 above.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for automatically drawing a curved trajectory directional drilling profile as described in any one of claims 1 to 5 above are implemented.

Citation Information

Patent Citations

  • Geological section map online generation method based on nonlinear fitting control

    CN106484943A

  • Three-dimensional geological modeling method, device and equipment and storage medium

    CN111986321A