Rapid cable design method for carriage of refrigerator car

By combining the improved A* algorithm with a database, the design of cabling in refrigerated truck compartments has been automated, solving the problem of low design efficiency in existing technologies and improving design efficiency and accuracy.

CN120832734APending Publication Date: 2025-10-24JIANGSU UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410447694.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-15
Publication Date
2025-10-24

AI Technical Summary

Technical Problem

In the existing technology, the design of electrical equipment cables in refrigerated truck compartments lacks automated tools, resulting in low design efficiency and difficulty in meeting complex structures and customer needs.

Method used

By employing an improved A* algorithm combined with SolidWorks and SQL Server databases and using the VB.NET programming language, cable paths can be automatically planned and electrical engineering drawings can be generated, thus achieving intelligent cable design.

Benefits of technology

It improves the efficiency and accuracy of refrigerated truck cab cable design, reduces the time and complexity of manual design, and meets production and customer needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120832734A_ABST
    Figure CN120832734A_ABST
Patent Text Reader

Abstract

The invention discloses a rapid cable design method for a carriage of a refrigerator car. The rapid cable design method comprises the following steps: (1) reading a wiring space; (2) reading coordinate points of the electrical equipment, namely judging whether the parts are the electrical equipment or not by traversing the parts of the assembly tree and combining with an SQL server electrical equipment database; reading coordinate points of the electrical equipment to serve as a starting point and an ending point of an algorithm; (3) performing path planning by using an improved A * algorithm; (4) establishing a cable model, and expressing data as a model entity; (5) defining a wiring relation; (6) outputting wiring information; according to the method, a traditional wiring system cannot recognize a space area where wiring can be conducted in the compartment of the refrigerator car, the method for dividing the space where wiring can be conducted in the compartment of the refrigerator car is given in detail according to characteristic analysis of the compartment of the refrigerator car, detailed implementation steps in SolidWorks are described, and finally the feasibility of the method and the system is verified through an instance model.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of refrigerated car compartments, and particularly relates to a cable rapid design method for a refrigerated car compartment. BACKGROUND

[0002] The refrigerated car compartment product is a special product, and in the production and manufacturing process of the refrigerated car compartment product, because the structure has certain regularity, the rapid design of the structure can be realized by means of the parameterization technology of most three-dimensional design software, but because the compartment product itself is provided with electrical equipment, after the structure is completed, the electrical equipment needs to be installed and the cable design needs to be performed, and at present, there is no good software that can meet this function. In the face of complex cabin structure, designers design a reasonable cable layout scheme according to experience, which not only needs to consume a large amount of time and energy, but also affects the production efficiency, and in the face of the continuous improvement of customer requirements, the complexity of the cable layout is getting higher and higher, and the manual cable design is also becoming unacceptable, therefore, it is necessary to develop an automatic wiring system for the refrigerated car compartment product to meet the production requirements. SUMMARY

[0003] The purpose of the present application is to provide a cable rapid design method for a refrigerated car compartment, which calculates reasonable cable path planning coordinates according to the positions of electrical equipment in the model and the structure of the refrigerated car compartment, creates a cable model in SolidWorks according to the route coordinates planned by the algorithm, counts the cable length, writes the attribute information of the cable into the created cable model, and outputs the electrical engineering drawing that meets the production requirements, so as to realize the intelligent generation of the cable design work and improve the generation efficiency.

[0004] The technical scheme of the present application is as follows:

[0005] (1) reading the wiring space, that is, discretizing the model space of the refrigerated car compartment into grid points, and using point sets to represent the space occupied by each part of the refrigerated car compartment;

[0006] (2) reading the electrical equipment coordinate points, that is, traversing the assembly tree parts and judging whether the part is an electrical equipment by the SQL server electrical equipment database; reading the coordinate points of the electrical equipment as the starting point and the ending point of the algorithm;

[0007] (3) using the improved A* algorithm for path planning;

