Method and system for automatically generating photovoltaic power station support diagram
By standardizing the processing of user input information and generating bracket layout schemes using preset layout programs, and combining calculation modules and two-dimensional projection stretching technology, the problem of low efficiency in generating photovoltaic power station bracket diagrams has been solved, achieving efficient and accurate automated generation.
Patent Information
- Application Number
- CN202510738878.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-04
- Publication Date
- 2025-11-14
AI Technical Summary
Existing photovoltaic power plant support structure diagram generation is inefficient, struggles to respond quickly to parameter changes, is prone to errors, and lacks automated support structure generation capabilities.
By standardizing the processing of user input information, a support layout scheme is generated using a preset layout program. The calculation module is then called to calculate basic attributes and generate a three-dimensional model. Combined with two-dimensional projection and stretching techniques, the support diagram is automatically generated.
It significantly improves the efficiency of scaffolding diagram generation, ensures data consistency and accuracy, reduces labor costs, and adapts to flexible calculation and iterative updates in different scenarios.
Smart Images

Figure CN120953475A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of photovoltaic power plant support structure diagram production technology, specifically, to an automatic generation method and system for photovoltaic power plant support structure diagrams. Background Technology
[0002] Traditional photovoltaic (PV) support structure design relies on manual CAD drafting, requiring manual input of roof dimensions, component parameters, and load data. This approach is inefficient, prone to errors, and struggles to dynamically respond to parameter changes. Existing PV design tools also lack automated support structure generation capabilities, resulting in low drafting efficiency. To further improve drafting efficiency, a method is needed that can quickly identify the numerous constraints and diverse data types input during drafting. Furthermore, since PV power plant support structure drawings involve various types of components, each with different drawing methods, it is also necessary to address the challenge of maintaining drafting efficiency while simultaneously applying corresponding drafting algorithms for different components.
[0003] Chinese Patent, Publication No. CN115344908A, Publication Date: November 15, 2022, discloses a method and system for generating drawings of photovoltaic power station brackets. The method involves receiving a request to manufacture drawings of a photovoltaic power station bracket, determining the bracket's installation location information, obstacle information, and equipment information based on the request; determining the bracket arrangement supporting the photovoltaic modules based on the obstacle information, the installation location information, and the equipment information; and generating drawings of the photovoltaic power station bracket based on the installation location information, the bracket arrangement, and the equipment information. The technical problem it addresses is how to determine the arrangement scheme and generate the corresponding design drawings, but it does not consider how to improve the efficiency of drawing generation while generating accurate design drawings. Summary of the Invention
[0004] This invention addresses the problem of low generation efficiency in existing photovoltaic power plant support structure diagram generation, which suffers from difficulties in targeted calculations for a large number of components and results in redundant data. It provides an automatic method and system for generating photovoltaic power plant support structure diagrams. The method obtains installation configuration information based on user requirements and standardizes its data structure. Then, a support structure layout scheme is obtained through a preset layout program. Based on the layout scheme, the required domain entity objects are identified, and corresponding calculation modules are selected to calculate their basic attributes. Side views of the domain entity objects are generated based on these basic attributes, and the projections of the domain entity objects in the side views are stretched to obtain three-dimensional models of the domain entity objects. These three-dimensional models are then combined to obtain the support structure diagram. The standardized data structure processing improves the ability to identify installation configuration information, and the presence of calculation modules allows for simultaneous calculations of a large number of entity objects, thereby quickly generating the corresponding three-dimensional models and significantly improving the efficiency of support structure diagram generation.
[0005] In a first aspect, one technical solution provided in the embodiments of the present invention is: a method for automatically generating photovoltaic power station support diagrams, comprising the following steps: S1. Obtain installation and configuration information based on user needs and process it using a standardized data structure to obtain configuration parameters; S2. Based on the configuration parameters and by calling the preset automatic layout program, a support layout scheme is obtained, and the support layout scheme is converted into a three-dimensional point set structure to obtain the layout parameters. S3. Based on the layout parameters, select the corresponding calculation module and the required domain entity object from the pre-configured calculation module library; calculate the basic attributes of the corresponding domain entity object based on the calculation module to obtain the domain entity list; S4. Based on the side view generation principle, perform two-dimensional projection on each domain entity object in the domain entity list and combine them to obtain the support side view; stretch the projection based on the start and end points of each domain entity object in the support side view to obtain the support three-dimensional model diagram, and match each domain entity object in the support side view and the support three-dimensional model diagram to obtain the photovoltaic power station support diagram.
[0006] This solution eliminates ambiguity in different input formats by standardizing user requirements, ensuring that subsequent processes are based on a consistent data model and reducing manual intervention and errors. The fully automated process, from layout generation to calculation module invocation and drawing generation, significantly shortens the design cycle and reduces labor costs. Pre-configured calculation modules allow for selection of appropriate modules based on different installation scenarios, supporting flexible algorithm selection for various scenarios, facilitating functional expansion and technology iteration. This not only enables efficient iterative updates but also adapts to multiple environments, improving the system's adaptability. Generating side views through 2D projection and then constructing a 3D model based on the side views ensures data consistency between 2D drawings and 3D models, avoiding design contradictions and guaranteeing the reliability and accuracy of the drawings.
[0007] Preferably, in step S1, the installation configuration information is obtained based on user needs, and the configuration parameters are processed using a standardized data structure, including the following steps: The installation configuration information is obtained by inputting the roof installation information and required component information by the user. The installation configuration information is then converted into a unified standardized data structure and exported in JSON file format to obtain configuration parameters.
[0008] In this solution, since user input information may come from different channels (such as manual input, external import, etc.) or the input information may be in different formats (such as dimensions, slope, area, etc.), standardization processing converts it into a unified format, which can eliminate ambiguity caused by format differences. Since JSON format is a lightweight, cross-platform data exchange standard and can be saved as a "snapshot" of design input, and supports version control, it helps that exported configuration parameters can be directly read by subsequent automatic layout programs, thereby achieving seamless integration. It also helps to save historical data, improve the smoothness of workflow transitions, and ensure data traceability.
[0009] Preferably, in step S2, a support arrangement scheme is obtained based on configuration parameters and by calling a preset automatic arrangement program. The support arrangement scheme is then converted into a three-dimensional point set structure to obtain arrangement parameters, including the following steps: Based on the installation roof information in the configuration parameters, the installation constraints and obstacle information are obtained. The automatic layout program generates a support layout scheme based on the installation constraints and obstacle information. Based on the required component information in the configuration parameters, the three-dimensional coordinates of the required components are input into the support layout scheme, and the layout parameters are exported in JSON file format.
[0010] In this solution, the support layout scheme is generated automatically, avoiding the tedious manual point-by-point planning and thus significantly improving the drawing efficiency. By generating the layout scheme based on configuration parameters, it can respond to dynamic changes in parameters, thereby ensuring that the obtained scheme has high accuracy. By converting the layout scheme into a 3D point set to form structured data, it can be directly used in subsequent steps (such as calling the calculation module and 3D modeling), thus avoiding the loss of data format conversion. Moreover, the exported layout parameters are stored in JSON, which is convenient to read, call, and edit.
[0011] Preferably, the installation constraints include at least the installation scene, latitude, ridge height, roof slope, and component gaps, and the obstacle information includes at least the obstacle height and obstacle avoidance distance.
[0012] In this plan, in order to ensure that the final support structure drawing meets the requirements of structural safety, electrical specifications and construction needs, it is necessary to determine the installation environment and various constraints of the photovoltaic modules, and to strictly follow the input constraints when generating the subsequent layout plan to ensure the reliability of the drawings.
[0013] Preferably, in S3, the domain entity object includes at least columns, beams, diagonal beams, components, roofs, parapets, obstacles, supports, and tie points; the basic attributes of the domain entity object include at least component type, three-dimensional coordinate point, cross-sectional coordinates, rotation angle, start point, and end point.
[0014] In this solution, in order to ensure that the final support structure drawing can be quickly applied to on-site construction, the support structure drawing needs to be as close as possible to the actual completed construction. Therefore, in order to improve the accuracy of drawing generation, all components existing in the scene are converted into domain entity objects, and each object is assigned its corresponding basic attributes according to its physical properties. The three-dimensional coordinate points are used as the reference data for the final drawing, reducing the amount of calculation for converting two-dimensional to three-dimensional, thereby improving the drawing efficiency.
[0015] Preferably, in S3, the calculation module corresponds one-to-one with the domain entity object. If the number of domain entity objects increases, a corresponding calculation module is added. The calculation modules are independent of each other and do not interfere with each other.
[0016] In this solution, if design requirements change, leading to changes in the required construction and installation environment, the original calculation modules will no longer meet the modified design requirements. Due to the interface definition and unified input / output specifications of the calculation modules, and their one-to-one correspondence with each domain entity object, each calculation module is only responsible for calculating its corresponding domain entity object. Therefore, when new components are needed, only the corresponding calculation modules need to be added, which reduces the difficulty of modular expansion and eliminates the need to adjust the overall algorithm, thereby improving the system's adaptability to different solutions.
[0017] Preferably, in step S4, each domain entity object in the domain entity list is subjected to two-dimensional projection based on the side view generation principle, and then combined to obtain the support side view, including the following steps: A camera coordinate system is constructed with the north-south view direction as the positive x-axis, the east-west view direction as the positive y-axis, and a plane perpendicular to the north-south slope as the two-dimensional coordinate plane. In the camera coordinate system, with the origin as the observation point, the three-dimensional coordinates of each domain entity object are transformed into two-dimensional coordinates of the projection point according to the transformation matrix. Based on the two-dimensional coordinates of the projection point, the entity line segments of the domain entity object are obtained. The entity line segments are combined to obtain the two-dimensional projection map of the domain entity object. All two-dimensional projection maps are saved to the same file and exported in dxf format to obtain the side view of the support. The transformation matrix includes rotation matrix and translation matrix.
[0018] In this scheme, a camera coordinate system is constructed with the north-south direction as the x-axis and the east-west direction as the y-axis. A two-dimensional coordinate plane perpendicular to the north and south slopes is used to forcibly unify the projection direction of the side view. This not only avoids confusion in drawing orientation caused by different designers' perspectives, thus improving the efficiency of reading drawings during team collaboration, but also ensures that the side view accurately reflects the structural relationship of the support structure along the roof slope, facilitating construction personnel's quick understanding of spatial dimensions. For complex components such as multi-layered supports and diagonal braces, two-dimensional projection clearly shows their superposition relationship in the side view direction (such as the vertical distance between the upper and lower supports), facilitating review. Inspectors quickly identified structural interference issues; since DXF is a common format for engineering design software such as AutoCAD, exported drawings can be directly imported into the construction drawing editing process without the need for additional conversion tools, reducing data format compatibility issues and facilitating subsequent modifications to the drawings by engineers, thereby reducing their workload and improving construction efficiency; because projection needs to be onto a two-dimensional plane, to ensure a clear and regular projected image, the solid object needs to be rotated or translated before projection. A transformation matrix was used to ensure that the three-dimensional information of the solid object remains unchanged after rotation or translation.
[0019] Preferably, in step S4, the projection is stretched based on the start and end points of each domain entity object in the side view of the support to obtain a 3D model of the support, including the following steps: The stretching direction is determined based on the start and end points of the domain entity object, the stretching amount is determined based on the stretching direction and the three-dimensional coordinates of the domain entity object, and the three-dimensional entity object is obtained by stretching the projection based on the stretching amount. Based on the component type in the basic attributes of the domain entity object, determine the material and material specifications of the entity object, map the corresponding material and material specifications to the domain entity object to obtain the 3D model of the entity object, combine the 3D models of the entity object and export them in glb format to obtain the 3D model drawing of the support frame.
[0020] In this solution, the stretching direction (such as north-south or east-west) is directly determined by the start / end coordinates of the entity in the side view. The stretching amount (such as height or length) is calculated by combining the three-dimensional coordinates, ensuring that the geometric parameters of the three-dimensional model and the two-dimensional drawings are completely consistent (such as the height of the support column and the span of the beam), avoiding dimensional deviations during manual modeling. The stretching amount is automatically calculated and generated by the calculation module based on the projected coordinates. When the side view is modified, the three-dimensional model can be quickly updated through the same logic, achieving a linkage effect of "modifying the two-dimensional model and affecting the three-dimensional model", which greatly improves the efficiency of design iteration. Since the glb format file can be directly loaded in mainstream 3D engines (such as Three.js, Unity), BIM software (such as Revit), or CAD tools, the exported file adopts the glb format. There is no need to convert the format during loading, avoiding model distortion (such as texture loss and coordinate offset) caused by intermediate format conversion, and ensuring the reliability of the drawings.
[0021] Preferably, the calculation module includes an execution interface and a completion interface. The return value of the execution interface is a list of domain object entities, and the completion interface is used to indicate whether the calculation module has completed the calculation. If it has completed the calculation, it sends a calculation end signal to other calculation modules.
[0022] In this solution, due to the sequential installation relationship between different components during construction, the calculation modules also have a sequential calculation relationship when performing basic attribute calculations on different components during the support diagram generation process. The execution order of the calculation modules also varies depending on the specific implementation scenario, such as: {"Scenario 1":["Component Calculation Module","Crossbeam Calculation Module","Inclined Beam Calculation Module"...],"Scenario 2":["Component Calculation Module","Column Calculation Module"...]}. Therefore, two interfaces are set up in the calculation module. After the previous calculation module completes its calculation, it sends a calculation completion signal to the next calculation module, thus ensuring the accuracy of the sequence.
[0023] Secondly, an embodiment of the present invention also provides a technical solution: an automatic generation system for photovoltaic power station support diagrams, comprising an input module, a data processing module, an automatic layout module, a processor, and a diagram generation module; The input module inputs installation configuration information based on user requirements, and the data processing module processes the installation configuration information using a standardized data structure to obtain configuration parameters. The automatic layout module obtains the bracket layout scheme based on the configuration parameters and calls the built-in automatic layout program, and then converts the bracket layout scheme into a three-dimensional point set structure to obtain the layout parameters through the data processing module. The processor selects the corresponding installation scenario and required domain entity objects from the pre-configured computing module library based on the arrangement parameters, and generates a domain entity list based on the basic attributes of the corresponding domain entity objects calculated by the computing modules. The diagram generation module performs a two-dimensional projection of each domain entity object in the domain entity list based on the side view generation principle and combines them to obtain a support side view. Based on the start and end points of each domain entity object in the support side view, the projection is stretched to obtain a three-dimensional model diagram of the support. The photovoltaic power station support diagram is output by corresponding each domain entity object in the support side view and the support three-dimensional model diagram.
[0024] In this solution, a corresponding system is built to integrate the graph generation method, thereby enabling human-computer interaction and improving the user experience.
[0025] The beneficial effects of the present invention are: (1) The present invention eliminates the ambiguity of different input formats by standardizing user requirements, ensuring that subsequent processes are based on a consistent data model, reducing manual intervention and errors; the entire process from layout scheme generation to calculation module call to drawing generation is automated, which greatly shortens the design cycle and reduces labor costs; (2) This invention has a pre-configured computing module, which can be selected according to different installation scenarios. It can support flexible selection of algorithms according to different scenarios, which is convenient for functional expansion and technology iteration. It can not only efficiently iterate and update, but also adapt to a variety of environments and improve the system's adaptability. (3) The present invention generates a side view by two-dimensional projection, and then constructs a three-dimensional model based on the side view by stretching, which ensures the data consistency between the two-dimensional drawings and the three-dimensional model, avoids design contradictions, and ensures the reliability and accuracy of the drawings.
[0026] The above description of the invention is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0027] Other features, objects, and advantages of the invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings. The drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings.
[0028] Figure 1 This is a flowchart of a method for automatically generating photovoltaic power station support diagrams according to the present invention; Figure 2 This is a block diagram of an automatic photovoltaic power station support diagram generation system according to the present invention. Detailed Implementation
[0029] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only one preferred embodiment of this invention and are only used to explain this invention. They do not limit the scope of protection of this invention. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.
[0030] Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the operations (or steps) as sequential processes, many of the operations (or steps) can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but it may also have additional steps not included in the figures; the process may correspond to a method, function, procedure, subroutine, subroutine, etc.
[0031] Example: Figure 1 As shown, in order to solve the problem that existing photovoltaic power plant support structure diagram generation methods are difficult to perform targeted calculations for a large number of components and result in redundant data leading to low drawing efficiency, this embodiment provides an automatic photovoltaic power plant support structure diagram generation method, including the following steps: S1: Obtain installation and configuration information based on user needs and process it using a standardized data structure to obtain configuration parameters.
[0032] In this embodiment, the installation configuration information is obtained based on user needs, and the configuration parameters are obtained by standardizing the data structure. The steps include: The installation configuration information is obtained by inputting the roof installation information and required component information by the user. The installation configuration information is then converted into a unified standardized data structure and exported in JSON file format to obtain configuration parameters.
[0033] Specifically, the user selects the "182-72 General" component in the plugin interface or web page. "182-72 General" is a database containing various component types. The database selection can be adjusted according to specific installation requirements. After inputting the data, the component specification string "182-72 General" is obtained and mapped to an internally defined enumeration type (e.g., KComponentSpec::xxxxx). If the component specification is entered in other formats, compatibility processing is required to map it to a unified internal type. This embodiment uses a unified JSON file format.
[0034] In this embodiment, since the information input by the user may come from different channels (such as manual input, external import, etc.) or the format of the input information may be different (such as size, slope, area, etc.), the standardization process converts it into a unified format, which can eliminate ambiguity caused by format differences. Since the JSON format is a lightweight, cross-platform data exchange standard and can be saved as a "snapshot" of design input and supports version control, it helps that the exported configuration parameters can be directly read by the subsequent automatic layout program, thereby achieving seamless integration. It also helps to save historical data, improve the smoothness of workflow connection and ensure data traceability.
[0035] S2: Based on the configuration parameters and by calling the preset automatic layout program, the support layout scheme is obtained, and the support layout scheme is converted into a three-dimensional point set structure to obtain the layout parameters.
[0036] In this embodiment, a support arrangement scheme is obtained based on configuration parameters and by calling a preset automatic arrangement program. The support arrangement scheme is then converted into a three-dimensional point set structure to obtain arrangement parameters. This includes the following steps: Based on the installation roof information in the configuration parameters, the installation constraints and obstacle information are obtained. The automatic layout program generates a support layout scheme based on the installation constraints and obstacle information. Based on the required component information in the configuration parameters, the three-dimensional coordinates of the required components are input into the support layout scheme, and the layout parameters are exported in JSON file format.
[0037] In this solution, the support layout scheme is generated automatically, avoiding the tedious manual point-by-point planning and thus significantly improving the drawing efficiency. By generating the layout scheme based on configuration parameters, it can respond to dynamic changes in parameters, thereby ensuring that the obtained scheme has high accuracy. By converting the layout scheme into a 3D point set to form structured data, it can be directly used in subsequent steps (such as calling the calculation module and 3D modeling), thus avoiding the loss of data format conversion. Moreover, the exported layout parameters are stored in JSON, which is convenient to read, call, and edit.
[0038] The installation constraints described in this embodiment include at least the installation scene, latitude, ridge height, roof slope, and component gaps. The obstacle information includes at least the obstacle height and obstacle avoidance distance.
[0039] In this embodiment, in order to ensure that the final support structure drawing meets the requirements of structural safety, electrical specifications and construction needs, it is necessary to determine the installation environment and various constraints of the photovoltaic modules, and to strictly follow the input constraints when generating the subsequent layout scheme to ensure the reliability of the drawings.
[0040] S3: Select the corresponding installation scenario and required domain entity object from the pre-configured calculation module library based on the layout parameters; calculate the basic attributes of the corresponding domain entity object based on the calculation module to obtain the domain entity list.
[0041] In this embodiment, the domain entity objects include at least columns, beams, diagonal beams, components, roofs, parapets, obstacles, supports, and tie points; the basic attributes of the domain entity objects include at least component type, three-dimensional coordinate points, cross-sectional coordinates, rotation angle, start point, and end point.
[0042] Specifically, the domain entity objects and their basic attributes are saved. The domain object document can be defined to include a collection of domain objects, a material table, a layer table, project information, and a group object table. The document provides basic operations such as adding, deleting, modifying, and querying. The domain object is defined using a three-dimensional data format, supporting operations such as three-view projection and matrix transformation. It also supports persistence to JSON, DXF, GLB, GLTF, and the custom format PVIF, thereby building a domain entity library to provide data support for subsequent drawing.
[0043] The basic information calculated by the calculation module uses a data structure specifically defined as follows: component type enumeration values, such as Component and Beam; component cross-section: a two-dimensional point set (representing the cross-sectional outline of the component); component start and end points: three-dimensional point coordinates; enumeration values of the slope on which the component is located, such as South and North; the calculation module supports inheritance and extension, and data fields can be added according to specific business needs; the calculation module determines the type of component to be calculated through its own type (ComponentSolver indicates that the component is being calculated), the cross-sectional outline of the component is determined by specific business needs (e.g., if the cross-section of the sloping roof beam is a 40*40 rectangle, then the cross-sectional point set can be represented as [(20,20),(20,-20),(-20,-20),(-20,20)]), the start and end points of the component are generally given by the algorithm, which can be found by reading the algorithm output file; the slope on which the component belongs: obtained through the relationship between its own coordinates and the ridge line position.
[0044] In order to ensure that the final support structure drawing can be quickly applied to on-site construction, this embodiment needs to obtain a support structure drawing that is as close as possible to the actual completed construction. Therefore, in order to improve the accuracy of drawing generation, all components existing in the scene are converted into domain entity objects, and each object is assigned its corresponding basic attributes according to its physical properties. The three-dimensional coordinate points are used as the reference data for the final drawing, reducing the amount of calculation for converting two-dimensional to three-dimensional, thereby improving the drawing efficiency.
[0045] In this embodiment, each calculation module corresponds one-to-one with a domain entity object. If an additional domain entity object is added, a corresponding calculation module is added. The calculation modules operate independently and do not interfere with each other.
[0046] If design requirements change in this embodiment, resulting in changes to the required construction and installation environment, the original computing modules may not be able to meet the modified design requirements. However, due to the interface definition and unified input / output specifications of the computing modules, and their one-to-one correspondence with each domain entity object, each computing module is only responsible for calculating its corresponding domain entity object. Therefore, when new components are needed, only the corresponding computing modules need to be added, which reduces the difficulty of modular expansion and eliminates the need to adjust the overall algorithm, thereby improving the system's adaptability to different solutions.
[0047] S4: Based on the side view generation principle, project each domain entity object in the domain entity list into a two-dimensional plane and combine them to obtain the support side view; stretch the projection based on the start and end points of each domain entity object in the support side view to obtain the support three-dimensional model diagram, and match each domain entity object in the support side view and the support three-dimensional model diagram to obtain the photovoltaic power station support diagram.
[0048] In this embodiment, based on the side view generation principle, each domain entity object in the domain entity list is subjected to two-dimensional projection and combined to obtain the bracket side view, including the following steps: A camera coordinate system is constructed with the north-south view direction as the positive x-axis, the east-west view direction as the positive y-axis, and a plane perpendicular to the north-south slope as the two-dimensional coordinate plane. In the camera coordinate system, with the origin as the observation point, the three-dimensional coordinates of each domain entity object are transformed into two-dimensional coordinates of the projection point according to the transformation matrix. Based on the two-dimensional coordinates of the projection point, the entity line segments of the domain entity object are obtained. The entity line segments are combined to obtain the two-dimensional projection map of the domain entity object. All two-dimensional projection maps are saved to the same file and exported in dxf format to obtain the side view of the support.
[0049] Specifically, a camera matrix is used to project the 3D model onto a 2D plane. The transformation matrix is obtained by determining the camera position (positive x-axis in the north-south view, representing observation from the right side; in the plan view, the direction perpendicular to the north and south slopes, representing observation from a perspective perpendicular to the slope), the observation point (fixed at the origin (0, 0, 0)), and the upward direction (fixed directly above (0, 0, 1)). By iterating through the entities and applying the transformation matrix to each entity, a 2D plane projection of the corresponding side view is obtained. DXF objects are generated using the calculated projection points. Combining the projected DXF objects of all entities forms the complete side view. The DXF file can be exported using the NetDXF library.
[0050] This embodiment constructs a camera coordinate system with the north-south direction as the x-axis and the east-west direction as the y-axis. By using a two-dimensional coordinate plane perpendicular to the north and south slopes, it enforces a unified projection direction for the side view. This not only avoids confusion in drawing orientation caused by different designers' perspectives, thus improving the efficiency of reading drawings during team collaboration, but also ensures that the side view accurately reflects the structural relationship of the support structure along the roof slope, facilitating construction personnel's quick understanding of spatial dimensions. For complex components such as multi-layered supports and diagonal braces, two-dimensional projection clearly shows their superposition relationship in the side view direction (such as the vertical distance between the upper and lower supports), making it easier for reviewers to quickly identify structural interference issues. Since DXF is a common format for engineering design software such as AutoCAD, exporting to this format allows for direct import into the construction drawing editing process without additional conversion tools, reducing data format compatibility issues and facilitating subsequent modifications to the drawings by engineers, thereby reducing their workload and improving construction efficiency.
[0051] In this embodiment, the transformation matrix includes a rotation matrix and a translation matrix.
[0052] In this embodiment, since the object needs to be projected onto a two-dimensional plane, in order to make the projected image clear and regular, the object needs to be rotated or translated before projection. A transformation matrix is used to ensure that the three-dimensional information of the object remains unchanged after rotation or translation.
[0053] In this embodiment, the three-dimensional model of the support is obtained by stretching the projection based on the start and end points of each domain entity object in the side view of the support, including the following steps: The stretching direction is determined based on the start and end points of the domain entity object, the stretching amount is determined based on the stretching direction and the three-dimensional coordinates of the domain entity object, and the three-dimensional entity object is obtained by stretching the projection based on the stretching amount. Based on the component type in the basic attributes of the domain entity object, determine the material and material specifications of the entity object, map the corresponding material and material specifications to the domain entity object to obtain the 3D model of the entity object, combine the 3D models of the entity objects and export them in glb format to obtain the 3D model drawing of the support frame. SharpGLTF software can be used for export.
[0054] Specifically, the support diagram obtained in this embodiment can also be applied to agricultural photovoltaic sheds. The support can be dynamically adjusted according to parameters such as crop height. The support diagram data can also be imported into a Revit model to realize construction progress simulation and conflict detection. According to actual project testing, in the design of support diagrams for residential photovoltaic sloping roof scenarios, the efficiency can be improved by 500% compared to manual drawing.
[0055] This embodiment directly determines the stretching direction (such as north-south or east-west) by using the start / end coordinates of the entity in the side view, and calculates the stretching amount (such as height or length) by combining it with the 3D coordinates. This ensures that the geometric parameters of the 3D model and the 2D drawings are completely consistent (such as the height of the support column and the span of the beam), avoiding dimensional deviations during manual modeling. The stretching amount is automatically calculated and generated by the calculation module based on the projected coordinates. When the side view is modified, the 3D model can be quickly updated through the same logic, achieving a "modifying the 2D model affects the 3D model" linkage effect, which greatly improves the efficiency of design iteration. Since glb format files can be directly loaded in mainstream 3D engines (such as Three.js, Unity), BIM software (such as Revit), or CAD tools, the exported file uses the glb format. No format conversion is required during loading, avoiding model distortion (such as texture loss and coordinate offset) caused by intermediate format conversion, and ensuring the reliability of the drawings.
[0056] In this embodiment, the calculation module includes an execution interface and a completion interface. The return value of the execution interface is a list of domain object entities. The completion interface is used to indicate whether the calculation module has completed the calculation. If it has completed the calculation, it sends a calculation end signal to other calculation modules.
[0057] In this embodiment, because different components are installed sequentially during construction, the calculation modules also perform basic attribute calculations on different components sequentially during the support diagram generation process. The execution order of the calculation modules also varies depending on the specific implementation scenario, such as: {"Scenario 1":["Component Calculation Module","Crossbeam Calculation Module","Inclined Beam Calculation Module"...],"Scenario 2":["Component Calculation Module","Column Calculation Module"...]}. Therefore, two interfaces are set up in the calculation module. After the previous calculation module completes its calculation, it sends a calculation completion signal to the next calculation module, thus ensuring the accuracy of the sequence.
[0058] Example 2: Figure 2 As shown, this embodiment also provides an automatic photovoltaic power station support diagram generation system, including an input module, a data processing module, an automatic layout module, a processor, and a diagram generation module; The input module inputs installation configuration information based on user requirements, and the data processing module processes the installation configuration information using a standardized data structure to obtain configuration parameters. The automatic layout module obtains the bracket layout scheme based on the configuration parameters and calls the built-in automatic layout program, and then converts the bracket layout scheme into a three-dimensional point set structure to obtain the layout parameters through the data processing module. The processor selects the corresponding installation scenario and required domain entity objects from the pre-configured computing module library based on the arrangement parameters, and generates a domain entity list based on the basic attributes of the corresponding domain entity objects calculated by the computing modules. The diagram generation module performs a two-dimensional projection of each domain entity object in the domain entity list based on the side view generation principle and combines them to obtain a support side view. Based on the start and end points of each domain entity object in the support side view, the projection is stretched to obtain a three-dimensional model diagram of the support. The photovoltaic power station support diagram is output by corresponding each domain entity object in the support side view and the support three-dimensional model diagram.
[0059] This embodiment implements the graph generation method in this solution by constructing a corresponding system, thereby realizing human-computer interaction and improving the user experience.
[0060] As can be seen from the above embodiments, it has at least the following substantial effects: (1) This invention eliminates the ambiguity of different input formats by standardizing user requirements, ensuring that subsequent processes are based on a consistent data model, reducing manual intervention and errors; the entire process from layout scheme generation to calculation module call to drawing generation is automated, which greatly shortens the design cycle and reduces labor costs. (2) This invention has a pre-configured computing module, which can be selected according to different installation scenarios. It can support flexible selection of algorithms according to different scenarios, which is convenient for functional expansion and technology iteration. It can not only efficiently iterate and update, but also adapt to a variety of environments and improve the system's adaptability. (3) The present invention generates a side view by two-dimensional projection, and then constructs a three-dimensional model based on the side view by stretching, which ensures the data consistency between the two-dimensional drawings and the three-dimensional model, avoids design contradictions, and ensures the reliability and accuracy of the drawings.
[0061] The specific embodiments described above are preferred embodiments of the photovoltaic power station support diagram automatic generation method and system of the present invention, and are not intended to limit the specific implementation scope of the present invention. The scope of the present invention includes but is not limited to the specific embodiments described above. All equivalent changes made in accordance with the shape and structure of the present invention are within the protection scope of the present invention.
Claims
1. A method for automatically generating photovoltaic power plant support diagrams, characterized in that: Includes the following steps: S1. Obtain installation and configuration information based on user needs and process it using a standardized data structure to obtain configuration parameters; S2. Based on the configuration parameters and by calling the preset automatic layout program, a support layout scheme is obtained, and the support layout scheme is converted into a three-dimensional point set structure to obtain the layout parameters. S3. Select the corresponding installation scenario and required domain entity object from the pre-configured computing module library based on the layout parameters; The domain entity list is obtained by calculating the basic attributes of the corresponding domain entity objects using the calculation module. S4. Based on the side view generation principle, perform two-dimensional projection on each domain entity object in the domain entity list and combine them to obtain the bracket side view. The 3D model of the support is obtained by stretching the projection based on the start and end points of each domain entity object in the support side view. The photovoltaic power station support diagram is obtained by matching each domain entity object in the support side view and the support 3D model diagram one by one.
2. The method for automatically generating photovoltaic power station support diagrams according to claim 1, characterized in that: In S1, the installation configuration information is obtained based on user needs, and the configuration parameters are obtained by standardizing the data structure. This includes the following steps: The installation configuration information is obtained by inputting the roof installation information and required component information by the user. The installation configuration information is then converted into a unified standardized data structure and exported in JSON file format to obtain configuration parameters.
3. The method for automatically generating photovoltaic power station support diagrams according to claim 2, characterized in that: In S2, a support layout scheme is obtained based on configuration parameters and by calling a preset automatic layout program. The support layout scheme is then converted into a three-dimensional point set structure to obtain layout parameters, including the following steps: Based on the installation roof information in the configuration parameters, the installation constraints and obstacle information are obtained. The automatic layout program generates a support layout scheme based on the installation constraints and obstacle information. Based on the required component information in the configuration parameters, the three-dimensional coordinates of the required components are input into the support layout scheme, and the layout parameters are exported in JSON file format.
4. The method for automatically generating photovoltaic power station support diagrams according to claim 3, characterized in that: The installation constraints include at least the installation scene, latitude, ridge height, roof slope, and component gaps, and the obstacle information includes at least the obstacle height and obstacle avoidance distance.
5. The method for automatically generating photovoltaic power station support diagrams according to claim 1, characterized in that: In S3, the domain entity objects include at least columns, beams, diagonal beams, components, roofs, parapets, obstacles, supports, and tie points; the basic attributes of the domain entity objects include at least component type, three-dimensional coordinate points, cross-sectional coordinates, rotation angle, start point, and end point.
6. The method for automatically generating photovoltaic power station support diagrams according to claim 1, characterized in that: In S3, each calculation module corresponds one-to-one with a domain entity object. If an additional domain entity object is added, a corresponding calculation module is added. The calculation modules operate independently and do not interfere with each other.
7. The method for automatically generating photovoltaic power station support diagrams according to claim 1, characterized in that: In S4, based on the side view generation principle, each domain entity object in the domain entity list is subjected to two-dimensional projection and combined to obtain the bracket side view, including the following steps: A camera coordinate system is constructed with the north-south view direction as the positive x-axis, the east-west view direction as the positive y-axis, and a plane perpendicular to the north-south slope as the two-dimensional coordinate plane. In the camera coordinate system, with the origin as the observation point, the three-dimensional coordinates of each domain entity object are transformed into two-dimensional coordinates of the projection point according to the transformation matrix. Based on the two-dimensional coordinates of the projection point, the entity line segments of the domain entity object are obtained. The entity line segments are combined to obtain the two-dimensional projection map of the domain entity object. All two-dimensional projection maps are saved to the same file and exported in dxf format to obtain the side view of the support. The transformation matrix includes a rotation matrix and a translation matrix.
8. The method for automatically generating photovoltaic power station support diagrams according to claim 5, characterized in that: In S4, the 3D model of the support is obtained by stretching the projection based on the start and end points of each domain entity object in the support side view, including the following steps: The stretching direction is determined based on the start and end points of the domain entity object. The stretching amount is determined based on the stretching direction and the three-dimensional coordinates of the domain entity object. The three-dimensional entity object is obtained by stretching the projection based on the stretching amount. Based on the component type in the basic attributes of the domain entity object, determine the material and material specifications of the entity object, map the corresponding material and material specifications to the domain entity object to obtain the 3D model of the entity object, combine the 3D models of the entity object and export them in glb format to obtain the 3D model drawing of the support frame.
9. A method for automatically generating photovoltaic power station support diagrams according to claim 1 or 6, characterized in that: The calculation module includes an execution interface and a completion interface. The return value of the execution interface is a list of domain object entities. The completion interface is used to indicate whether the calculation module has completed the calculation. If it has completed the calculation, it sends a calculation end signal to other calculation modules.
10. An automatic photovoltaic power plant support diagram generation system, applicable to the automatic photovoltaic power plant support diagram generation method according to any one of claims 1-9, characterized in that: It includes an input module, a data processing module, an automatic layout module, a processor, and a graph generation module; The input module inputs installation configuration information based on user requirements, and the data processing module processes the installation configuration information using a standardized data structure to obtain configuration parameters. The automatic layout module obtains the bracket layout scheme based on the configuration parameters and calls the built-in automatic layout program, and then converts the bracket layout scheme into a three-dimensional point set structure to obtain the layout parameters through the data processing module. The processor selects the corresponding installation scenario and required domain entity objects from the pre-configured computing module library based on the arrangement parameters, and generates a domain entity list based on the basic attributes of the corresponding domain entity objects calculated by the computing modules. The graph generation module performs two-dimensional projection on each domain entity object in the domain entity list based on the side view generation principle and combines them to obtain a support side view. Based on the start and end points of each domain entity object in the support side view, the projection is stretched to obtain a three-dimensional model of the support. The photovoltaic power station support diagram is output by matching each domain entity object in the support side view and the support three-dimensional model diagram one by one.
Citation Information
Patent Citations
Drawing generation method and system for photovoltaic power station support
CN115344908A