Communication distribution frame drawing automatic generation method and system based on multi-dimensional configuration data

By analyzing multi-dimensional data to construct a hierarchical logical object model and calculating the coordinates of the equipment base points, communication patch panel drawings are automatically generated, solving the problems of low efficiency and inconsistency caused by manual operation in existing technologies, and achieving efficient and accurate drawing generation.

CN121479981APending Publication Date: 2026-02-06CHINA RAILWAY FIRST SURVEY & DESIGN INST GRP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511340947.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-19
Publication Date
2026-02-06

AI Technical Summary

Technical Problem

In existing technologies, the process of generating communication patch panel drawings relies on manual operation, which leads to low design efficiency, inconsistencies between data and graphics, and frequent errors, affecting the quality and accuracy of the drawings.

Method used

By acquiring and parsing structured configuration files containing multi-dimensional data, a hierarchical logical object model is constructed. A two-dimensional automatic layout algorithm is used to calculate the coordinates of the equipment base points and automatically generate CAD graphic entities, forming a complete patch panel drawing.

Benefits of technology

It has achieved an automated generation process, ensuring consistency between drawings and data, improving design efficiency and drawing quality, reducing human error, enhancing design flexibility and drawing standardization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121479981A_ABST
    Figure CN121479981A_ABST
Patent Text Reader

Abstract

The invention discloses a communication distribution frame drawing automatic generation method and system based on multi-dimensional configuration data, and the method comprises the steps: analyzing a structured configuration file containing multi-dimensional information such as equipment, ports and connection relationships, and converting the structured configuration file into standardized intermediate data; constructing a hierarchical logic object model containing a complete network topological relation in a computer memory according to the standardized data; executing a two-dimensional automatic layout algorithm based on a preset layout rule, and calculating an accurate geometric coordinate for each equipment object in the logic object model; and according to the geometric coordinates and detailed attributes in the logic object model, automatically generating and rendering a corresponding CAD graph entity, and finally forming a complete distribution frame drawing. According to the method and the device, the full-automatic generation from the design data to the CAD drawing is realized, the design efficiency and accuracy are remarkably improved, and the consistency of the data and the graph is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer-aided design (CAD), and particularly relates to a communication distribution frame drawing automatic generation method and system based on multi-dimensional configuration data. BACKGROUND

[0002] In the design work in the fields of communication network engineering, data center construction and railway signal system, the layout of the distribution frame (for example, optical fiber distribution frame ODF, digital distribution frame DDF, data distribution frame RJ45) and its port connection relationship are the core part of the design. These design information is usually managed in the form of an electronic table (such as Excel), which contains complex multi-dimensional data such as equipment model, quantity, installation position, port purpose, connection relationship between equipment and cable specification.

[0003] In the prior art, the process of converting the above design data into the final CAD construction drawing has the following defects:

[0004] 1) First of all, this process highly depends on manual operation. Design engineers need to manually interpret the data in the electronic table, then manually find and place the graphic symbol of each equipment module in the CAD software (such as AutoCAD), and then arrange the port graphics one by one according to the specification, and manually add a large number of text annotations such as equipment name, port number and connection information. This process has high repetitive labor intensity and low design efficiency.

[0005] 2) Secondly, the design data and the final graphics are in a separated state. The electronic table and the CAD drawing are two independent files, and there is no effective association mechanism between them. When the design requirements change, the engineer must maintain two files at the same time, first update the electronic table, and then make corresponding and tedious graphic modifications in the CAD drawing. This separated working mode is easy to cause inconsistency between the CAD drawing and the latest design data, which poses hidden dangers for subsequent construction, debugging and operation and maintenance work.

[0006] 3) Finally, the manual drawing method is easy to introduce errors. In complex designs, manual operation may cause non-standard equipment layout, incorrect port quantity, incorrect connection relationship drawing or missing text annotations, and these errors are difficult to completely discover through manual review, thereby affecting the quality and accuracy of the final delivered drawing.

[0007] Therefore, there is an urgent need for a technical solution that can deeply integrate design data and CAD drawing generation process to realize the automatic, efficient and accurate generation of communication distribution frame drawings. SUMMARY

[0008] The application provides a method and system for automatically generating a communication distribution frame drawing based on multi-dimensional configuration data to solve the above technical problems of the existing communication distribution frame drawing generation method.