[0008] (4) constructing a cable model, and expressing the data as a model entity;

[0009] (5) defining the wiring relationship;

[0010] (6) Output wiring information.

[0011] Further, the (1) is specified as follows:

[0012] (11) Establish a sketch, (modify) the name as the center axis, connect SolidWorks by using VB.NET programming language, read the information of the model by combining API function, traverse the assembly tree to check whether each model has the sketch of the string center axis, if it exists, call API function GetSketchPoints2 to obtain the coordinates of two end points of the sketch;

[0013] (12) Firstly, convert to 3D sketch by using function Insert3Dsketch; obtain the equation of the sketch line segment by obtaining two points and discretize the equation; then traverse all the sketches with "center axis" and discretize to form a point set representing the three-dimensional space of wiring.

[0014] Further, the (2) is specified as follows: firstly, determine the position of each electrical equipment; then connect SolidWorks and SQL server database by using VB.NET programming language, read the information of the model by combining API function, traverse the assembly tree to check whether the name of each model is compared with the electrical equipment database of the enterprise, judge whether the part is electrical equipment; if it is electrical equipment, record the position coordinates of the wiring terminal of the wiring equipment, convert to 3D sketch form by using function Insert3Dsketch, record the point as the starting point or the ending point in A* algorithm, if not, skip and continue to traverse other models.

[0015] Further, the (3) comprises the following steps:

[0016] (31) According to the characteristics of Dijkstra algorithm that can be close to the end node and the characteristics of BFS algorithm that can be close to the target node, introduce the evaluation function to evaluate the position node of the search, the formula is as follows:

[0017] f(n) = g(n) + h(n)

[0018] Wherein, f(n) is the evaluation function of node n, which represents the cost of the best path from the initial node through node n to the target node; g(n) represents the Manhattan distance from the initial node to node n in the state space; h(n) is the estimated cost of the shortest path from node n to the target node, which is obtained by Euclidean distance function ELDF, the formula is as follows:

[0019]

[0020] g(n) = |x n -x s | + |y n-y s |

[0021] x n , y n , x e , y e , x s , y s are respectively the current node horizontal coordinate, the current node vertical coordinate, the end point horizontal coordinate, the end point vertical coordinate, the start point horizontal coordinate, and the start point vertical coordinate.

[0022] (32) The A* algorithm is extended in three dimensions, and the extended h(n) and g(n) formulas are as follows:

[0023]

[0024] g(n) = |x n -x s | + |y n -y s | + |z n -z s |

[0025] (33) The A* algorithm is improved to avoid obstacles, that is, when the A* algorithm is determined to enter a dead end, it returns to the origin to find a new route, and the dead end is marked. After multiple iterations, the route connecting the end device is found.

[0026] (34) The A* algorithm is processed to prevent interference, that is, each point in space is marked as not passable again after passing through a cable once. When there are too many cables, the A* algorithm selects other suitable paths.

[0027] Further, the (4) comprises the following steps:

[0028] (41) The start point of the electrical device and the end point of the electrical device are brought into the improved A* algorithm and set as the start point and the end point of the algorithm program. The optimal point set is selected from the discretized point set, and the CreateSpline function is used to fit the curve.

[0029] (42) The CreateDefinition function is used in SolidWorks to create a scanning feature, and the optimal point set is converted into a real cable model. The parameters of the CreateDefinition function are adjusted, and ThinFeature and CircularProfileDiameter represent whether the scanning has a thin feature and the diameter of the circular profile of the scanning feature, respectively. According to the design requirements, the above parameters are changed to obtain different specifications of the model to represent different cables.

[0030] Further, in the (5), an interactive creation of a wiring relationship table is adopted, comprising the following steps:

[0031] (5.1) The name of the installed electrical equipment screened out in step (2) is automatically exported to generate an EXCEL table, and the designer forms a wiring relationship table by copying the name of the electrical equipment to the corresponding position;

