A quick layout method for photovoltaic plant grounding grid based on AutoCAD

By using AutoCAD secondary development tools and scripts, the grounding grid of the photovoltaic plant area is automatically drawn, which solves the problem of high repetition caused by manual drawing in the layout of the grounding grid of the photovoltaic plant area, and realizes fast and accurate grounding grid layout and material statistics.

CN120087006BActive Publication Date: 2025-11-11CONCORD POWER CONSULTING&DESIGN(BEIJING) CORP LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510118305.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-24
Publication Date
2025-11-11
Estimated Expiration
2045-01-24

AI Technical Summary

Technical Problem

During the layout of the grounding grid in a photovoltaic plant, designers need to manually draw the equipment connection lines and the external horizontal grounding grid, resulting in a large workload and high repetition, making it difficult to improve design efficiency and quality.

Method used

By using AutoCAD-based secondary development tools and scripts, the system automatically draws horizontal and vertical grounding electrodes and generates a bill of materials by allowing users to select the photovoltaic module area using the mouse. This reduces manual drawing steps and improves design efficiency.

Benefits of technology

It enables the rapid deployment of grounding grids in photovoltaic plant areas, reduces repetitive work for designers, improves design quality and efficiency, and ensures distance accuracy and automated material statistics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120087006B_ABST
    Figure CN120087006B_ABST
Patent Text Reader

Abstract

This disclosure relates to a rapid arrangement method for a photovoltaic (PV) plant grounding grid based on AutoCAD, comprising the following steps: S1 Start; S2 Draw the horizontal grounding grid: In AutoCAD, input the relevant data of the material of the horizontal grounding grid of the PV plant, the distance between the column and the outer edge of the module, and the distance between the outer edge of the module and the outer edge of the module frame. Then, select the range of the PV modules, calculate the coordinates of the four corners of the PV modules, and finally draw the horizontal grounding grid by drawing polylines; S3 Arrange the vertical grounding electrodes: By inputting the material of the vertical grounding electrodes and the spacing distance, select the starting position of the vertical grounding electrodes, and thus arrange the vertical grounding electrodes; S4 Connect the inverter grounding wire; S5 Generate a material table: Set the parameters for statistical analysis, select the grounding grid area to be analyzed, read the data in the grounding grid area, and add it to the grounding grid area as the corresponding identification information, thereby generating a statistical material table; S6 End: End the arrangement work.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of photovoltaic engineering technology, and more specifically, to a method for rapid layout of grounding grids in photovoltaic plant areas based on AutoCAD. Background Technology

[0002] In the layout of the grounding grid in a photovoltaic plant, there are a large number of photovoltaic modules and various arrangement methods. Designers need to manually draw the equipment connection lines, equipment grounding lines and the outer horizontal grounding grid section by section. For vertical grounding electrodes, they need to be arranged along the outer horizontal grounding grid at certain intervals, and the intervals need to be measured section by section. When generating the bill of materials, the material quantity needs to be counted separately according to different types of equipment. The workload is large and mostly repetitive. Designers urgently need to improve design efficiency and quality to shorten the design and drafting cycle.

[0003] Reducing the excessive repetitive workload of designers and improving work efficiency has become a pressing industry pain point. However, there are currently no relevant solutions on the market. Summary of the Invention

[0004] To address the aforementioned technical problems in related technologies, this invention proposes a rapid deployment method for photovoltaic plant grounding grids based on AutoCAD, which can overcome the above-mentioned shortcomings of existing technologies.

[0005] To achieve the above-mentioned technical objectives, the technical solution of the present invention is implemented as follows:

[0006] A method for rapid layout of grounding grid in photovoltaic power plants based on AutoCAD includes the following steps:

[0007] S1 begins: Select the photovoltaic plant area where a grounding grid needs to be installed;

[0008] S2 Drawing the Horizontal Grounding Grid: In AutoCAD, input the relevant data of the material of the horizontal grounding grid of the photovoltaic plant area, the distance between the column and the outer edge of the module, and the distance between the outer edge of the module and the outer edge of the module. Then select the range of the photovoltaic module, calculate the coordinates of the four corners of the photovoltaic module, and finally draw the horizontal grounding grid by drawing polylines. During the drawing of each polyline, the basic attributes of each polyline are stored in its corresponding XData.