[0009] According to the first aspect, a method for automatically generating a communication distribution frame drawing based on multi-dimensional configuration data is provided in an embodiment, and the method comprises:

[0010] acquiring and parsing a structured configuration file containing multi-dimensional data and converting it into standardized intermediate data;

[0011] based on the standardized intermediate data, constructing a hierarchical logical object model containing multiple device objects and establishing a complete inter-device connection network topology relationship in the model;

[0012] collecting a two-dimensional automatic layout algorithm based on a preset layout rule to calculate the base point coordinates of each device object in the hierarchical logical object model on a two-dimensional drawing plane;

[0013] based on the calculated base point coordinates of the device objects, automatically generating and rendering CAD graphic entities to finally form a complete distribution frame drawing.

[0014] Further, acquiring and parsing a structured configuration file containing multi-dimensional data and converting it into standardized intermediate data specifically comprises:

[0015] reading a structured configuration file of multi-dimensional data in a preset format, including device template information, device port configuration information, device deployment information, and inter-device connection relationship;

[0016] parsing the multi-dimensional data in the structured configuration file into a plurality of data object lists;

[0017] serializing the data object list into a standardized intermediate data format.

[0018] Further, based on the standardized intermediate data, a hierarchical logical object model containing multiple device objects is constructed, and a complete inter-device connection network topology relationship is established in the model, specifically comprising:

[0019] based on the standardized intermediate data, a hierarchical logical object model containing a top-level container object and multiple device objects is constructed in the computer memory;

[0020] by performing an associated query on the plurality of data object lists, the inter-device connection relationship is accurately assigned to the connection attributes of the corresponding device objects and the port objects contained therein, thereby forming a complete network topology relationship in the hierarchical logical object model.

[0021] Further, a two-dimensional automatic layout algorithm based on preset layout rules is collected, and base point coordinates of each device object in the hierarchical logical object model on a two-dimensional drawing plane are calculated, specifically including:

[0022] a. initializing a two-dimensional drawing container with a preset boundary, and setting vertical and horizontal distances between device objects;

[0023] b. using a column filling algorithm strategy, starting from an initial coordinate point, sequentially arranging device objects in a preset direction in the two-dimensional drawing container;

[0024] c. before arranging each device object, judging whether it will exceed the boundary of the two-dimensional drawing container in the preset direction after being added to the current column;

[0025] d. if not exceeding the boundary, calculating the coordinates of the current device object according to the position, size and vertical distance of the previous device object; if exceeding the boundary, switching to a new column, calculating the starting coordinates of the new column according to the width of the previous column and the horizontal distance, and arranging the current device object from the corresponding starting coordinates;

[0026] e. repeating steps c and d until the base point coordinates of each device object in the hierarchical logical object model on the two-dimensional drawing plane are calculated.

[0027] Further, the specific steps of the column filling algorithm include:

[0028] Bottom boundary Y coordinate calculation: used to determine the lowest allowed position of device layout; subtract the total height of the drawing area from the top of the drawing area and add the bottom margin to obtain an accurate Y axis boundary value, the specific formula is as follows:

[0029] Y boundary =Y start -H canvas +Margin bottom

[0030] Wherein, Y boundary is the bottom boundary Y coordinate of the drawing area; P start =(X start ,Y start ) is the top left corner starting coordinate of the drawing area; H canvas is the total height of the drawing area; Margin bottom is the bottom margin of the drawing area.

[0031] Further, the specific steps of the column filling algorithm include:

[0032] Intra-column Y coordinate calculation: used to calculate the position of the next device from top to bottom in the same column; the kth device Dk The coordinates of the device D k-1 are based on the Y coordinates of the previous device D

[0033] Y k = Y k-1 -H k-1 -M v

[0034] wherein Y k is the Y coordinate of the device D k ; Y k-1 is the Y coordinate of the device D k-1 ; H k-1 is the height of the device D k-1 ; and M v is the vertical spacing between devices.

[0035] Further, the specific steps of the column filling algorithm include:

[0036] The boundary judgment condition for changing columns: before placing the device D k , the algorithm will calculate the bottom Y coordinate Y current -H k of the device after placement, and if the value of Y current -H k is less than the preset bottom boundary Y boundary , it proves that the current column space is insufficient, and the column must be changed. The specific formula is as follows:

[0037] Y current -H k < Y boundary

[0038] wherein H k is the height of the device D k , and Y current represents the starting Y coordinate of the device that can be placed in the current column.

