A component placement method, apparatus, medium, and program product
By acquiring and generating the positioning parameters of components, the problems of automatic generation of station spatial points and asymmetric component orientation control in tunnels and integrated utility tunnels were solved, realizing automatic generation of component instances and orientation consistency, and improving the efficiency and accuracy of component layout.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-03-27
- Publication Date
- 2026-07-03
Smart Images

Figure CN122333581A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of architectural design technology, and in particular to a component arrangement method, equipment, medium, and program product. Background Technology
[0002] For linear engineering scenarios such as tunnels and integrated utility tunnels, automated component placement is one of the important tasks in engineering design.
[0003] Currently, existing component layout methods typically aim to optimize the layout of equipment such as lighting, solving for layout parameters by calculating illuminance or spacing. However, existing technologies primarily focus on lighting effects or energy consumption optimization, with their core being the solution of layout parameters or the construction of evaluation functions, rather than the automatic generation of equipment instances in a 3D modeling environment. Therefore, they cannot generate station spatial points or solve the problem of uniform orientation control when arranging asymmetrical components in batches. Summary of the Invention
[0004] This invention provides a component layout method, equipment, medium, and program product, which can realize the automatic generation of station spatial points, the automatic generation of component instances, and the unified orientation control of asymmetrical components during batch layout.
[0005] According to one aspect of the present invention, a method for arranging components is provided, comprising: Obtain the target component based on the component selection operation on the component layout page; Based on the positioning parameter setting operation of the target component, the planar positioning parameters and cross-sectional positioning parameters are obtained, and based on the planar positioning parameters, the station numbers of each arrangement and the corresponding planar rotation angle and cross-sectional quadrant are obtained. Based on the cross-sectional quadrant and the cross-sectional positioning parameters, obtain the position coordinates and cross-sectional rotation angles corresponding to each of the arrangement station numbers, and generate each component instance corresponding to the target component based on the position coordinates, cross-sectional rotation angles, and planar rotation angles corresponding to each of the arrangement station numbers.
[0006] According to another aspect of the present invention, a component arrangement device is provided, comprising: The component acquisition module is used to acquire the target component based on the component selection operation on the component layout page; The parameter acquisition module is used to acquire planar positioning parameters and cross-sectional positioning parameters according to the positioning parameter setting operation of the target component, and to acquire each layout station number and the corresponding planar rotation angle and cross-sectional quadrant according to the planar positioning parameters. The instance generation module is used to obtain the position coordinates and cross-sectional rotation angles corresponding to each of the arrangement stations according to the cross-sectional quadrants and the cross-sectional positioning parameters, and generate each component instance corresponding to the target component according to the position coordinates, cross-sectional rotation angles and plane rotation angles corresponding to each of the arrangement stations.
[0007] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the component arrangement method according to any embodiment of the present invention.
[0008] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program configured to cause a processor to execute and implement the component arrangement method according to any embodiment of the present invention.
[0009] According to another aspect of the present invention, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the component arrangement method described in any embodiment of the present invention.
[0010] The technical solution of this invention involves obtaining a target component based on a component selection operation on a component layout page; obtaining planar positioning parameters and cross-sectional positioning parameters based on a positioning parameter setting operation for the target component; obtaining each layout station number and its corresponding planar rotation angle and cross-sectional quadrant based on the planar positioning parameters; obtaining the position coordinates and cross-sectional rotation angle corresponding to each layout station number based on the cross-sectional quadrant and cross-sectional positioning parameters; and generating component instances corresponding to the target component based on the position coordinates, cross-sectional rotation angle, and planar rotation angle corresponding to each layout station number. By providing a component layout page for visual setting of planar and cross-sectional positioning parameters, and obtaining the position coordinates, cross-sectional rotation angle, and planar rotation angle corresponding to each layout station number based on the planar and cross-sectional positioning parameters, and then generating the final component instances based on the obtained information, the automatic generation of station number spatial points and component instances can be achieved, and unified orientation control can be achieved for asymmetrical components during batch layout.
[0011] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0012] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying 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.
[0013] Figure 1 This is a flowchart of a component arrangement method provided in Embodiment 1 of the present invention; Figure 2 This is a schematic diagram of the component layout page provided in Embodiment 1 of the present invention; Figure 3 This is a cross-sectional quadrant diagram provided according to Embodiment 1 of the present invention; Figure 4 This is a schematic diagram of the direction definition provided in Embodiment 1 of the present invention; Figure 5 This is a schematic diagram of a planar model provided according to Embodiment 1 of the present invention; Figure 6 This is a flowchart of a component arrangement method provided in Embodiment 2 of the present invention; Figure 7 This is a schematic diagram of the component layout page provided according to Embodiment 2 of the present invention; Figure 8 This is a schematic diagram of automatic centripetal force provided according to Embodiment 2 of the present invention; Figure 9 This is a structural schematic diagram of a component arrangement device according to Embodiment 3 of the present invention; Figure 10 This is a schematic diagram of the structure of an electronic device that implements the component arrangement method of the present invention. Detailed Implementation
[0014] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0015] It should be noted that the terms "first," "second," "target," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0016] Example 1 Figure 1 This is a flowchart of a component arrangement method provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation of three-dimensional intelligent batch arrangement of equipment or components in the circular cross-section of shield tunnels in long and narrow linear engineering projects such as tunnels and pipe corridors. This method can be executed by a component arrangement device, which can be implemented in hardware and / or software. Typically, the component arrangement device can be configured in electronic equipment, such as computer equipment, servers, etc. Figure 1 As shown, the method includes: S110. Obtain the target component based on the component selection operation in the component layout page.
[0017] In this embodiment, the component placement system can provide a visual page to enable user interaction, setting placement parameters, and displaying relevant models. Specifically, upon detecting a user's selection of a linear engineering model or a circular cross-section through the system page, the component placement page is displayed via a pop-up window or page redirection. The component placement page is used to set component placement parameters, such as component selection, planar positioning parameter settings, and cross-sectional positioning parameter settings. Next, based on the component information entered or selected by the user on the component placement page, the target component to be used is determined. The target component may include lighting fixtures, temperature sensors, smoke sensors, and hydraulic / HVAC equipment.
[0018] Among these methods, obtaining the target component based on the component selection operation on the component layout page can include: Based on the selection operation of the linear engineering model, the current linear engineering model is obtained, and based on the component layout trigger operation of the current linear engineering model, the component layout page is visualized. Based on the component selection operation on the component layout page, obtain the component name and component model, and obtain the target component based on the component name and component model.
[0019] Specifically, when selecting a target component, firstly, based on the user's selection of the linear engineering model input box on the system page, candidate linear engineering models are displayed using drop-down menus or similar methods. Then, based on the user's selection of a candidate linear engineering model, the current linear engineering model is determined. Next, based on the user's selection of the component placement button, the component placement page is displayed. For example, the component placement page could be as follows: Figure 2 As shown. Furthermore, users can click the component name input box and the model input box, and select the component name and model to be deployed from the candidate component names and candidate models. Finally, the target component can be determined based on the component name and model selected by the user.
[0020] Optionally, after determining the target component, a thumbnail of the target component can be displayed in a designated area on the component layout page. For example... Figure 2 As shown, a thumbnail of the target component can be displayed in the rectangular area below the model input box.
[0021] S120. Based on the positioning parameter setting operation of the target component, obtain the planar positioning parameters and cross-sectional positioning parameters, and based on the planar positioning parameters, obtain each arrangement station number and the corresponding planar rotation angle and cross-sectional quadrant.
[0022] Among them, the planar positioning parameters are used to define the arrangement position and orientation of the target component in the plane within the linear engineering model, and may include the starting point of the arrangement range, the ending point of the arrangement range, the arrangement spacing, and the plane rotation angle (XY axis plane rotation angle), etc. The cross-sectional positioning parameters are used to define the arrangement position and orientation of the target component in the circular cross-section, and may include the horizontal distance of the cross-section, the vertical distance of the cross-section, and the cross-sectional rotation angle, etc.
[0023] In this embodiment, the user-set planar positioning parameters and cross-sectional positioning parameters can be obtained based on the positioning parameter input or selection operation on the component layout page. Then, the layout station numbers, the corresponding planar rotation angle, and the cross-sectional quadrant can be extracted from the planar positioning parameters. The layout station numbers use the centerline of the linear engineering model as the positioning reference along the line; the centerline can be the line connecting the center points of each circular section. The cross-sectional quadrants, including the upper left, upper right, lower left, and lower right of the centerline, are defined with the cross-sectional view from the starting point to the ending point as the default direction, defining the lateral offset direction of the target component on the plane. For example, the cross-sectional quadrants can be as follows: Figure 3 As shown, the direction can be defined as follows: Figure 4 As shown.
[0024] Optionally, obtaining planar positioning parameters based on the positioning parameter setting operation for the target component may include: Based on the selection operation of the "Pick Centerline" button in the component layout page, the centerline corresponding to the current linear engineering model is obtained, and based on the selection operation of the "Pick Start Point" and "Pick End Point" buttons, the starting station number and ending station number are obtained. Based on the input operation of the component layout spacing, obtain the current layout spacing, and based on the setting operation of the component plane rotation angle, obtain the current plane rotation angle; Based on the selection operation of the component layout position, the cross-sectional quadrant is obtained, and the planar positioning parameters are obtained based on the centerline, the starting station number, the ending station number, the current layout spacing, the current plane rotation angle, and the cross-sectional quadrant.
[0025] Specifically, with Figure 2 Taking the component layout page shown as an example, when setting planar positioning parameters, firstly, the user clicks the "Pick Centerline" button, and the component layout system automatically extracts the centerline corresponding to the current linear engineering model as the positioning reference along the line. Next, the user clicks the "Pick Start Point" and "Pick End Point" buttons, and the component layout system picks the start and end points on the centerline and automatically identifies the station numbers to obtain the starting and ending station numbers; alternatively, the system can obtain the starting and ending station numbers based on the user's input. The starting and ending station numbers define the scope of the component layout. Furthermore, the system can obtain the current layout spacing, current plane rotation angle, and cross-sectional quadrants input or set by the user, and generate a set of centerline, starting station, ending station, current layout spacing, current plane rotation angle, and cross-sectional quadrants as the final planar positioning parameters.
[0026] The operation of setting the component plane rotation angle includes an input angle mode and a manual specification mode. In the input angle mode, the target component rotates around the component insertion point in the XY plane by the input angle.
[0027] Optionally, obtaining the current plane rotation angle based on the setting operation for the component plane rotation angle may include: Based on the setting operation of the component plane rotation angle, if it is detected that the current plane rotation angle setting method is manually specified, the plane model corresponding to the target component is displayed, and the current plane rotation angle is obtained based on the rotation operation of the plane model.
[0028] In this embodiment, when the user selects to input the planar rotation angle using the manual specification mode, the component placement system can display the planar model corresponding to the target component. Taking a lighting fixture as an example, the planar model can be as follows: Figure 5As shown. Next, the user can manually rotate the planar model to the desired orientation. After rotation, the component placement system identifies the angle between the current component orientation and the direction of the tangent vector at the current position of the centerline, using this angle as the current planar rotation angle. For example... Figure 5 As shown, the current plane is rotated by 40 degrees.
[0029] Optionally, obtaining the station numbers for each arrangement based on the plane positioning parameters may include: Based on the planar positioning parameters, the centerline, the starting station number, the ending station number, and the current arrangement spacing are obtained, and the arrangement quantity is calculated based on the centerline and the current arrangement spacing. The chainage difference is calculated based on the starting chainage and the ending chainage, and the chainage of each arrangement is calculated based on the chainage difference and the arrangement quantity.
[0030] The arrangement spacing can be the projected length along the centerline. In this embodiment, firstly, the total length of the centerline can be divided by the current arrangement spacing to obtain the quotient value as the arrangement quantity; nextly, the end station number can be subtracted from the starting station number to obtain the station number difference; further, the station number difference can be divided by the arrangement quantity to obtain the quotient value as the station number adjustment step size; finally, the station number adjustment step size can be increased successively based on the starting station number to obtain each arrangement station number. Each arrangement station number corresponds to a three-dimensional point on the centerline.
[0031] S130. Based on the cross-sectional quadrant and the cross-sectional positioning parameters, obtain the position coordinates and cross-sectional rotation angles corresponding to each of the arrangement station numbers, and generate each component instance corresponding to the target component based on the position coordinates, cross-sectional rotation angles, and planar rotation angles corresponding to each of the arrangement station numbers.
[0032] Specifically, firstly, the horizontal distance, vertical distance, and cross-section rotation angle can be extracted from the cross-section positioning parameters. Based on the cross-section quadrant, the signs of the horizontal and vertical distances are determined, thus defining the position coordinates. For example, if the horizontal distance is D and the vertical distance is H, and the cross-section quadrant is the upper right of the centerline, the position coordinates are (D, H); or, if the cross-section quadrant is the upper left, the position coordinates are (-D, H). Next, the position coordinates, cross-section rotation angle, and plane rotation angle can be reused to generate corresponding component instances for each layout station, enabling batch layout of the target components.
[0033] The technical solution of this invention involves obtaining a target component based on a component selection operation on a component layout page; obtaining planar positioning parameters and cross-sectional positioning parameters based on a positioning parameter setting operation for the target component; obtaining each layout station number and its corresponding planar rotation angle and cross-sectional quadrant based on the planar positioning parameters; obtaining the position coordinates and cross-sectional rotation angle corresponding to each layout station number based on the cross-sectional quadrant and cross-sectional positioning parameters; and generating component instances corresponding to the target component based on the position coordinates, cross-sectional rotation angle, and planar rotation angle corresponding to each layout station number. By providing a component layout page for visual setting of planar and cross-sectional positioning parameters, and obtaining the position coordinates, cross-sectional rotation angle, and planar rotation angle corresponding to each layout station number based on the planar and cross-sectional positioning parameters, and then generating the final component instances based on the obtained information, the automatic generation of station number spatial points and component instances can be achieved, and unified orientation control can be achieved for asymmetrical components during batch layout.
[0034] Example 2 Figure 6 This is a flowchart of a component arrangement method provided in Embodiment 2 of the present invention. This embodiment is a further refinement of the above technical solution, and the technical solution in this embodiment can be combined with one or more of the above implementation methods. Figure 6 As shown, the method includes: S210. Based on the selection operation of the linear engineering model, obtain the current linear engineering model, and based on the component layout trigger operation of the current linear engineering model, visualize the component layout page.
[0035] S220. Based on the component selection operation on the component layout page, obtain the component name and component model, and obtain the target component based on the component name and component model.
[0036] S230. Obtain planar positioning parameters according to the positioning parameter setting operation of the target component.
[0037] S240. Based on the positioning parameter setting operation of the target component, if it is detected that the current cross-section positioning parameter setting method is automatic adsorption of the inner wall, then based on the selection operation of the pick geometry button, the cross-section geometry corresponding to the current linear engineering model is obtained.
[0038] When the user selects "automatic adsorption of inner wall" as the cross-sectional positioning parameter setting method, the component layout page can be displayed as follows: Figure 2 As shown, the user needs to click the "Pick Geometry" button at this point. Correspondingly, the component placement system can automatically identify the cross-sectional geometry corresponding to the current linear engineering model. When the linear engineering is a shield tunnel with a circular cross-section, the cross-sectional geometry is a ring with the center point as the origin.
[0039] S250. Based on the input operation of the horizontal distance of the component, obtain the current horizontal distance, and based on the setting operation of the rotation angle of the cross section of the component, obtain the current rotation angle of the cross section.
[0040] Next, the current horizontal distance (X-axis distance) input by the user can be obtained, as well as the current cross-sectional rotation angle set by the user using a specified angle or an automatic centripetal method.
[0041] S260. Based on the cross-sectional geometry, the current horizontal distance, and the current cross-sectional rotation angle, obtain the cross-sectional positioning parameters, and based on the planar positioning parameters, obtain each layout station number and the corresponding planar rotation angle and cross-sectional quadrant.
[0042] Finally, a set of cross-sectional geometry, current horizontal distance, and current cross-sectional rotation angle can be generated as the final cross-sectional positioning parameters.
[0043] Optionally, when the user selects the cross-sectional positioning parameter setting method as specifying a distance, the component layout page can be displayed as follows: Figure 7 As shown. At this point, the user needs to input the horizontal and vertical distances and set the current cross-sectional rotation angle. Correspondingly, the component layout system can directly determine the position coordinates corresponding to the layout station number based on the horizontal distance D, vertical distance H, and cross-sectional quadrant. The initial orientation of the target component is vertically downward by default. For the second and third quadrants, the rotation direction of the target component is counterclockwise; for the first and fourth quadrants, the rotation direction is clockwise. At this point, based on the horizontal distance D, vertical distance H, cross-sectional quadrant, and cross-sectional rotation angle... This allows us to determine the position and orientation of the target component in the cross-section.
[0044] S270. Based on the cross-sectional quadrant and the cross-sectional positioning parameters, obtain the position coordinates and cross-sectional rotation angles corresponding to each of the arrangement station numbers, and generate each component instance corresponding to the target component based on the position coordinates, cross-sectional rotation angles, and planar rotation angles corresponding to each of the arrangement station numbers.
[0045] Optionally, obtaining the position coordinates corresponding to each of the layout station numbers based on the cross-sectional quadrants and the cross-sectional positioning parameters may include: Establish the local coordinate system of the current cross-section geometry, and generate an initial ray based on the cross-section quadrant, the current cross-section rotation angle, and the current cross-section local coordinate system; Obtain the intersection point of the initial ray and the circular inner wall of the current cross-sectional geometry, and offset the intersection point inward according to the current horizontal distance to obtain the component placement point; Obtain the position coordinates of the component placement point in the local coordinate system of the current cross section, and use them as the position coordinates corresponding to the current placement station.
[0046] In this embodiment, when the cross-sectional positioning parameter setting method is automatic adsorption of the inner wall, firstly, a rectangular coordinate system corresponding to the current cross-sectional geometry is established as the current cross-sectional local coordinate system, whose axis is consistent with the tangential vector at the current position of the centerline. Next, using the origin of the current cross-sectional local coordinate system as the endpoint, and based on the cross-sectional quadrant and the current cross-sectional rotation angle, the ray direction (pointing to the current cross-sectional quadrant) is determined. Then, based on the endpoint and the ray direction, the initial ray is determined. For example, for the first and third quadrants, the Y-axis of the current cross-sectional local coordinate system is rotated clockwise by the current cross-sectional rotation angle to obtain the ray direction; for the second and fourth quadrants, the Y-axis is rotated counterclockwise by the current cross-sectional rotation angle to obtain the ray direction. It can be understood that the ray direction determination rule can be adaptively adjusted according to the task scenario.
[0047] Furthermore, the intersection point of the initial ray and the circular inner wall of the current cross-sectional geometry is obtained, and the horizontal distance corresponding to this intersection point is read. Then, the difference between this horizontal distance and the current horizontal distance is calculated, and the initial ray is translated along the X-axis according to this difference to obtain the target ray. Specifically, if the difference is greater than 0, the translation is made closer to the origin; if the difference is less than 0, the translation is made farther away from the origin. Finally, the intersection point of the target ray and the circular inner wall is obtained as the component placement point, and the position coordinates of the component placement point in the local coordinate system of the current cross-section are read as the position coordinates corresponding to the placement station.
[0048] Optionally, when using automatic centripetal setting of the cross-sectional rotation angle, the target component always faces the center point. In this case, for the specified distance method, the component placement point is first determined based on the cross-sectional quadrant, horizontal distance, and vertical distance; then, the target component is controlled to rotate from its default initial orientation at the placement point until it aligns with the center point, and the rotation angle is read as the cross-sectional rotation angle. Alternatively, for the automatic adsorption to the inner wall method, the component placement point on the inner wall is first determined based on the cross-sectional quadrant and horizontal distance; then, the target component is controlled to rotate from its default initial orientation at the placement point until it aligns with the center point, thereby obtaining the cross-sectional rotation angle. Automatic centripetal setting can be implemented as follows: Figure 8 As shown, the left side represents the default initial orientation.
[0049] It should be noted that, to ensure consistent component orientation after batch deployment, this invention stipulates that the X-axis direction of the local coordinate system created by the component within its own environment is consistent with the direction of the tangent vector at the corresponding station point on the centerline (start point -> end point). This rule is used to unify the default orientation and serve as a benchmark for calculating and reusing rotation angles. The parameters of the finally generated component instances have default values and value constraints to ensure project usability and stability.
[0050] This invention proposes an intelligent batch layout method applicable to shield-type circular cross-section tunnels / pipe galleries. The positioning parameters are divided into two main categories: (1) Planar positioning parameters (along the centerline), which realize the batch generation of layout points along the line by picking the centerline, specifying the start and end station numbers, the layout spacing, and the layout positions in the four quadrants of the centerline (upper left / upper right / lower left / lower right); (2) Cross-section positioning parameters (within the circular cross-section), which provides two cross-section positioning methods: "automatic adsorption of the inner wall" and "specified distance". The former determines the cross-section position based on picking the geometry and combining the horizontal distance and the cross-section rotation angle, while the latter determines the cross-section position through the vertical distance, horizontal distance, and cross-section rotation angle. At the same time, this invention introduces two independent angle control mechanisms: planar rotation angle and cross-section rotation angle. The planar rotation angle can be directly input or determined by "placing the first component first - manually rotating - reading the angle with the tangent direction of the centerline - reusing it to all components", thereby adapting to the batch direction consistency requirements of asymmetrical components.
[0051] Compared with the closest existing technology, the technical effects of the present invention can include: (1) High-efficiency batch processing for linear engineering, driven by the centerline station number and spacing, completing the regular layout over a long distance in one go, significantly reducing the physical workload of placing each one individually. (2) Plane + cross-section dual-layer positioning, adapted to the circular cross-section of shield tunnels, clearly dividing the positioning into two sub-problems along the line and the cross-section, and providing two cross-section strategies of "adhesion to the inner wall / specified distance", adapted to the characteristics of circular cross-section engineering. (3) Controllable consistency of asymmetric component orientation, providing independent rotation angle parameters for plane and cross-section for non-axisymmetric / non-centrosymmetric components, and supporting the mechanism of "manually specifying the angle as a global reference", taking into account both automation and controllability. (4) Engineering scalability, while meeting the layout of all types of components in the default electrical (lighting) equipment library, the parameter system takes into account the differences in professional fields such as hydraulic engineering and HVAC (for example, drainage components do not need to be ceiling-mounted, and are often located below the centerline or on the ground of other compartments), and has the foundation for cross-professional promotion. (5) The product has strong applicability. The parameter value range, default value and interaction process have been defined. It can be directly implemented as an independent function and iterated to non-circular cross-section scenarios.
[0052] The technical solution of this invention, based on the setting operation of the positioning parameters of the target component, if it is detected that the current cross-sectional positioning parameter setting method is automatic adsorption of the inner wall, then based on the selection operation of the pick geometry button, the cross-sectional geometry corresponding to the current linear engineering model is obtained; based on the input operation of the horizontal distance of the component, the current horizontal distance is obtained, and based on the setting operation of the cross-sectional rotation angle of the component, the current cross-sectional rotation angle is obtained; based on the cross-sectional geometry, the current horizontal distance, and the current cross-sectional rotation angle, the cross-sectional positioning parameters are obtained; by providing an automatic adsorption of the inner wall method for setting the cross-sectional positioning parameters, the setting efficiency of the cross-sectional positioning parameters can be improved, and the component layout efficiency can be improved.
[0053] Example 3 Figure 9 This is a structural schematic diagram of a component arrangement device provided in Embodiment 3 of the present invention. Figure 9 As shown, the device includes: a component acquisition module 310, a parameter acquisition module 320, and an instance generation module 330; wherein, The component acquisition module 310 is used to acquire the target component based on the component selection operation in the component layout page; The parameter acquisition module 320 is used to acquire planar positioning parameters and cross-sectional positioning parameters according to the positioning parameter setting operation of the target component, and to acquire each layout station number and the corresponding planar rotation angle and cross-sectional quadrant according to the planar positioning parameters. The instance generation module 330 is used to obtain the position coordinates and cross-sectional rotation angles corresponding to each of the arrangement stations according to the cross-sectional quadrants and the cross-sectional positioning parameters, and generate each component instance corresponding to the target component according to the position coordinates, cross-sectional rotation angles and plane rotation angles corresponding to each of the arrangement stations.
[0054] The technical solution of this invention involves obtaining a target component based on a component selection operation on a component layout page; obtaining planar positioning parameters and cross-sectional positioning parameters based on a positioning parameter setting operation for the target component; obtaining each layout station number and its corresponding planar rotation angle and cross-sectional quadrant based on the planar positioning parameters; obtaining the position coordinates and cross-sectional rotation angle corresponding to each layout station number based on the cross-sectional quadrant and cross-sectional positioning parameters; and generating component instances corresponding to the target component based on the position coordinates, cross-sectional rotation angle, and planar rotation angle corresponding to each layout station number. By providing a component layout page for visual setting of planar and cross-sectional positioning parameters, and obtaining the position coordinates, cross-sectional rotation angle, and planar rotation angle corresponding to each layout station number based on the planar and cross-sectional positioning parameters, and then generating the final component instances based on the obtained information, the automatic generation of station number spatial points and component instances can be achieved, and unified orientation control can be achieved for asymmetrical components during batch layout.
[0055] Optionally, the component acquisition module 310 is specifically used to acquire the current linear engineering model based on the selection operation of the linear engineering model, and to visualize the component layout page based on the component layout trigger operation of the current linear engineering model. Based on the component selection operation on the component layout page, obtain the component name and component model, and obtain the target component based on the component name and component model.
[0056] Optionally, the parameter acquisition module 320 includes: The centerline acquisition unit is used to acquire the centerline corresponding to the current linear engineering model based on the selection operation of the centerline acquisition button in the component layout page, and to acquire the starting station number and ending station number based on the selection operation of the starting point acquisition button and the ending point acquisition button. Angle acquisition unit is used to obtain the current arrangement spacing based on the input operation of the component arrangement spacing, and to obtain the current plane rotation angle based on the setting operation of the component plane rotation angle; The planar positioning parameter acquisition unit is used to obtain the cross-sectional quadrant based on the selection operation of the component layout position, and to obtain the planar positioning parameters based on the centerline, the starting station number, the ending station number, the current layout spacing, the current plane rotation angle, and the cross-sectional quadrant.
[0057] Optionally, the angle acquisition unit is specifically used to, based on the setting operation of the component plane rotation angle, if it is detected that the current plane rotation angle setting method is manually specified, display the plane model corresponding to the target component, and obtain the current plane rotation angle based on the rotation operation of the plane model.
[0058] Optionally, the parameter acquisition module 320 also includes: The quantity acquisition unit is used to acquire the centerline, the starting station number, the ending station number and the current arrangement spacing according to the plane positioning parameters, and to calculate the arrangement quantity according to the centerline and the current arrangement spacing; The chainage calculation unit is used to calculate the chainage difference based on the starting chainage and the ending chainage, and to calculate the chainage of each arrangement based on the chainage difference and the arrangement quantity.
[0059] Optionally, the parameter acquisition module 320 also includes: The geometry acquisition unit is used to acquire the cross-sectional geometry corresponding to the current linear engineering model based on the positioning parameter setting operation of the target component. If it is detected that the current cross-sectional positioning parameter setting method is automatic adsorption of the inner wall, the cross-sectional geometry is acquired based on the selection operation of the pick geometry button. The distance acquisition unit is used to acquire the current horizontal distance based on the input operation of the horizontal distance of the component, and to acquire the current cross-sectional rotation angle based on the setting operation of the cross-sectional rotation angle of the component. The cross-section positioning parameter acquisition unit is used to acquire the cross-section positioning parameters based on the cross-section geometry, the current horizontal distance, and the current cross-section rotation angle.
[0060] Optionally, the instance generation module 330 is specifically used to establish the local coordinate system of the current cross-section corresponding to the current cross-section geometry, and generate an initial ray based on the cross-section quadrant, the current cross-section rotation angle and the current cross-section local coordinate system; Obtain the intersection point of the initial ray and the circular inner wall of the current cross-sectional geometry, and offset the intersection point inward according to the current horizontal distance to obtain the component placement point; Obtain the position coordinates of the component placement point in the local coordinate system of the current cross section, and use them as the position coordinates corresponding to the current placement station.
[0061] The component arrangement device provided in the embodiments of the present invention can execute the component arrangement method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method.
[0062] The collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0063] Example 4 Figure 10A schematic diagram of an electronic device 40 that can be used to implement embodiments of the present invention is shown. The electronic device 40 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0064] like Figure 10 As shown, the electronic device 40 includes at least one processor 41 and a memory, such as a read-only memory (ROM) 42 or a random access memory (RAM) 43, communicatively connected to the at least one processor 41. The memory stores computer programs executable by the at least one processor. The processor 41 can perform various appropriate actions and processes based on the computer program stored in the read-only memory 42 or loaded from the storage unit 48 into the random access memory 43. The RAM 43 can also store various programs and data required for the operation of the electronic device 40. The processor 41, ROM 42, and RAM 43 are interconnected via a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.
[0065] Multiple components in electronic device 40 are connected to I / O interface 45, including: input unit 46, such as keyboard, mouse, etc.; output unit 47, such as various types of monitors, speakers, etc.; storage unit 48, such as disk, optical disk, etc.; and communication unit 49, such as network card, modem, wireless transceiver, etc. Communication unit 49 allows electronic device 40 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0066] Processor 41 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 41 include, but are not limited to, central processing units, graphics processing units, various special-purpose artificial intelligence computing chips, various processors running machine learning model algorithms, digital signal processors, and any suitable processor, controller, microcontroller, etc. Processor 41 performs the various methods and processes described above, such as component arrangement methods.
[0067] In some embodiments, the component placement method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or mounted on electronic device 40 via ROM 42 and / or communication unit 49. When the computer program is loaded into RAM 43 and executed by processor 41, one or more steps of the component placement method described above may be performed. Alternatively, in other embodiments, processor 41 may be configured to perform the component placement method by any other suitable means (e.g., by means of firmware).
[0068] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays, application-specific integrated circuits (ASICs), application-specific standard products (ASICs), system-on-a-chip (SoCs), complex programmable logic devices, computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0069] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0070] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory, read-only memory, erasable programmable read-only memory, optical fibers, portable compact disk read-only memory, optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0071] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device 40, which includes: a display device (e.g., a cathode ray tube or liquid crystal display) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device 40. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0072] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0073] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact via a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server.
[0074] This embodiment may also include a computer program product, which includes a computer program that, when executed by a processor, implements the component arrangement method provided in any embodiment of the present invention.
[0075] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0076] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method of arranging components, characterized by, include: Obtain the target component based on the component selection operation on the component layout page; Based on the positioning parameter setting operation of the target component, the planar positioning parameters and cross-sectional positioning parameters are obtained, and based on the planar positioning parameters, the station numbers of each arrangement and the corresponding planar rotation angle and cross-sectional quadrant are obtained. Based on the cross-sectional quadrant and the cross-sectional positioning parameters, obtain the position coordinates and cross-sectional rotation angles corresponding to each of the arrangement station numbers, and generate each component instance corresponding to the target component based on the position coordinates, cross-sectional rotation angles, and planar rotation angles corresponding to each of the arrangement station numbers.
2. The method of claim 1, wherein, Based on the component selection operation on the component layout page, obtain the target component, including: Based on the selection operation of the linear engineering model, the current linear engineering model is obtained, and based on the component layout trigger operation of the current linear engineering model, the component layout page is visualized. Based on the component selection operation on the component layout page, obtain the component name and component model, and obtain the target component based on the component name and component model.
3. The method of claim 2, wherein, Based on the positioning parameter setting operation for the target component, planar positioning parameters are obtained, including: Based on the selection operation of the "Pick Centerline" button in the component layout page, the centerline corresponding to the current linear engineering model is obtained, and based on the selection operation of the "Pick Start Point" and "Pick End Point" buttons, the starting station number and ending station number are obtained. Based on the input operation of the component layout spacing, obtain the current layout spacing, and based on the setting operation of the component plane rotation angle, obtain the current plane rotation angle; Based on the selection operation of the component layout position, the cross-sectional quadrant is obtained, and the planar positioning parameters are obtained based on the centerline, the starting station number, the ending station number, the current layout spacing, the current plane rotation angle, and the cross-sectional quadrant.
4. The method of claim 3, wherein, Based on the setting operation of the component plane rotation angle, obtain the current plane rotation angle, including: Based on the setting operation of the component plane rotation angle, if it is detected that the current plane rotation angle setting method is manually specified, the plane model corresponding to the target component is displayed, and the current plane rotation angle is obtained based on the rotation operation of the plane model.
5. The method of claim 3, wherein, Based on the aforementioned planar positioning parameters, obtain the station numbers for each arrangement, including: Based on the planar positioning parameters, the centerline, the starting station number, the ending station number, and the current arrangement spacing are obtained, and the arrangement quantity is calculated based on the centerline and the current arrangement spacing. The chainage difference is calculated based on the starting chainage and the ending chainage, and the chainage of each arrangement is calculated based on the chainage difference and the arrangement quantity.
6. The method of claim 2, wherein, Based on the positioning parameter setting operation for the target component, the cross-sectional positioning parameters are obtained, including: Based on the positioning parameter setting operation of the target component, if it is detected that the current cross-section positioning parameter setting method is automatic adsorption of the inner wall, then based on the selection operation of the pick geometry button, the cross-section geometry corresponding to the current linear engineering model is obtained. Based on the input operation of the horizontal distance of the component, the current horizontal distance is obtained, and based on the setting operation of the rotation angle of the cross section of the component, the current rotation angle of the cross section is obtained. The cross-section positioning parameters are obtained based on the cross-section geometry, the current horizontal distance, and the current cross-section rotation angle.
7. The method of claim 6, wherein, Based on the cross-sectional quadrants and the cross-sectional positioning parameters, obtain the position coordinates corresponding to each of the layout station numbers, including: Establish the local coordinate system of the current cross-section geometry, and generate an initial ray based on the cross-section quadrant, the current cross-section rotation angle, and the current cross-section local coordinate system; Obtain the intersection point of the initial ray and the circular inner wall of the current cross-sectional geometry, and offset the intersection point inward according to the current horizontal distance to obtain the component placement point; Obtain the position coordinates of the component placement point in the local coordinate system of the current cross section, and use them as the position coordinates corresponding to the current placement station.
8. An electronic device, comprising: The electronic device includes: At least one processor, and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the component arrangement method according to any one of claims 1-7.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the component arrangement method according to any one of claims 1-7.
10. A computer program product, characterised in that, It includes a computer program that, when executed by a processor, implements the component arrangement method according to any one of claims 1-7.