[0009] The basic attributes include type and specifications (specifications refer to commonly used models such as galvanized flat steel-50X5).

[0010] The type is taken from the main grounding grid, equipment grounding wire, inverter grounding wire, vertical grounding electrode, equipment connection wire, etc.

[0011] XData represents extended entity data;

[0012] S3 Arrange vertical grounding electrodes: By inputting the material and spacing of the vertical grounding electrodes, the starting position of the vertical grounding electrodes is selected, thereby arranging the vertical grounding electrodes;

[0013] S4 Connect the inverter grounding wire: Input the material of the horizontal grounding grid and connect the inverter grounding wire;

[0014] S5 generates a material list: Set parameters to assist in statistics, select the grounding grid area to be counted, read the data in the grounding grid area, and add it to the grounding grid area as identification information to generate a statistical material list;

[0015] S6 End: End the setup work. All operations between S2 and S5 can be performed using AutoCAD. Through AutoCAD secondary development tools, scripts can also be used to assist in reading or drawing. Scripts can be implemented using existing technologies.

[0016] Preferably, step S2 includes the following sub-steps:

[0017] S2.1: Use the mouse to draw a rectangle encompassing the photovoltaic module. The rectangle represents the range of the photovoltaic module. Use the AutoCAD secondary development tool to read the maximum coordinates maxPt and minimum coordinates minPt of the rectangle. Calculate the four corner coordinates of the rectangle based on the maximum coordinates maxPt and minimum coordinates minPt, and use the four corner coordinates of the rectangle as the four corner coordinates of the photovoltaic module.

[0018] S2.1.1: After using the mouse to draw a rectangle encompassing the photovoltaic module, the rectangle represents the range of the photovoltaic module, and the AutoCAD secondary development tool reads the corresponding component list.

[0019] S2.1.2: Use AutoCAD secondary development tools to read the maximum coordinates maxPt(x,y) of the upper right corner and the minimum coordinates minPt(x,y) of the lower left corner of the rectangle; the width of the rectangle is denoted as yoffset; yoffset = maxPt.y - minPt.y;

[0020] S2.1.3: The coordinates of the four corners of the rectangle are (minPt.X, minPt.Y + yOffset), minPt, (maxPt.X, maxPt.Y - yOffset), and maxPt, respectively, which are taken as the four coordinates of the photovoltaic module, starting from the top left corner and moving counterclockwise.

[0021] S2.2: Draw polylines along the coordinate points of the outer edge of all photovoltaic modules to generate the outer horizontal grounding grid---that is, the main grounding grid, and write the basic attributes of the photovoltaic modules into the XData of this polyline;

[0022] S2.3: Based on the position of each photovoltaic module, select the modules at the left and right ends of each row, and draw the polyline of the device grounding wire according to the set outer edge distance of the module outer frame, and write the basic attributes into the XData of all such polylines;

[0023] S2.4: Based on the location of each photovoltaic module and the set distance between the column and the outer edge of the module, draw the equipment connection lines between the devices, and write the basic attributes into the XData of all polylines of this type;

[0024] S2.5: Combining the main grounding grid drawn in S2.2, the equipment grounding wires drawn in S2.3, and the equipment connection wires drawn in S2.4, the horizontal grounding grid is completed. The horizontal grounding grid includes the main grounding grid, equipment grounding wires, and equipment connection wires.

[0025] Preferably, in step S3, by clicking the starting position of the vertical grounding electrode with the mouse, the polyline of the vertical grounding electrode is drawn along the outer horizontal grounding grid at a set interval, thereby completing the arrangement of the vertical grounding electrode, and the basic attributes of the vertical grounding electrode are written into the XData of all such polylines.

[0026] Preferably, step S2.2 includes the following sub-steps:

[0027] S2.2.1: By extending the mouse outward along the coordinate points of the outer edge of the range of all photovoltaic modules—that is, by extending outward along the coordinate points of the outer edge of the rectangle representing the range of the photovoltaic modules—a new list of coordinates is obtained.

[0028] S2.2.2: Connect the coordinate points in the new coordinate list to draw a polyline, thereby generating the outer horizontal grounding grid -- the main grounding grid;