[0039] Further, the specific steps of the column filling algorithm include:

[0040] New column X coordinate calculation: used to calculate the starting X coordinate of the new column, i.e., the jth column; based on the X coordinate of the previous column, i.e., the (j-1)th column, add the width of the previous column and the fixed horizontal spacing, so as to ensure that the columns are arranged in a neat and consistent manner, the specific formula is as follows:

[0041]

[0042] wherein X is the starting X coordinate of the jth column; X-coordinate of the j-1th column; width of the j-1th column, taking the width of the widest device in the corresponding column; M h horizontal spacing between devices.

[0043] Further, based on the calculated base point coordinates of the device objects, CAD graphical entities are automatically generated and rendered, and finally a complete wiring frame drawing is formed, specifically including:

[0044] traversing all the device objects whose base point coordinates have been calculated;

[0045] According to the type, size, base point coordinates of each device object, and the attributes of the port objects contained therein, a graphical generation module is called;

[0046] Using the graphical generation module, graphical entities corresponding to the device objects, port objects and text information are automatically generated in the CAD drawing environment, and finally a complete communication wiring frame drawing is formed.

[0047] According to a second aspect, an embodiment provides a communication wiring frame drawing automatic generation system based on multi-dimensional configuration data, the system comprising:

[0048] A data analysis module is configured to obtain and analyze a structured configuration file containing multi-dimensional data, and convert it into standardized intermediate data;

[0049] A logical object modeling module is configured to construct a hierarchical logical object model containing a plurality of device objects based on the standardized intermediate data, and establish a complete inter-device connection network topology relationship in the model;

[0050] An automatic layout module is configured to collect a two-dimensional automatic layout algorithm based on a preset layout rule, and calculate the base point coordinates of each device object in the hierarchical logical object model on a two-dimensional drawing plane;

[0051] A graphical generation module is configured to automatically generate and render CAD graphical entities based on the calculated base point coordinates of the device objects, and finally form a complete wiring frame drawing.

[0052] According to a third aspect, an embodiment provides an electronic device, the device comprising: a processor and a memory;

[0053] The memory is configured to store one or more program instructions;

[0054] The processor is configured to run one or more program instructions to perform the steps of the communication wiring frame drawing automatic generation method based on multi-dimensional configuration data according to any one of the above.

[0055] The application provides a communication distribution frame drawing automatic generation method and system based on multi-dimensional configuration data, which has the following beneficial effects:

[0056] 1) Improved design efficiency: through the automatic processing flow, the traditional manual drawing process is changed into a data-driven automatic generation process, significantly shortening the design cycle of the drawing.

[0057] 2) Ensure the consistency of data and graphics: the drawing is directly generated from the design data, ensuring that the graphic content and the source data are strictly consistent at any time, avoiding the mismatch problem caused by manual operation.

[0058] 3) Enhanced design flexibility: design changes can be realized by modifying the source configuration file, and the system can quickly regenerate the drawing based on the updated data, thereby efficiently responding to design iteration.

[0059] 4) Improve the standardization level of the drawing: layout and drawing are performed by unified algorithms and rules, ensuring the standardization and consistency of all output drawings in terms of style, layout, labeling, etc., improving the overall quality of the drawing. BRIEF DESCRIPTION OF DRAWINGS

[0060] Figure 1 A flowchart of a communication distribution frame drawing automatic generation method based on multi-dimensional configuration data is provided for an embodiment of the application;

[0061] Figure 2 A CAD layout diagram automatically generated in a communication distribution frame drawing automatic generation method based on multi-dimensional configuration data is provided for an embodiment of the application. DETAILED DESCRIPTION

[0062] The application will be further described in detail below through specific embodiments combined with the drawings. In different embodiments, similar elements are associated with similar element labels. In the following embodiments, many details are described in order to make the application better understood. However, those skilled in the art can easily recognize that some features can be omitted or replaced by other elements, materials or methods in different cases. In some cases, some operations related to the application are not shown or described in the specification in order to avoid the core part of the application being overwhelmed by too much description, and it is not necessary to describe these related operations in detail for those skilled in the art based on the description in the specification and general technical knowledge in the art.

[0063] In addition, features, operations or characteristics described in the specification can be combined in any appropriate manner to form various embodiments. Meanwhile, the steps or actions in the method description can also be sequentially changed or adjusted in a manner that is apparent to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for the purpose of clearly describing a certain embodiment, and do not mean that the sequence is necessary, unless otherwise stated that a certain sequence must be followed.