[0032] (5.2) Input the wiring relationship table, the program automatically reads the device name of the table, and reads the coordinates of the electrical equipment in SolidWork and automatically converts them into the starting point and ending point of the algorithm.

[0033] Further, the (6) is as follows: the starting point and ending point coordinates obtained in step 5 and the improved A* algorithm in step 3 can plan the wiring path of the cable, and finally the information of the cable is counted, that is, which wiring channel each point belongs to, and the part name is output in order according to the parts passed by the cable.

[0034] The device provided by the application comprises a memory, a processor and a program stored in the memory and executable on the processor, and the processor implements the cable rapid design method of the refrigerator car compartment when executing the program.

[0035] The storage medium provided by the application stores a computer program, and the computer program is designed to implement the cable rapid design method of the refrigerator car compartment when running.

[0036] Advantages: Compared with the prior art, the application has the following obvious advantages: the traditional wiring system cannot identify the space region that can be threaded in the refrigerator car compartment, the application analyzes the characteristics of the refrigerator car compartment, provides a detailed division method of the space that can be wired in the refrigerator car compartment, describes the detailed implementation steps in SolidWorks, and finally verifies the feasibility of the method and system with an example model. BRIEF DESCRIPTION OF DRAWINGS

[0037] Figure 1 The flowchart of the application. DETAILED DESCRIPTION

[0038] The technical solutions of the application will be further described below with reference to the drawings.

[0039] As Figure 1 shown, the application provides a cable rapid design method of a refrigerator car compartment, comprising the following steps:

[0040] (1) Read the wiring space, that is, discretize the model space of the refrigerator car compartment into grid points, and use point sets to represent the space occupied by each part of the refrigerator car compartment; Specifically as follows:

[0041] (11) Establish sketch (modification) name as center axis, connect SolidWorks by VB.NET programming language, read model information by API function, traverse assembly tree to check whether each model has sketch string center axis, if yes, call API function GetSketchPoints2 to obtain two end point coordinates of sketch;

[0042] (12) Firstly, convert to 3D sketch by function Insert3Dsketch; obtain two points to obtain equation of sketch line segment and discretize; then traverse all sketches with "center axis" and discretize to form point set representing wiring three-dimensional space.

[0043] (2) Read electrical equipment coordinate points, that is, traverse assembly tree parts and judge whether the part is electrical equipment by comparing with SQL server electrical equipment database; read coordinate points of electrical equipment as starting point and end point of algorithm; specifically as follows: firstly, determine position of each electrical equipment; then connect SolidWorks and SQL server database by VB.NET programming language, read model information by API function, traverse assembly tree to check whether each model name is compared with electrical equipment database of enterprise, judge whether the part is electrical equipment; if yes, record position coordinates of wiring terminal of wiring equipment, convert to 3D sketch by function Insert3Dsketch, record the point as starting point or end point in A* algorithm, if not, skip and continue to traverse other models.

[0044] (3) Path planning by improved A* algorithm; including the following steps:

[0045] (31) According to the characteristics of Dijkstra algorithm that can be close to end node and the characteristics of BFS algorithm that can be close to target node, introduce evaluation function to evaluate the position node of search, formula as follows:

[0046] f(n)=g(n)+h(n)

[0047] Wherein, f(n) is evaluation function of node n, representing cost of best path from initial node to target node through node n; g(n) represents Manhattan distance from initial node to node n in state space; h(n) is estimated cost of shortest path from node n to target node, obtained by Euclidean distance function ELDF, formula as follows:

[0048]

[0049] (n)=|x n -x s |+|y n -ys |

[0050] x n 、y n 、x e 、y e 、x s 、y s are respectively the current node horizontal coordinate, the current node vertical coordinate, the end point horizontal coordinate, the end point vertical coordinate, the start point horizontal coordinate, and the start point vertical coordinate.

