AutoCAD-based wind rose diagram drawing and calling method and system
By establishing and managing wind rose picture tiles in AutoCAD and entering historical meteorological data into block characteristics tables, the problem of inconcentration and difficulty in reusing wind rose picture data is solved, and centralized management and efficient utilization of wind rose picture data is realized.
Patent Information
- Application Number
- CN202311088691.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-28
- Publication Date
- 2025-02-28
Smart Images

Figure CN119538346A_ABST
Abstract
Description
Background Art
[0002] Wind rose diagrams are widely used in industrial layout, engineering design, urban planning, etc. After a long period of accumulation, design units have obtained wind rose diagram data from many regions, but these data are often scattered in different projects, without efficient centralized management, and inconvenient for reuse. When starting a new project in a certain area, even if there is a wind rose diagram in the area, it is difficult to find the existing wind rose diagram data, and you have to collect the wind rose diagram data again, which delays the time and energy that can be saved. Some professional software has accumulated some wind rose diagram data, but the number is very small, and it is difficult for users to add their own wind roses, and it is difficult to centrally manage and reuse the existing wind rose diagrams.
[0003] In order to centrally and conveniently manage wind rose data, facilitate reuse, and start design work as early as possible, it is necessary to develop a technology that can easily and quickly add, modify, and call wind rose data and improve the method of drawing wind rose diagrams. Summary of the invention
[0004] In order to solve the above-mentioned problems in the prior art, namely, the problem that the wind rose diagram is difficult to reuse and the management of wind rose diagram data is not centralized and inconvenient, the present invention provides a method and device for drawing and calling a wind rose diagram based on AutoCAD, the method comprising:
[0005] Step S100, establishing a standard initial wind rose diagram through AutoCAD;
[0006] Step S200, setting preset actions and attribute parameters for the standard initial wind rose diagram to obtain a standard wind rose diagram block;
[0007] Step S300, obtaining historical meteorological data of various places;
[0008] Step S400, inputting the historical meteorological data of various places into the standard wind rose diagram block in the form of a block characteristic table, generating wind rose diagrams of multiple regions and wind rose diagrams corresponding to the wind rose diagrams. Figure 1 a corresponding index label;
[0009] Step S500, calling the target wind rose diagram by selecting the index tag;
[0010] In some preferred embodiments, the step S100 specifically includes:
[0011] Step S110, drawing a calm wind mark circle;
[0012] Step S120, drawing a closed polyline of a regular hexadecagon at a position greater than the radius of the calm wind mark circle with the center of the calm wind mark circle as the center;
[0013] Step S130, connecting the vertices of the closed polyline of the regular hexadecagon with the center of the calm wind mark circle, wherein the connecting lines are direction lines;
[0014] Step S140, setting the part of the direction line within the calm wind mark circle as the inner direction line, and setting the part of the direction line outside the calm wind mark circle as the outer direction line, to obtain a standard initial wind rose diagram.
[0015] In some preferred embodiments, before step S200, the method further includes adding a calm wind frequency mark, a direction mark and a region mark to the standard initial wind rose diagram, specifically including:
[0016] Add the calm wind frequency mark C at the center of the standard initial wind rose diagram;
[0017] Add the true north direction mark N at the 90° direction of the standard initial wind rose diagram;
[0018] Add region name label at 270° direction of standard initial wind rose diagram.
[0019] In some preferred embodiments, the step S200 specifically includes:
[0020] Step S210, based on the standard initial wind rose diagram, adding linear parameters with vertices of a closed polyline of a regular hexadecagon;
[0021] Step S220, adding a stretching action to the linear parameter so that the vertices can move back and forth on the inner direction line, and the lines between adjacent vertices moving back and forth form a closed polyline of the dynamic hexadecagon.
[0022] In some preferred embodiments, the linear parameters include the linear parameter values to be input, and the names of E, ENE, NE, NNE, N, NNW, NW, WNW, W, WSW, SW, SSW, S, SSE, SE and ESE are set for the vertices of the closed polyline of the regular hexadecagon in a counterclockwise order starting from the 0° direction.
[0023] In some preferred implementations, the step S400 specifically includes:
[0024] Step S410, selecting a standard wind rose diagram block to be set as a current wind rose diagram block, setting an initial block characteristic table and setting an attribute column in the current wind rose diagram block;
[0025] The attribute columns include: linear parameters of 16 directions, calm wind frequency attributes and region name attributes;
[0026] Step S420, creating a new string type user parameter in the initial block characteristic table, the user parameter being the province name, and obtaining a standard block characteristic table;
[0027] Step S430, inputting historical meteorological data of the first region into the standard block characteristic table to obtain a wind rose diagram of the first region;
[0028] Step S440, repeating step S430 until the historical meteorological data of various places are traversed to obtain the wind rose diagram of the historical meteorological data of various places. In some preferred embodiments, the block characteristic table includes the numerical values of multiple linear parameters, the calm wind frequency identifier, the region name identifier, and the grouped string type user parameters;
[0029] The character string user parameter includes an index tag for setting a group according to a region name identifier.
[0030] In some preferred embodiments, the index tag calling method includes:
[0031] Set up an index selection menu or an index selection menu shortcut in the operation interface;
[0032] Select the index label of the target wind rose diagram by selecting it step by step.
[0033] Another aspect of the present invention provides a wind rose diagram drawing and calling system based on AutoCAD, the system comprising:
[0034] Standard initial wind rose diagram establishment module: configured to establish a standard initial wind rose diagram through AutoCAD;
[0035] A standard wind rose diagram block acquisition module is configured to set preset actions and attribute parameters for the standard initial wind rose diagram to obtain a standard wind rose diagram block;
[0036] Local historical meteorological data acquisition module: configured to acquire local historical meteorological data;
[0037] The module for generating wind rose diagrams and corresponding index labels for target areas based on block characteristic tables is configured to input the historical meteorological data of various places into the standard wind rose diagram block in the form of block characteristic tables to generate wind rose diagrams and corresponding index labels for multiple areas. Figure 1 a corresponding index label;
[0038] Wind rose diagram calling module: configured to call the target wind rose diagram by selecting the index tag.
[0039] Beneficial effects of the present invention:
[0040] (1) The present invention can effectively realize the centralized management of wind rose data;
[0041] (2) The present invention provides a technical achievement for the reuse of wind rose diagrams;
[0042] (3) The present invention reduces the time and effort of repeatedly collecting wind rose data. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0044] Figure 1 It is a flow chart of the method of drawing and calling the wind rose diagram based on AutoCAD;
[0045] Figure 2 It is a standard wind rose template block drawn by the drawing method of the present invention;
[0046] Figure 3 It is a schematic diagram of preset actions for controlling the shape of a wind rose drawn by the drawing method of the present invention;
[0047] Figure 4 It is a schematic diagram of the placement position of the block characteristic table of the present invention;
[0048] Figure 5 is a schematic diagram of adding meteorological data to the block characteristic table in the present invention;
[0049] Figure 6 It is a schematic diagram of adding provincial and regional locations to the block characteristic table in the present invention;
[0050] Figure 7 It is a data table that uses the principle of dynamic blocks to save the wind rose diagram data of various places;
[0051] Figure 8 It is to call the wind rose switching interface diagram. DETAILED DESCRIPTION
[0052] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0053] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0054] The present invention provides a method for drawing and calling a wind rose diagram based on AutoCaAD, comprising:
[0055] Step S100, establishing a standard initial wind rose diagram through AutoCAD;
[0056] Step S200, setting preset actions and attribute parameters for the standard initial wind rose diagram to obtain a standard wind rose diagram block;
[0057] Step S300, obtaining historical meteorological data of various places;
[0058] Step S400, inputting the historical meteorological data of various places into the standard wind rose diagram block in the form of a block characteristic table, generating wind rose diagrams of multiple regions and wind rose diagrams corresponding to the wind rose diagrams. Figure 1 a corresponding index label;
[0059] Step S500, calling the target wind rose diagram by selecting the index tag.
[0060] In order to more clearly illustrate the present invention a wind rose diagram drawing and calling method based on AutoCAD, the following is combined with Figure 1 Each step in the embodiment of the present invention is described in detail.
[0061] Step S100, establishing a standard initial wind rose diagram through AutoCAD;
[0062] In this embodiment, the step S100 is as follows: Figure 2 As shown, specifically including:
[0063] Step S110, drawing a calm wind mark circle;
[0064] Step S120, drawing a closed polyline of a regular hexadecagon at a position greater than the radius of the calm wind mark circle with the center of the calm wind mark circle as the center;
[0065] Step S130, connecting the vertices of the closed polyline of the regular hexadecagon with the center of the calm wind mark circle, wherein the connecting lines are direction lines;
[0066] Step S140, setting the part of the direction line within the calm wind mark circle as the inner direction line, and setting the part of the direction line outside the calm wind mark circle as the outer direction line, to obtain a standard initial wind rose diagram.
[0067] In this embodiment, before step S200, the step of adding a calm wind frequency mark, a direction mark and a region mark to the standard initial wind rose diagram is further included, specifically including:
[0068] Add the calm wind frequency mark C at the center of the standard initial wind rose diagram;
[0069] Add the true north direction mark N at the 90° direction of the standard initial wind rose diagram;
[0070] Add region name label at 270° direction of standard initial wind rose diagram.
[0071] Step S200, setting preset actions and attribute parameters for the standard initial wind rose diagram to obtain a standard wind rose diagram block;
[0072] In this embodiment, the step S200 is as follows: Figure 3 As shown, specifically including:
[0073] Step S210, based on the standard initial wind rose diagram, adding linear parameters with vertices of a closed polyline of a regular hexadecagon;
[0074] Step S220, adding a stretching action to the linear parameter so that the vertices can move back and forth on the inner direction line, and the connecting lines between adjacent vertices moving back and forth form a closed polyline of the dynamic hexadecagon. In this embodiment, the linear parameters include the linear parameter values to be input, and the names of E, ENE, NE, NNE, N, NNW, NW, WNW, W, WSW, SW, SSW, S, SSE, SE and ESE are set for the vertices of the closed polyline of the regular hexadecagon in a counterclockwise order starting from the 0° direction.
[0075] Step S300, obtaining historical meteorological data of various places;
[0076] Wind rose diagrams are widely used in industrial layout, engineering design, urban planning, etc. After a long period of accumulation, the design unit has obtained wind rose diagram data from many regions, including:
[0077] Longitude, latitude, wind speed level, E frequency, ENE frequency, NE frequency, NNE frequency, N frequency, NNW frequency, NW frequency, WNW frequency, W frequency, WSW frequency, SW frequency, SSW frequency, S frequency, SSE frequency, SE frequency, ESE frequency, static frequency, average wind speed, wind speed standard deviation, average wind direction, total observation times and region name.
[0078] Step S400, inputting the historical meteorological data of various places into the standard wind rose diagram block in the form of a block characteristic table, generating wind rose diagrams of multiple regions and wind rose diagrams corresponding to the wind rose diagrams. Figure 1 a corresponding index label;
[0079] In this embodiment, the step S400 is as follows: Figure 4-Figure 7 As shown, specifically including:
[0080] Step S410, selecting a standard wind rose diagram block to be set as the current wind rose diagram block, setting an initial block characteristic table and setting an attribute column in the current wind rose diagram block; Figure 4 As shown, the square under "City" in the figure is the added block property table, which includes the north position, north angle and place name position;
[0081] The attribute columns include: linear parameters of 16 directions, calm wind frequency attributes and region name attributes; Figure 5 As shown, in the initial block characteristics, 16 linear parameter columns, calm wind frequency attribute columns and city place name columns are set;
[0082] Step S420, creating a new string type user parameter in the initial block characteristic table, the user parameter is the province name, and obtaining a standard block characteristic table; Figure 6 As shown, there is an additional province column in the standard characteristics table;
[0083] Step S430, inputting the historical meteorological data of the first region into the standard block characteristic table to obtain the wind rose diagram of the first region; Figure 7 As shown, fill in the collected regional meteorological data in sequence according to the contents of the table header;
[0084] Step S440, repeating step S430 until the historical meteorological data of various places are traversed to obtain the wind rose diagram of the historical meteorological data of various places. In this embodiment, the block characteristic table includes the numerical values of multiple linear parameters, the calm wind frequency identifier, the region name identifier, and the grouped string type user parameters;
[0085] The character string user parameter includes an index tag for setting a group according to a region name identifier.
[0086] In this embodiment, the index tag, such as Figure 8 As shown, the calling method includes:
[0087] Set up an index selection menu or an index selection menu shortcut in the operation interface;
[0088] Select the index label of the target wind rose diagram by selecting it step by step;
[0089] like Figure 8 As shown, select Hunan Province in the first-level selection column and Changde City in the second-level selection column to switch to calling the wind rose diagram of this area.
[0090] The second embodiment of the present invention is a wind rose diagram drawing and calling device based on AutoCAD, which specifically includes:
[0091] Standard initial wind rose diagram establishment module: configured to establish a standard initial wind rose diagram through AutoCAD;
[0092] A standard wind rose diagram block acquisition module is configured to set preset actions and attribute parameters for the standard initial wind rose diagram to obtain a standard wind rose diagram block;
[0093] Local historical meteorological data acquisition module: configured to acquire local historical meteorological data;
[0094] The module for generating wind rose diagrams and corresponding index labels for target areas based on block characteristic tables is configured to input the historical meteorological data of various places into the standard wind rose diagram block in the form of block characteristic tables to generate wind rose diagrams and corresponding index labels for multiple areas. Figure 1 a corresponding index label;
[0095] Wind rose diagram calling module: configured to call the target wind rose diagram by selecting the index tag.
[0096] It should be noted that the above embodiment provides a wind rose diagram drawing and calling system based on AutoCAD, which is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the modules or steps in the embodiments of the present invention can be decomposed or combined. For example, the modules in the above embodiments can be combined into one module, or further divided into multiple sub-modules to complete all or part of the functions described above. The names of the modules and steps involved in the embodiments of the present invention are only for distinguishing the modules or steps, and are not regarded as improper limitations of the present invention.
[0097] Those skilled in the art should be able to appreciate that the modules and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two, and the programs corresponding to the software modules and method steps can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or any other form of storage medium known in the technical field. In order to clearly illustrate the interchangeability of electronic hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in electronic hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0098] Although the various steps in the above embodiment are described in the above-mentioned order, those skilled in the art can understand that in order to achieve the effect of this embodiment, different steps do not have to be executed in such an order. They can be executed simultaneously (in parallel) or in a reverse order. These simple changes are within the scope of protection of the present invention.
[0099] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process and related instructions of the system described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0100] The terms "first", "second", etc. are used to distinguish similar objects rather than to describe or indicate a particular order or sequence.
[0101] The term "comprise" or any other similar term is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus / device that includes a list of elements includes not only those elements but also other elements not expressly listed, or also includes elements inherent to such process, method, article, or apparatus / device.
[0102] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
Claims
1. A method for drawing and calling a wind rose diagram based on AutoCAD, characterized in that: The method comprises: Step S100, establishing a standard initial wind rose diagram through AutoCAD; Step S200, setting preset actions and attribute parameters for the standard initial wind rose diagram to obtain a standard wind rose diagram block; Step S300, obtaining historical meteorological data of various places; Step S400, inputting the historical meteorological data of various regions into the standard wind rose diagram block in the form of a block characteristic table, generating wind rose diagrams of multiple regions and index labels corresponding to the wind rose diagrams one by one; Step S500, calling the target wind rose diagram by selecting the index tag.
2. The wind rose diagram based on AutoCAD according to claim 1 is drawn and called, characterized in that, The step S100 specifically includes: Step S110, drawing a calm wind mark circle; Step S120, drawing a closed polyline of a regular hexadecagon at a position greater than the radius of the calm wind mark circle with the center of the calm wind mark circle as the center; Step S130, connecting the vertices of the closed polyline of the regular hexadecagon with the center of the calm wind mark circle, wherein the connecting lines are direction lines; Step S140, setting the part of the direction line within the calm wind mark circle as the inner direction line, and setting the part of the direction line outside the calm wind mark circle as the outer direction line, to obtain a standard initial wind rose diagram.
3. The wind rose diagram based on AutoCAD according to claim 2 is drawn and called, wherein: Before step S200, the method further includes the steps of adding a calm wind frequency mark, a direction mark and a region mark to the standard initial wind rose diagram, specifically including: Add the calm wind frequency mark C at the center of the standard initial wind rose diagram; Add the true north direction mark N at the 90° direction of the standard initial wind rose diagram; Add region name label at 270° direction of standard initial wind rose diagram.
4. The wind rose diagram drawing and calling method based on AutoCAD according to claim 2, characterized in that, The step S200 specifically includes: Step S210, based on the standard initial wind rose diagram, adding linear parameters with vertices of a closed polyline of a regular hexadecagon; Step S220, adding a stretching action to the linear parameter so that the vertices can move back and forth on the inner direction line, and the connecting lines between adjacent vertices moving back and forth form a closed polyline of the dynamic hexadecagon.
5. The wind rose diagram drawing and calling method based on AutoCAD according to claim 4, characterized in that, The linear parameters include the linear parameter values to be input, and the names of E, ENE, NE, NNE, N, NNW, NW, WNW, W, WSW, SW, SSW, S, SSE, SE and ESE set for the vertices of the closed polyline of the regular hexadecagon in a counterclockwise order starting from the 0° direction.
6. The wind rose diagram drawing and calling method based on AutoCAD according to claim 1, characterized in that, The step S400 specifically includes: Step S410, selecting a standard wind rose diagram block to be set as a current wind rose diagram block, setting an initial block characteristic table and setting an attribute column in the current wind rose diagram block; The attribute columns include: linear parameters of 16 directions, calm wind frequency attributes and region name attributes; Step S420, creating a new string type user parameter in the initial block characteristic table, wherein the user parameter is a province name, and obtaining a standard block characteristic table; Step S430, inputting historical meteorological data of the first region into the standard block characteristic table to obtain the wind rose diagram of the first region; Step S440, repeating step S430 until the historical meteorological data of various places are traversed to obtain the wind rose diagram of the historical meteorological data of various places.
7. The wind rose diagram drawing and calling method based on AutoCAD according to claim 1, characterized in that, The block characteristic table includes numerical values of a plurality of linear parameters, a calm wind frequency identifier, a region name identifier, and a grouped character string type user parameter; The character string user parameter includes an index tag for setting a group according to a region name identifier.
8. The wind rose diagram drawing and calling method based on AutoCAD according to claim 1, characterized in that, The index tag, calling method includes: Set up an index selection menu or an index selection menu shortcut in the operation interface; Select the index label of the target wind rose diagram by selecting it step by step.
9. A wind rose diagram drawing and calling system based on AutoCAD, characterized in that: The system comprises: Standard initial wind rose diagram establishment module: configured to establish a standard initial wind rose diagram through AutoCAD; A standard wind rose diagram block acquisition module is configured to set preset actions and attribute parameters for the standard initial wind rose diagram to obtain a standard wind rose diagram block; Local historical meteorological data acquisition module: configured to acquire local historical meteorological data; A module for generating wind rose diagrams and corresponding index labels for target areas based on a block characteristic table: configured to input the historical meteorological data of various places into the standard wind rose diagram block in the form of a block characteristic table, and generate wind rose diagrams of multiple areas and index labels corresponding to the wind rose diagrams one by one; Wind rose diagram calling module: configured to call the target wind rose diagram by selecting the index tag.