[0064] The first embodiment of the present application provides a communication distribution frame drawing automatic generation method based on multi-dimensional configuration data. In this embodiment, the method is implemented through a.NET plug-in running on an AutoCAD platform. The following will be described in detail in combination with Figure 1 The drawings.

[0065] As shown in the drawings, Figure 1 In step S100, a structured configuration file containing multi-dimensional data is obtained and parsed, and converted into standardized intermediate data.

[0066] The above steps specifically include:

[0067] S110, reading a structured configuration file of a preset format, including multi-dimensional data of device template information, device port configuration information, device deployment information and connection relationship between devices;

[0068] S120, parsing the multi-dimensional data in the structured configuration file into a plurality of data object lists;

[0069] S130, serializing the data object list into a standardized intermediate data format.

[0070] Specifically, the data parsing and standardization step includes: first, the user prepares multi-dimensional configuration data in a preset format Excel file. The file can contain multiple worksheets, such as "template device configuration dictionary table" (table 1) and "template device connection relationship configuration dictionary table" (table 7). The data parsing module reads the specified Excel file using NPOI library, traverses the data rows of the worksheet, parses each row into a strongly typed C# object (such as TemplateDeviceTableEnt), and finally serializes the object list into a JSON format text file. This JSON file is the standardized intermediate data, which provides a unified data interface for subsequent processing.

[0071] As shown in the drawings, Figure 1 In step S200, based on the standardized intermediate data, a hierarchical logical object model containing a plurality of device objects is constructed, and a complete inter-device connection network topology relationship is established in the model.

[0072] The above steps specifically include:

[0073] S210, based on standardized intermediate data, constructs a hierarchical logical object model in computer memory that includes a top-level container object and multiple device objects;

[0074] S220, by performing a correlation query on multiple data object lists, accurately assigns the connection relationships between devices to the connection attributes of the corresponding device objects and their contained port objects, thereby forming a complete network topology relationship in the hierarchical logical object model.

[0075] Specifically, the steps for constructing the hierarchical logical object model include: reading the JSON data generated in step S130 and constructing a CabinetDevicesEnt object instance in memory. The key to this process lies in handling the connection relationships between devices. The system uses query techniques such as LINQ to perform join operations on multiple data lists. For example, the connection relationship data is matched with the device data using a join operation, thereby dynamically populating each connection relationship with the specific names of the devices connected to its two ends. Through such operations, a CabinetDevicesEnt logical model with complete object attributes and clearly defined topological relationships is ultimately constructed.

[0076] like Figure 1 As shown, in step S300, a two-dimensional automatic layout algorithm based on preset layout rules is collected to calculate the base point coordinates of each device object in the hierarchical logical object model on the two-dimensional drawing plane.

[0077] The above steps specifically include:

[0078] a. Initialize a two-dimensional drawing container with preset boundaries, and set the vertical and horizontal spacing between device objects;

[0079] b. Using a column-filling algorithm strategy, device objects are arranged sequentially along a preset direction starting from an initial coordinate point within the two-dimensional drawing container;

[0080] c. Before arranging each device object, determine whether it will exceed the boundary of the two-dimensional drawing container in the preset direction after being added to the current column;

[0081] d. If the boundary is not exceeded, calculate the coordinates of the current device object based on the position, size and vertical spacing of the previous device object; if the boundary is exceeded, switch to a new column, calculate the starting coordinates of the new column based on the width and horizontal spacing of the previous column, and arrange the current device objects from the corresponding starting coordinates.

[0082] e. Repeat steps c and d until the base point coordinates on the two-dimensional drawing plane are calculated for each device object in the hierarchical logical object model.

[0083] The core of this step is the column filling algorithm. This algorithm works in a drawing area with height limit. The mathematical model of this algorithm is as follows:

[0084] 1) Bottom boundary Y coordinate calculation: used to determine the lowest allowed position of the device layout; subtract the total height of the canvas from the top of the drawing area and add the bottom margin to obtain an accurate Y axis boundary value, the specific formula is as follows:

[0085] Y boundary =Y start -H canvas +Margin bottom (1)