[0051] (32) The A* algorithm is extended in three dimensions, and the extended h(n) and g(n) formulas are as follows:

[0052]

[0053] g(n) = |x n -x s | + |y n -y s | + |z n -z s |

[0054] (33) The A* algorithm is improved to avoid obstacles, that is, when the A* algorithm is determined to enter a dead end, it returns to the origin to find a new route, and the dead end is marked. After multiple iterations, the route connecting the end device is found.

[0055] (34) The A* algorithm is processed to prevent interference, that is, each point in space is marked as not allowed to pass again after passing through a cable once. When there are too many cables, the A* algorithm selects other appropriate paths.

[0056] (4) The cable model is established, and the data is expressed as a model entity; including the following steps:

[0057] (41) The start point of the electrical device and the end point of the electrical device are brought into the improved A* algorithm and set as the start point and end point of the algorithm program. The optimal point set is selected from the discretized point set, and the CreateSpline function is used to fit the curve;

[0058] (42) The CreateDefinition function is used in SolidWorks to create a scanning feature, and the optimal point set is converted into a real cable model. The CreateDefinition function parameters are adjusted, and ThinFeature and CircularProfileDiameter represent whether the scanning has a thin feature and the diameter of the circular profile of this scanning property, respectively. According to the design requirements, the above parameters are changed to obtain different specifications of the model to represent different cables.

[0059] (5) define the wiring relationship; adopt interactive creation of wiring relationship table, including the following steps:

[0060] (5.1) automatically export the EXCEL table of the installed electrical equipment name screened out in step (2), and the designer forms the wiring relationship table by copying the electrical equipment name to the corresponding position;

[0061] (5.2) input the wiring relationship table, the program automatically reads the equipment name of the table, reads the coordinates of the electrical equipment in SolidWork, and automatically converts the starting point and the ending point of the algorithm.

[0062] (6) output the wiring information. Specifically, the starting point and the ending point coordinates obtained in step 5 and the improved A* algorithm in step 3 can plan the wiring path of the cable, and finally the information of the cable is counted, that is, which wiring channel each point belongs to, and the part name is output in order according to the parts passed by the cable.

[0063] The embodiment of the present application also provides a device, including a memory, a processor and a program stored in the memory and executable on the processor, wherein the processor implements the cold car compartment cable rapid design method of any one of the embodiments when executing the program.

[0064] The embodiment of the present application also provides a storage medium, which stores a computer program designed to implement the cold car compartment cable rapid design method of any one of the embodiments when running.

Claims

1. A method for rapid design of a cable for a refrigerated vehicle compartment, characterized in that, The method comprises the following steps: (1) reading the wiring space, i.e. discretizing the model space of the refrigerated truck compartment into grid points, and using point sets to represent the space occupied by each part of the refrigerated truck compartment; (2) reading the coordinate points of the electrical equipment, i.e. judging whether the part is electrical equipment by traversing the assembly tree and the SQL server electrical equipment database; reading the coordinate points of the electrical equipment as the starting point and the ending point of the algorithm; (3) using the improved A* algorithm for path planning; (4) constructing a cable model to express the data as a model entity; (5) defining the wiring relationship; (6) outputting the wiring information.

2. A method of designing a quick cable for a refrigerated vehicle compartment according to claim 1, wherein, The (1) is specifically as follows: (11) establishing a sketch, modifying the name as the central axis, connecting SolidWorks by using the VB.NET programming language, and reading the information of the model in combination with the API function to check whether each model has the sketch of the string central axis, and if so, calling the API function GetSketchPoints2 to obtain the coordinate points of the two ends of the sketch; (12) first converting into a 3D sketch by using the function Insert3Dsketch; obtaining the equation of the sketch line segment by obtaining two points and discretizing the equation; then traversing all the sketches with the "central axis" and discretizing to form a point set representing the wiring three-dimensional space.