[0029] S2.2.3: Based on the distance between the outer frame of the photovoltaic module and its outer edge, draw multi-segment lines from the photovoltaic module to the outer horizontal grounding grid on the left and right sides of each row to generate all equipment grounding wires;

[0030] S2.2.4: Based on the distance of the column component from its outer edge in all photovoltaic modules, draw the polyline connecting each row of photovoltaic modules to generate the equipment connection line, and write the corresponding basic attributes and material model into the XData of the corresponding polyline.

[0031] Preferably, in step S4, the grounding wire connecting the inverter is drawn according to the material of the input horizontal grounding grid, and the corresponding basic attributes are written into the XData of all such polylines.

[0032] Preferably, the material of the horizontal grounding grid can be obtained through pre-setting.

[0033] Preferably, in step S5, parameters for assisting statistics are set, the grounding grid area to be statistically analyzed is selected, the data in the grounding grid area is read and grouped separately, the grouped data is used as labeling information, specific labeling positions are selected or set on the grounding grid area, and the labeling information is added to the corresponding labeling positions, thereby completing the generation of the statistical data table.

[0034] Preferably, step S5 includes the following sub-steps:

[0035] S5.1: Set parameters, including text width and drawing scale, then select the grounding grid area to be statistically analyzed, and read the XData data of all polylines within the grounding grid area;

[0036] S5.2: First, divide the XData data into type groups according to type, with each type corresponding to one type group;

[0037] S5.3: Then, according to the specifications and models, the length and number of each type of equipment in each type group are counted, thereby realizing the summarization and grouping of XData data;

[0038] S5.4: Finally, by selecting or setting the marked positions of the grounding grid area with the mouse, the data obtained after being summarized and grouped in S5.3 is added as marked information to the corresponding marked positions, thereby completing the generation of the statistical material table.

[0039] Preferably, in step S5, the labeling information includes equipment name, model specifications, unit, quantity, legend, and remarks.

[0040] Preferably, in S5.3, the length of each type of device is read using an AutoCAD secondary development tool.

[0041] Preferably, in S5.3, the number of devices of each type is calculated cumulatively by script or program.

[0042] Preferably, in step S5.4, the statistical material table can be generated by using a script or program to draw line segments as the table of the statistical material table, and then adding the text of each of the indicated information to the corresponding indicated position.

[0043] Preferably, in steps S1-S5, selection or box selection is performed in AutoCAD using a mouse, and reading is performed using a script or program.

[0044] XData Introduction: XData is widely used in CAD secondary development tools. It allows developers to flexibly add a certain amount of custom data to CAD database objects. This data is interpreted by the developers themselves; CAD does not concern itself with its meaning, but it must adhere to certain grouping rules. This data is called extended data (XData). Extended data is attached to entities in the form of "attachments." Extended data can be obtained or set through the XData property of the entity's DBObject class and its derived classes. An entity's extended data is created by the application. An entity's extended data can be one or more groups, each starting with a unique registered application name. XData data is similar to a dictionary, but this dictionary has one key and multiple values ​​(one or more groups). The key must follow DxfCode grouping rules, and the value must also use a pre-defined data format based on the selected group code.

[0045] The beneficial effects of this disclosure are as follows: Based on the AutoCAD secondary development tool, designers can quickly generate the layout of the horizontal grounding grid and vertical grounding electrodes simply by using the mouse to select the area where photovoltaic modules need to be arranged, without the need for manual drawing. Moreover, the outer edge distance of the horizontal grounding grid and the interval distance of the vertical grounding electrodes are arranged accurately according to the set length. When generating the bill of materials, the range to be counted is selected by using the mouse, and the material quantity is automatically counted and the bill of materials is generated, which greatly reduces the repetitive workload of designers and significantly improves the quality and efficiency of design. Attached Figure Description

[0046] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0047] Figure 1 This is a flowchart of a method for rapid layout of a photovoltaic plant grounding grid based on AutoCAD, provided in an embodiment of the present invention.

[0048] Figure 2 This is a schematic diagram of the input parameter interface for automatically drawing a horizontal grounding grid in an embodiment of the present invention.

[0049] Figure 3 This is a schematic diagram of the input parameter interface for manually drawing and marking a horizontal grounding grid in an embodiment of the present invention.