[0086] Where Y boundary is the bottom boundary Y coordinate of the drawing area; P start = (X start , Y start ) is the top left corner starting coordinate of the drawing area; H canvas is the total height of the drawing area; Margin bottom is the bottom margin of the drawing area.

[0087] 2) Column Y coordinate calculation: used to calculate the position of the next device from top to bottom in the same column; the coordinate of the kth device D k is based on the Y coordinate of the previous device D k-1 , minus the height of the previous device and a fixed vertical spacing to achieve neat vertical arrangement, the specific formula is as follows:

[0088] Y k =Y k-1 -H k-1 -M v (2)

[0089] Where Y k is the Y coordinate of device D k ; Y k-1 is the Y coordinate of device D k-1 ; H k-1 is the height of device D k-1 ; M v is the vertical spacing between devices.

[0090] 3) Boundary judgment condition for column change: the algorithm will calculate the bottom Y coordinate Y k -H current of device D k before placing it, if the value of Y current -H k is less than the preset bottom boundary Y boundaryThis indicates that the current column is running out of space and a new column must be used. The specific formula is as follows:

[0091] Y current -H k <Y boundary (3)

[0092] Among them, H k For device D k Height; Y current This indicates the starting Y-coordinate where the device can be placed in the current column, calculated according to formula (2).

[0093] 4) Calculation of the X-coordinate of the new column: This is used to calculate the starting X-coordinate of the new column, i.e., column j. Based on the X-coordinate of the previous column (i.e., column j-1), the width of the previous column and a fixed horizontal spacing are added to ensure that the columns are neatly arranged and have consistent spacing. The specific formula is as follows:

[0094]

[0095] in, Let x be the starting x-coordinate of the j-th column; Let x be the x-coordinate of the (j-1)th column; For the width of column j-1, take the width of the widest device in the corresponding column; M h This refers to the horizontal spacing between devices.

[0096] Among them, P i =(X i ,Y i ) for device D i Calculated top-left corner layout coordinates; D i This is the i-th device module instance to be laid out.

[0097] like Figure 1 As shown, in step S400, based on the calculated base point coordinates of the device object, a CAD graphic entity is automatically generated and rendered, ultimately forming a complete patch panel drawing.

[0098] The above steps specifically include:

[0099] S410, iterate through all device objects whose base point coordinates have been calculated;

[0100] S420 calls the graphics generation module based on the type, size, base point coordinates, and attributes of the port objects contained in each device object;

[0101] S430 uses a graphics generation module in a CAD drawing environment to automatically generate graphic entities that correspond one-to-one with the device objects, port objects, and text information, and finally combines them to form a complete communication patch panel drawing.

[0102] Specifically, the graphic entity generating and visualizing step includes: receiving the CabinetDevicesEnt model with accurate coordinates, and calling corresponding drawing classes to draw. Figure 2 The final generated drawing contains neatly arranged device modules. The graphic generating module creates AutoCAD graphic entities such as Polyline, Circle, DBText, etc. according to the geometric properties such as BasePoint, Width, Height of the input ODFDeviceEnt object, and content properties such as OutLeftTitle, ODFDevicePorts, etc., and adds them to the model space of CAD.

[0103] The method of the application is described below through a specific operation example:

[0104] Suppose a communication cabinet wiring diagram containing 88 ODF modules, 16 DDF modules, 13 RJ45 modules and 2 VDF modules needs to be generated.

[0105] Data preparation: the user configures in the Excel file.

[0106] In the "template device configuration dictionary table" (Table 1), a plurality of device instances and their quantities are defined, including templatedevice149 (STM-64), templatedevice150 (STM-16), etc.

[0107] In the "device type dictionary table" (Table 2), devicetype102 is defined as "optical fiber distribution module (12 cores)", devicetype54 is defined as "digital distribution module (20 systems)", etc., and the specifications of various distribution frames are clearly defined.

[0108] In the "template device connection relationship configuration dictionary table" (Table 7), the connection relationship between devices is defined in detail, for example, templaterelation185 defines that there is an optical fiber connection of 2 routes of 2.5Gb / s (o) between templatedevice149 (STM-64) and templatedevice150 (STM-16).

[0109] In the "template device port configuration dictionary table" (Table 5), devicetype01 (STM-64) device is defined to contain 10 GE (o) ports, 126 2Mb / s ports, etc.

[0110] In the "channel wiring configuration dictionary table" (table 6), it is indicated that the channel of GE (o) type should use ODF type distribution frame, and the channel of 2Mb / s type should use DDF type distribution frame.