3. The method of claim 1, wherein, The (2) is specifically as follows: first, determining the position of each electrical equipment; then connecting SolidWorks and the SQL server database by using the VB.NET programming language, reading the information of the model in combination with the API function, traversing the assembly tree to check whether the name of each model is compared with the electrical equipment database of the enterprise to judge whether the part is electrical equipment; if it is electrical equipment, recording the coordinate position of the wiring terminal of the wiring equipment, converting into a 3D sketch by using the function Insert3Dsketch, and recording the point as the starting point or the ending point in the A* algorithm, and if not, skipping and continuing to traverse other models.

4. The method of claim 1, wherein, The (3) comprises the following steps: (31) according to the characteristics of the Dijkstra algorithm that can approach the terminal node and the characteristics of the BFS algorithm that can approach the target node, introducing an evaluation function to evaluate the position node of the search, and the formula is as follows: f(n)=g(n)+h(n) wherein f(n) is the evaluation function of node n, representing the cost of the best path from the initial node to the target node through node n; g(n) represents the Manhattan distance from the initial node to node n in the state space; h(n) is the estimated cost of the shortest path from node n to the target node, which is obtained by the Euclidean distance function ELDF, and the formula is as follows: g(n) = |x n - x s | + |y n - y s | x n , y n , x e , y r , x s , y s are respectively the current node x-coordinate, the current node y-coordinate, the end point x-coordinate, the end point y-coordinate, the start point x-coordinate, the start point y-coordinate. (32) extending the A* algorithm in three dimensions, and the extended h(n) and g(n) formulas are as follows: g(n) = |x n - x s | + y n - y s | + z n - z s | (33) improving the A* algorithm to avoid obstacles, i.e. when the A* algorithm is determined to enter a dead end, returning to the original point to find the route again, and marking the dead end, which will not be traversed next time, and after multiple iterations, the line connecting the terminal equipment is finally found. (34) Anti-interference processing of A* algorithm, that is, each point in space is marked as not passing again when passing a cable once; when there are too many cables, A* algorithm selects other appropriate paths.

5. The method of claim 1, wherein, The (4) comprises the following steps: (41) The starting point and the ending point of the electrical equipment are brought into the improved A* algorithm and are set as the starting point and the ending point of the algorithm program, the optimal point set is screened out in the discretized point set, and the CreateSpline function is used for fitting into a curve; (42) The CreateDefinition function is used in SolidWorks to create a scanning feature, the optimal point set is converted into a real cable model, the CreateDefinition function parameters are adjusted, ThinFeature and CircularProfileDiameter represent whether the scanning has a thin feature and the diameter of the circular profile of the scanning characteristic obtained or set respectively; the above parameters are changed according to the design requirements to obtain different specifications of the model to represent different cables.

6. The method of claim 1, wherein, In the (5), an interactive creation of a wiring relationship table is adopted, comprising the following steps: (5.1) The name of the installed electrical equipment screened out in step (2) is automatically exported to generate an EXCEL table, and the designer forms a wiring relationship table by copying the name of the electrical equipment to the corresponding position; (5.2) The wiring relationship table is input, the program automatically reads the device name of the table, and the program automatically converts the coordinates of the electrical equipment read by SolidWork into the starting point and the ending point of the algorithm.

7. The method of claim 1, wherein, The (6) is specifically as follows: the starting point and the ending point coordinates obtained in step 5 and the improved A* algorithm in step 3 can plan the wiring path of the cable, and finally the information of the cable is counted, that is, which wiring channel each point belongs to, and the part name is output in turn according to the order of the parts passed by the cable.

8. An apparatus comprising a memory, a processor, and a program stored on the memory and executable on the processor, wherein, The processor executes the program to realize the cold car carriage cable rapid design method of any one of claims 1-7.

9. A storage medium storing a computer program, characterized in that The computer program is designed to realize the cold car carriage cable rapid design method of any one of claims 1-7 when running.