[0050] Figure 4 This is a schematic diagram of the input parameter interface for arranging vertical grounding electrodes in an embodiment of the present invention.

[0051] Figure 5 This is a schematic diagram of the input parameter interface for manually marking the inverter grounding wire in an embodiment of the present invention.

[0052] Figure 6 This is a schematic diagram of the input parameter interface for generating a material table in an embodiment of the present invention.

[0053] Figure 7 This is a partial schematic diagram of the grounding grid layout in a photovoltaic plant area according to an embodiment of the present invention.

[0054] Figure 8 This is a schematic representation of materials in the embodiments of the present invention. Detailed Implementation

[0055] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0056] like Figure 1-8 As shown, in order to facilitate understanding of the above technical solutions of the present invention, the following describes the above technical solutions of the present invention in detail through specific usage methods.

[0057] A method for rapid layout of grounding grid in photovoltaic power plants based on AutoCAD includes the following steps:

[0058] S1 begins: Select the photovoltaic plant area where a grounding grid needs to be installed;

[0059] S2 Drawing the Horizontal Grounding Grid: In AutoCAD, input the relevant data of the material of the horizontal grounding grid of the photovoltaic plant area, the distance between the column and the outer edge of the module, and the distance between the outer edge of the module and the outer edge of the module. Then select the range of the photovoltaic module, calculate the coordinates of the four corners of the photovoltaic module, and finally draw the horizontal grounding grid by drawing polylines. During the drawing of each polyline, the basic attributes of each polyline are stored in its corresponding XData.

[0060] The basic attributes include type and specifications (specifications refer to commonly used models such as galvanized flat steel-50X5).

[0061] The type is taken from the main grounding grid, equipment grounding wire, inverter grounding wire, vertical grounding electrode, equipment connection wire, etc.

[0062] XData represents extended entity data;

[0063] S3 Arrange vertical grounding electrodes: By inputting the material and spacing of the vertical grounding electrodes, the starting position of the vertical grounding electrodes is selected, thereby arranging the vertical grounding electrodes;

[0064] S4 Connect the inverter grounding wire: Input the material of the horizontal grounding grid and connect the inverter grounding wire;

[0065] S5 generates a material list: Set parameters to assist in statistics, select the grounding grid area to be counted, read the data in the grounding grid area, and add it to the grounding grid area as identification information to generate a statistical material list;

[0066] S6 End: End the setup work. All operations between S2 and S5 can be performed using AutoCAD. Through AutoCAD secondary development tools, scripts can also be used to assist in reading or drawing. Scripts can be implemented using existing technologies.

[0067] In one embodiment, step S2 includes the following sub-steps:

[0068] S2.1: Use the mouse to draw a rectangle encompassing the photovoltaic module. The rectangle represents the range of the photovoltaic module. Use the AutoCAD secondary development tool to read the maximum coordinates maxPt and minimum coordinates minPt of the rectangle. Calculate the four corner coordinates of the rectangle based on the maximum coordinates maxPt and minimum coordinates minPt, and use the four corner coordinates of the rectangle as the four corner coordinates of the photovoltaic module.

[0069] S2.1.1: After using the mouse to draw a rectangle encompassing the photovoltaic module, the rectangle represents the range of the photovoltaic module, and the AutoCAD secondary development tool reads the corresponding component list.

[0070] S2.1.2: Use AutoCAD secondary development tools to read the maximum coordinates maxPt(x,y) of the upper right corner and the minimum coordinates minPt(x,y) of the lower left corner of the rectangle; the width of the rectangle is denoted as yoffset; yoffset = maxPt.y - minPt.y;

[0071] S2.1.3: The coordinates of the four corners of the rectangle are (minPt.X, minPt.Y + yOffset), minPt, (maxPt.X, maxPt.Y - yOffset), and maxPt, respectively, which are taken as the four coordinates of the photovoltaic module, starting from the top left corner and moving counterclockwise.

[0072] S2.2: Draw polylines along the coordinate points of the outer edge of all photovoltaic modules to generate the outer horizontal grounding grid---that is, the main grounding grid, and write the basic attributes of the photovoltaic modules into the XData of this polyline;