[0111] Execute command and data processing:

[0112] The user triggers the PPASA_Excel2InnerData command in the CAD environment, and the system executes step S100 to convert the data of all worksheets in the Excel file (such as tables 1 to 7) into multiple independent JSON files.

[0113] Table 1 Template device configuration dictionary table

[0114]

[0115]

[0116] Table 2 Device type dictionary table

[0117] Id ProjectName Spec Unit devicetype102 Optical fiber distribution module 12 cores Number devicetype109 Access network unit equipment ONU-64 Suit devicetype17 Access network local end equipment OLT Suit devicetype54 Digital distribution module 20 systems Number devicetype55 Data distribution module 24 ports Number devicetype60 110 distribution module 100 pairs 10 blocks

[0118] Table 3 Cable type dictionary table

[0119] Id ProjectName Spec Unit CoreCount CableTyleId 246 Optical cable GYTAH{^58}24 cores Kilometer 24 cabletype246 249 Optical cable GYTAH{^58}48 cores Kilometer 48 cabletype249

[0120] Table 4 Optical cable introduction configuration dictionary table

[0121]

[0122]

[0123] Table 5 Template device port configuration dictionary table

[0124]

[0125]

[0126] Table 6 Channel wiring configuration dictionary table

[0127]

[0128]

[0129] Table 7 Template device connection relationship configuration dictionary table

[0130]

[0131]

[0132]

[0133]

[0134]

[0135] Subsequently, the user specifies the drawing insertion base point and executes the PPASA_AutoPlace command. The system first executes step S200. All JSON files are read using the GetCabinetData() method. The HandleCabinetDevicesData() method performs deep integration of the above multi-dimensional data through a complex LINQ query. For example, the system calculates that all GE(o) ports of the STM-64 device need to occupy 10 core positions on the ODF distribution frame, and its 2Mb / s port needs to occupy 126 systems on the DDF distribution frame, according to the connection relationship table, port configuration table and channel wiring table. After these calculation results are integrated, a complete CabinetDevicesEnt object instance containing all logical relationships is finally constructed.

[0136] Automatic layout:

[0137] The system then executes step S300, calling the ComputerDrawDevice() method.

[0138] The algorithm starts layout in a drawing container preset to A3 paper height according to the total number of each type of distribution frame calculated (ODF: 88, DDF: 16, RJ45: 13, VDF: 2).

[0139] The algorithm first starts from the top left corner and places the 88 ODF modules in order along the Y axis downward. Assuming that each column can accommodate a maximum of 9 ODF modules, when placing the 10th module, the algorithm determines that the current column space is insufficient through the formula. Therefore, the algorithm triggers the column change logic, calculates the X coordinate of the new column according to the formula, and sets the BasePoint of the 10th ODF module at the top of the new column. This process will be repeated until the 88 ODF modules are distributed in about 10 columns.

[0140] After placing all ODF modules, the algorithm will change columns again and start placing the 16 DDF modules in order. Similarly, the DDF modules will also be automatically distributed in multiple columns according to the space.

[0141] Thereafter, the layout of 13 RJ45 modules and 2 VDF modules is completed in turn.

[0142] Graph generation:

[0143] Finally, the system executes step S400. The DrawPreviewRect() method iterates through all the device objects in cabinetDevicesEnt.

[0144] For each ODFDeviceEnt object, a DrawODFDevice instance is created and its DrawOneODFDevice() method is called. This method draws a rectangular frame, port circles and text according to the BasePoint, Width, Height, etc. properties of the odfDeviceEnt object.

[0145] Similar operations are performed for DDFDeviceEnt, RJ45DeviceEnt and VDFDeviceEnt objects.

[0146] Finally, a CAD drawing containing 88 ODF modules, 16 DDF modules, 13 RJ45 modules and 2 VDF modules, and all the layout and labeling are correct, is automatically generated as shown in FIG. 4. Figure 2

[0147] Corresponding to the above disclosed method for automatically generating a communication patch panel drawing based on multi-dimensional configuration data, the present embodiment also discloses a system for automatically generating a communication patch panel drawing based on multi-dimensional configuration data, which specifically comprises:

[0148] a data parsing module, configured to acquire and parse a structured configuration file containing multi-dimensional data, and convert the structured configuration file into standardized intermediate data;