[0073] S2.3: Based on the position of each photovoltaic module, select the modules at the left and right ends of each row, and draw the polyline of the device grounding wire according to the set outer edge distance of the module outer frame, and write the basic attributes into the XData of all such polylines;

[0074] S2.4: Based on the location of each photovoltaic module and the set distance between the column and the outer edge of the module, draw the equipment connection lines between the devices, and write the basic attributes into the XData of all polylines of this type;

[0075] S2.5: Combine the main grounding grid drawn in S2.2, the equipment grounding wire drawn in S2.3, and the equipment connection wire drawn in S2.4 to complete the drawing of the horizontal grounding grid.

[0076] In one embodiment, in step S3, by clicking the starting position of the vertical grounding electrode with the mouse, the polyline of the vertical grounding electrode is drawn along the outer horizontal grounding grid at a set interval, thereby completing the arrangement of the vertical grounding electrode, and the basic attributes of the vertical grounding electrode are written into the XData of all such polylines.

[0077] In one embodiment, S2.2 includes the following sub-steps:

[0078] S2.2.1: By extending the mouse outward along the coordinate points of the outer edge of the range of all photovoltaic modules—that is, by extending outward along the coordinate points of the outer edge of the rectangle representing the range of the photovoltaic modules—a new list of coordinates is obtained.

[0079] S2.2.2: Connect the coordinate points in the new coordinate list to draw a polyline, thereby generating the outer horizontal grounding grid -- the main grounding grid;

[0080] S2.2.3: Based on the distance between the outer frame of the photovoltaic module and its outer edge, draw multi-segment lines from the photovoltaic module to the outer horizontal grounding grid on the left and right sides of each row to generate all equipment grounding wires;

[0081] S2.2.4: Based on the distance of the column component from its outer edge in all photovoltaic modules, draw the polyline connecting each row of photovoltaic modules to generate the equipment connection line, and write the corresponding basic attributes and material model into the XData of the corresponding polyline.

[0082] In one embodiment, in step S4, the grounding wire connecting the inverter is drawn according to the material of the input horizontal grounding grid, and the corresponding basic attributes are written into the XData of all such polylines.

[0083] In one embodiment, the material of the horizontal grounding grid can be obtained through pre-setting.

[0084] In one embodiment, in step S5, parameters for statistical analysis are set, the grounding grid area to be analyzed is selected, the data in the grounding grid area is read and grouped, the grouped data is used as labeling information, a specific labeling position is selected or set in the grounding grid area, and the labeling information is added to the corresponding labeling position, thereby completing the generation of the statistical data table.

[0085] In one embodiment, step S5 includes the following sub-steps:

[0086] S5.1: Set parameters, including text width and drawing scale, then select the grounding grid area to be statistically analyzed, and read the XData data of all polylines within the grounding grid area;

[0087] S5.2: First, divide the XData data into type groups according to type, with each type corresponding to one type group;

[0088] S5.3: Then, according to the specifications and models, the length and number of each type of equipment in each type group are counted, thereby realizing the summarization and grouping of XData data;

[0089] S5.4: Finally, by selecting or setting the marked positions of the grounding grid area with the mouse, the data obtained after being summarized and grouped in S5.3 is added as marked information to the corresponding marked positions, thereby completing the generation of the statistical material table.

[0090] In one embodiment, in step S5, the identification information includes equipment name, model specifications, unit, quantity, legend, and remarks.

[0091] In one embodiment, in step S5.3, the length of each type of device is read using an AutoCAD secondary development tool.

[0092] In one embodiment, in step S5.3, the number of devices of each type is calculated cumulatively by a script or program.

[0093] In one embodiment, in step S5.4, the statistical material table can be generated by using a script or program to draw line segments as the table of the statistical material table, and then adding the text of each of the indicated information to the corresponding indicated position.

[0094] In one embodiment, in steps S1-S5, selection or box selection is performed in AutoCAD using a mouse, and reading is performed using a script or program.

[0095] The working principle of the following steps S2-S5 can be understood by referring to the accompanying drawings:

[0096] S2 Principle: Input the data of horizontal grounding grid material, column distance from the outer edge of the module and the outer edge distance of the module's outer frame, then select the range of photovoltaic modules, and the horizontal grounding grid will be automatically drawn.

[0097] S2.1 Principle: The coordinates of all photovoltaic modules are calculated based on the range of photovoltaic modules selected by the mouse. Figure 2 As shown, first input three parameters: horizontal grounding grid material, distance from the column to the outer edge of the module, and distance from the outer edge of the module frame to the outer edge. Then, use the mouse to select the range of photovoltaic modules where the horizontal grounding grid is to be laid. After the selection is completed, the coordinates of all selected modules are calculated by a self-made program.

[0098] S2.2 Principle: After extending the coordinate points of the outer edge of all components outward by a certain distance, a new coordinate list is obtained. Connect these coordinate points to draw polylines and generate the outer horizontal grounding grid. Based on the distance from the outer edge of the component, draw polylines from the left and right sides of each row of photovoltaic modules to the outer edge horizontal grounding grid to generate all equipment grounding wires. Based on the distance from the column to the outer edge of the component, draw polylines connecting the photovoltaic modules in each row to generate equipment connection lines. At the same time, write the attributes and material models into the XData of the corresponding polylines.

[0099] Based on the coordinates of all components calculated in S2.1, a script can be used to automatically draw polylines along the coordinates of the outer edges of all components, thus completing the automatic layout of the external horizontal grounding grid. For some polylines that need to be drawn manually, a script can be used to automatically draw polylines along the outer edges of all components, thus completing the automatic layout of the external horizontal grounding grid. Figure 3 After entering the parameters in the interface shown, you can draw the polyline manually, or you can use the script's marking function to automatically mark the drawn polyline as a horizontal ground wire. Of course, you can also do it all manually. You can set the specified color, layer, and width information for all generated polylines, and then write the corresponding attributes and model specifications into the polyline's XData.

[0100] S2.3 Principle: Based on the position of each photovoltaic module, the modules at the left and right ends of each row are selected. According to the set outer edge distance of the module, the polyline of the equipment grounding wire is automatically drawn, and the corresponding attributes are written into the XData of all such polylines. Based on the coordinates of all the modules calculated in S2.1, the modules at the left and right ends of each row are selected. According to the set outer edge distance of the module, the equipment grounding wire is automatically drawn using a self-made program. All generated polylines are set with specified colors, layers and width information, and the corresponding attributes and model specifications are written into the XData of this polyline.

[0101] S2.4 Principle: Based on the position of each photovoltaic module and the set distance between the column and the outer edge of the module, the connection lines between the devices are automatically drawn, and the corresponding attributes are written into the XData of all such polylines.

[0102] Based on the coordinates of all components calculated in S2.1, and according to the set distance between the column and the outer edge of the component, the self-made program automatically draws the connection lines between the devices. All generated polylines are set with specified colors, layers and width information, and then the corresponding attributes and model specifications are written into the XData of this polyline.

[0103] S3 Principle: Input the material and spacing of the vertical grounding electrode, select the starting position of the grounding electrode, and the vertical grounding electrode will be automatically arranged.

[0104] S3.1 Principle: As Figure 4 As shown, first set the material and spacing of the vertical grounding electrode. Then, click the starting point of the vertical grounding electrode on the horizontal grounding grid with the mouse. The program will draw the first circular polyline at this position. At the same time, set the color, width, layer and brightness information of the polyline. Then, write the material model and type information into the XData of this polyline.

[0105] S3.2 Principle: Starting from the position of the first vertical grounding electrode, the second grounding electrode, the third grounding electrode, and so on are drawn clockwise along the outer horizontal grounding grid at the set intervals until the distance between the nth grounding electrode and the first grounding electrode is less than the set interval. Each vertical grounding electrode is drawn as a circular polyline according to the method in S3.1, thereby completing the automatic arrangement of all vertical grounding electrodes.

[0106] S4 principle: Input grounding material and connect to the inverter's grounding wire.

[0107] like Figure 5As shown, first set the grounding material, then use the mouse to directly connect the inverter's grounding wire to complete the manual drawing of the inverter's grounding wire. Alternatively, the drawn line can be automatically marked as the inverter's grounding wire using the marking function of the custom program. All generated polylines are set with specified colors, layers, and width information, and then the corresponding attributes and model specifications are written into the XData of this polyline.

[0108] S5 Principle: Select the range of the statistical grounding grid, and automatically generate a material list based on the set parameters.