[0149] a logical object modeling module, configured to construct a hierarchical logical object model containing a plurality of device objects based on the standardized intermediate data, and establish a complete inter-device connection network topology relationship in the model;

[0150] an automatic layout module, configured to acquire a two-dimensional automatic layout algorithm based on a preset layout rule, and calculate base point coordinates of each device object in the hierarchical logical object model on a two-dimensional drawing plane;

[0151] a graphics generation module, configured to automatically generate and render a CAD graphics entity based on the calculated base point coordinates of the device objects, and finally form a complete patch panel drawing.

[0152] It should be noted that the detailed description of the system for automatically generating a communication patch panel drawing based on multi-dimensional configuration data provided by the present embodiment can refer to the related description of the method for automatically generating a communication patch panel drawing based on multi-dimensional configuration data provided by the present embodiment, which will not be repeated here.

[0153] ​Those skilled in the art can understand that all or part of the functions of various methods in the above embodiments can be realized by hardware or by a computer program. When all or part of the functions in the above embodiments are realized by a computer program, the program can be stored in a computer readable storage medium, which can include a read-only memory, a random access memory, a magnetic disk, an optical disk, a hard disk, and the like. The above functions are realized by executing the program by a computer. For example, the program is stored in a memory of a device, and the above functions are realized by executing the program in the memory by a processor. In addition, when all or part of the functions in the above embodiments are realized by a computer program, the program can also be stored in a storage medium such as a server, another computer, a disk, an optical disk, a flash disk, or a mobile hard disk, and is saved in a memory of a local device by downloading or copying, or the system of the local device is updated, and the above functions are realized by executing the program in the memory by a processor.

[0154] The above application of specific examples to the present application is described, which is only used to help understand the present application and does not limit the present application. For those skilled in the art, according to the idea of the present application, a number of simple deductions, deformations or substitutions can be made.

Claims

1. A method for automatically generating communication patch panel drawings based on multi-dimensional configuration data, characterized in that, The method includes: Acquire and parse structured configuration files containing multi-dimensional data, and convert them into standardized intermediate data; Based on standardized intermediate data, a hierarchical logical object model containing multiple device objects is constructed, and a complete network topology relationship between devices is established in the model. The algorithm uses a two-dimensional automatic layout based on preset layout rules to calculate the base point coordinates of each device object in the hierarchical logical object model on the two-dimensional drawing plane. Based on the base point coordinates of the calculated device object, CAD graphic entities are automatically generated and rendered, ultimately forming a complete patch panel drawing.

2. The method for automatically generating communication patch panel diagrams based on multi-dimensional configuration data as described in claim 1, characterized in that, Obtain and parse structured configuration files containing multi-dimensional data, and convert them into standardized intermediate data, specifically including: Read structured configuration files with a preset format, which include multi-dimensional data such as device template information, device port configuration information, device deployment information, and inter-device connection relationships; The multi-dimensional data in the structured configuration file is parsed into a list of multiple data objects; The list of data objects is serialized into a standardized intermediate data format.

3. The method for automatically generating communication patch panel diagrams based on multi-dimensional configuration data as described in claim 2, characterized in that, Based on standardized intermediate data, a hierarchical logical object model containing multiple device objects is constructed, and a complete network topology relationship between devices is established in the model, specifically including: Based on standardized intermediate data, a hierarchical logical object model containing a top-level container object and multiple device objects is constructed in computer memory. By performing correlation queries on multiple lists of data objects, the connection relationships between devices are precisely assigned to the connection attributes of the corresponding device objects and their contained port objects, thereby forming a complete network topology relationship in the hierarchical logical object model.

4. The method for automatically generating communication patch panel diagrams based on multi-dimensional configuration data as described in claim 1, characterized in that, A two-dimensional automatic layout algorithm based on preset layout rules is used to calculate the base point coordinates on the two-dimensional drawing plane for each device object in the hierarchical logical object model. Specifically, this includes: a. Initialize a two-dimensional drawing container with preset boundaries, and set the vertical and horizontal spacing between device objects; b. Using a column-filling algorithm strategy, device objects are arranged sequentially along a preset direction starting from an initial coordinate point within the two-dimensional drawing container; c. Before arranging each device object, determine whether it will exceed the boundary of the two-dimensional drawing container in the preset direction after being added to the current column; d. If the boundary is not exceeded, calculate the coordinates of the current device object based on the position, size and vertical spacing of the previous device object; if the boundary is exceeded, switch to a new column, calculate the starting coordinates of the new column based on the width and horizontal spacing of the previous column, and arrange the current device objects from the corresponding starting coordinates. e. Repeat steps c and d until the base point coordinates on the two-dimensional drawing plane are calculated for each device object in the hierarchical logical object model.