[0109] Specifically, such as Figure 6 As shown, you can first set the text width and drawing scale, then select the grounding grid range to be counted using the mouse. The custom program then reads all the XData data of the polylines, including attributes, specifications, etc., and summarizes and groups the length, quantity, and other information of each type of equipment. Finally, after selecting the placement location with the mouse, a material list is automatically generated, including equipment name, model specifications, unit, quantity, legend, and remarks. Figure 8 As shown.

[0110] In summary, through the unique design described above, this invention, based on AutoCAD secondary development tools, allows designers to quickly generate the layout of the horizontal grounding grid and vertical grounding electrodes simply by using the mouse to select the area where photovoltaic modules need to be arranged. This eliminates the need for manual drawing, and the outer edge distance of the horizontal grounding grid and the spacing distance of the vertical grounding electrodes are accurately arranged according to the set lengths. When generating the bill of materials, the designer can select the area to be counted with the mouse, and the material quantity will be automatically counted and the bill of materials generated. This greatly reduces the repetitive workload of designers and significantly improves the quality and efficiency of the design.

[0111] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for rapid layout of grounding grid in photovoltaic power plants based on AutoCAD, characterized in that, Includes the following steps: S1 begins: Select the photovoltaic plant area where a grounding grid needs to be installed; S2 Drawing the horizontal grounding grid: In AutoCAD, input the relevant data of the material of the horizontal grounding grid of the photovoltaic plant area, the distance between the column and the outer edge of the module, and the distance between the outer edge of the module and the outer edge of the module. Then select the range of the photovoltaic module, calculate the coordinates of the four corners of the photovoltaic module, and finally draw the horizontal grounding grid by drawing polylines. During the drawing of each polyline, the basic attributes of each polyline are stored in its corresponding XData. The basic attributes include type and specifications; The type is taken from the main grounding grid, equipment grounding wire, inverter grounding wire, vertical grounding electrode, and equipment connection wire. XData represents extended entity data; S3 Arrange vertical grounding electrodes: By inputting the material and spacing of the vertical grounding electrodes, the starting position of the vertical grounding electrodes is selected, thereby arranging the vertical grounding electrodes; S4 Connect the inverter grounding wire: Input the material of the horizontal grounding grid and connect the inverter grounding wire; S5 generates a material list: Set parameters to assist in statistics, select the grounding grid area to be counted, read the data in the grounding grid area, and add it to the grounding grid area as identification information to generate a statistical material list; S6 End: End of setup work.

2. The method for rapid deployment of grounding grid in photovoltaic plant areas as described in claim 1, characterized in that, S2 includes the following steps: S2.1: Use the mouse to draw a rectangle encompassing the photovoltaic module. The rectangle represents the range of the photovoltaic module. Use the AutoCAD secondary development tool to read the maximum coordinates maxPt and minimum coordinates minPt of the rectangle. Calculate the four corner coordinates of the rectangle based on the maximum coordinates maxPt and minimum coordinates minPt, and use the four corner coordinates of the rectangle as the four corner coordinates of the photovoltaic module. S2.1.1: After using the mouse to draw a rectangle encompassing the photovoltaic module, the rectangle represents the range of the photovoltaic module, and the AutoCAD secondary development tool reads the corresponding component list. S2.1.2: Use AutoCAD secondary development tools to read the maximum coordinates maxPt(x,y) of the upper right corner and the minimum coordinates minPt(x,y) of the lower left corner of the rectangle; the width of the rectangle is denoted as yoffset; yoffset = maxPt.y - minPt.y; S2.1.3: The coordinates of the four corners of the rectangle, starting from the top left corner and moving counterclockwise, are (minPt.X, minPt.Y + yOffset), minPt, (maxPt.X, maxPt.Y - yOffset), and maxPt), which serve as the four coordinates of the photovoltaic module; S2.2: Draw polylines along the coordinate points of the outer edge of all photovoltaic modules to generate the outer horizontal grounding grid, i.e. the main grounding grid. At the same time, write the basic attributes of the photovoltaic modules into the XData of this polyline. S2.3: Based on the position of each photovoltaic module, select the modules at the left and right ends of each row, and draw the polyline of the device grounding wire according to the set outer edge distance of the module outer frame, and write the basic attributes into the XData of all such polylines; S2.4: Based on the location of each photovoltaic module and the set distance between the column and the outer edge of the module, draw the equipment connection lines between the devices, and write the basic attributes into the XData of all polylines of this type; S2.5: Combine the main grounding grid drawn in S2.2, the equipment grounding wire drawn in S2.3, and the equipment connection wire drawn in S2.4 to complete the drawing of the horizontal grounding grid.

3. The method for rapid deployment of grounding grid in photovoltaic plant areas as described in claim 2, characterized in that, In step S3, by clicking the starting position of the vertical grounding electrode with the mouse, the polyline of the vertical grounding electrode is drawn along the outer horizontal grounding grid at the set interval distance, thereby completing the arrangement of the vertical grounding electrode, and the basic attributes of the vertical grounding electrode are written into the XData of all such polylines.

4. The method for rapid deployment of grounding grid in photovoltaic plant areas as described in claim 2, characterized in that, S2.2 includes the following sub-steps: S2.2.1: By extending the mouse outward along the coordinate points of the outer edge of the range of all photovoltaic modules, that is, by extending outward along the coordinate points of the outer edge of the rectangle representing the range of the photovoltaic modules, a new coordinate list is obtained; S2.2.2: Connect the coordinate points in the new coordinate list to draw a polyline, thereby generating the outer horizontal grounding grid and the main grounding grid; S2.2.3: Based on the distance between the outer frame of the photovoltaic module and its outer edge, draw multi-segment lines from the photovoltaic module to the outer horizontal grounding grid on the left and right sides of each row to generate all equipment grounding wires; S2.2.4: Based on the distance of the column component from its outer edge in all photovoltaic modules, draw the polyline connecting each row of photovoltaic modules to generate the equipment connection line, and write the corresponding basic attributes and material model into the XData of the corresponding polyline.

5. The method for rapid deployment of grounding grid in photovoltaic plant areas as described in claim 3, characterized in that, In step S4, the grounding wire connecting the inverter is drawn according to the material of the input horizontal grounding grid, and the corresponding basic attributes are written into the XData of all polylines of this type. The material of the horizontal grounding grid is obtained through pre-setting.

6. The method for rapid deployment of grounding grid in photovoltaic plant areas as described in claim 1, characterized in that, In step S5, parameters for statistical analysis are set, the grounding grid area to be analyzed is selected, the data in the grounding grid area is read and grouped, the grouped data is used as labeling information, specific labeling positions are selected or set in the grounding grid area, and the labeling information is added to the corresponding labeling positions to complete the generation of the statistical data table.

7. The method for rapid deployment of grounding grid in photovoltaic plant areas as described in claim 6, characterized in that, S5 includes the following sub-steps: S5.1: Set parameters, including text width and drawing scale, then select the grounding grid area to be statistically analyzed, and read the XData data of all polylines within the grounding grid area; S5.2: First, divide the XData data into type groups according to type, with each type corresponding to one type group; S5.3: Then, according to the specifications and models, the length and number of each type of equipment in each type group are counted to achieve the summarization and grouping of XData data; S5.4: Finally, by selecting or setting the marked positions of the grounding grid area with the mouse, the data obtained after being summarized and grouped in S5.3 is added as marked information to the corresponding marked positions, thereby completing the generation of the statistical material table.

8. The method for rapid deployment of grounding grid in photovoltaic plant areas as described in claim 7, characterized in that, In step S5, the identification information includes equipment name, model specifications, unit, quantity, legend, and remarks.

9. The method for rapid deployment of grounding grid in photovoltaic plant areas as described in claim 7, characterized in that, In S5.3, the length of each type of device is read using AutoCAD secondary development tools; In S5.3, the number of devices of each type is calculated cumulatively by script or program.

10. The method for rapid deployment of grounding grid in photovoltaic plant areas as described in claim 7, characterized in that, In step S5.4, the statistical material table is generated by using a script or program to draw line segments as the table of the statistical material table, and then adding the text of each of the indicated information to the corresponding indicated position.

Citation Information

Patent Citations

  • Diagnosis model modeling method for substation grounding grid corrosion detection

    CN112380715A

  • Automatic drawing method of power distribution grounding grid design drawing

    CN116467820A