5. The method for automatically generating communication patch panel diagrams based on multi-dimensional configuration data as described in claim 4, characterized in that, The specific steps of the column-filling algorithm include: Bottom boundary Y-coordinate calculation: Used to determine the minimum allowable position of the device layout; by subtracting the total height of the canvas from the top of the drawing area and adding the bottom margin, a precise Y-axis boundary value is obtained. The specific formula is as follows: THE boundary =Y start -H canvas +Margin bottom Among them, Y boundary P represents the Y-coordinate of the bottom boundary of the drawing area; start =(X start ,Y start H represents the starting coordinates of the upper left corner of the drawing area; canvas Margin is the total height of the drawing area. bottom This is the bottom margin of the drawing area.

6. The method for automatically generating communication patch panel diagrams based on multi-dimensional configuration data as described in claim 5, characterized in that, The specific steps of the column-filling algorithm include: In-column Y-coordinate calculation: Used to calculate the position of the next device from top to bottom within the same column; the k-th device D k The coordinates are those of the preceding device D. k-1 Based on the Y-coordinate, subtract the height of the previous device and a fixed vertical spacing to achieve a neat vertical arrangement. The specific formula is as follows: Y k =Y k-1 -H k-1 -M v Among them, Y k For device D k Y coordinate; Y k-1 For device D k-1 Y coordinate; H k-1 For device D k-1 Height; M v This refers to the vertical spacing between devices.

7. The method for automatically generating communication patch panel diagrams based on multi-dimensional configuration data as described in claim 6, characterized in that, The specific steps of the column-filling algorithm include: Boundary judgment condition for column swapping: when placing device D k Previously, the algorithm would pre-calculate the bottom Y coordinate after placement. current -H k If Y current -H k The value is less than the preset bottom boundary Y. boundary This indicates that the current column is running out of space and a new column must be used. The specific formula is as follows: Y current -H k <Y boundary Among them, H k For device D k Height, Y current This indicates the starting Y-coordinate at which the device can be placed in the current column.

8. The method for automatically generating communication patch panel diagrams based on multi-dimensional configuration data as described in claim 7, characterized in that, The specific steps of the column-filling algorithm include: New column X-coordinate calculation: Used to calculate the starting X-coordinate of the new column, i.e., column j; based on the X-coordinate of the previous column, i.e., column j-1, the width of the previous column and a fixed horizontal spacing are added to ensure that the columns are neatly arranged and have consistent spacing. The specific formula is as follows: in, Let x be the starting x-coordinate of the j-th column; Let x be the x-coordinate of the (j-1)th column; For the width of column j-1, take the width of the widest device in the corresponding column; M h This refers to the horizontal spacing between devices.

9. The method for automatically generating communication patch panel diagrams based on multi-dimensional configuration data as described in claim 1, characterized in that, Based on the calculated base point coordinates of the device object, CAD graphic entities are automatically generated and rendered, ultimately forming a complete patch panel drawing, specifically including: Iterate through all device objects whose base point coordinates have been calculated; The graphics generation module is invoked based on the type, size, base point coordinates, and attributes of the port objects contained in each device object; Using the graphics generation module in the CAD drawing environment, graphic entities corresponding one-to-one with the device objects, port objects and text information are automatically generated, and finally combined to form a complete communication patch panel drawing.

10. A system for automatically generating communication patch panel drawings based on multi-dimensional configuration data, characterized in that, The system includes: The data parsing module is used to acquire and parse structured configuration files containing multi-dimensional data, and convert them into standardized intermediate data. The logical object modeling module is used to construct a hierarchical logical object model containing multiple device objects based on standardized intermediate data, and to establish a complete network topology relationship between devices in the model; The automatic layout module is used to collect two-dimensional automatic layout algorithms based on preset layout rules and calculate the base point coordinates of each device object in the hierarchical logical object model on the two-dimensional drawing plane. The graphics generation module is used to automatically generate and render CAD graphic entities based on the base point coordinates of the calculated device objects, ultimately forming a complete patch panel drawing.