A method for automatically generating a door and window profile blanking list based on geometric parameterization modeling
By using a geometric parametric modeling method, the system automatically records the profile overlap relationship and supports Chinese formula writing, thus realizing the automatic generation of the door and window profile cutting list. This solves the problems of separation between design and material calculation, difficulty in handling irregular windows, and complex profile overlap in traditional methods, thereby improving the accuracy and efficiency of material calculation.
Patent Information
- Application Number
- CN202611146141.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-30
- Publication Date
- 2026-11-27
AI Technical Summary
Traditional door and window design and material calculation are separated, resulting in low efficiency, difficulty in handling irregularly shaped windows, high threshold for formula writing, complex profile overlapping relationships, and lack of closed-loop feedback in material calculation, leading to frequent calculation errors and low efficiency.
Using a geometric parametric modeling method, the outline of doors and windows is constructed as a two-dimensional closed polygon, automatically recording the overlapping relationship between profiles, supporting formulas written with full-width Chinese characters, realizing a two-way feedback loop between design and material calculation, and automatically generating a profile cutting list through unified geometric parametric modeling.
It significantly improves the accuracy and efficiency of material calculation in scenarios with irregularly shaped windows and densely arranged mullions, lowers the barrier to entry, reduces calculation errors, realizes automatic iterative updates of design and material calculation, and improves overall production efficiency.
Smart Images

Figure CN123179505A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of door and window design technology, specifically a method for automatically generating a material list for door and window profiles based on geometric parametric modeling. Background Technology
[0002] Architectural door and window design is an important component of architectural design, referring to the systematic design process of the function, structure, and appearance of doors and windows in the building's external envelope. It mainly covers key aspects such as window type selection, material selection, opening methods, energy-saving performance, waterproofing and sealing, and hardware accessories. Modern door and window design emphasizes energy conservation, environmental protection, and intelligent trends. Common materials include aluminum alloy, PVC, thermally broken aluminum, and solid wood. Glass often uses double-glazed tempered glass or Low-E coated glass to improve heat and sound insulation. Designs must comply with national standards such as the "Terminology for Architectural Doors and Windows" and the "Standard for Energy-Saving Design of Buildings," taking into account technical indicators such as lighting and ventilation, wind pressure resistance, air tightness, and water tightness. Excellent door and window design not only ensures building safety and comfort but also significantly improves the overall appearance quality and energy efficiency of the building.
[0003] However, traditional door and window design and material calculation have the following prominent problems: (1) Separation of design and calculation: Door and window design is usually completed by designers using general CAD software to draw two-dimensional graphics. Then, the calculation personnel manually read the dimension parameters according to the design drawings and manually calculate the cutting length, glass size, and number of accessories of each profile according to the company's own profile calculation formula. This process is inefficient and prone to calculation errors due to human interpretation bias. (2) Difficulty in handling irregular doors and windows: Most existing door and window calculation software only supports standard rectangular doors and windows. For non-standard irregular doors and windows such as arc, arch, triangle, trapezoid, polygon, and irregular combination windows, there is a lack of effective geometric parameterization description means and general calculation methods. When the window type contains complex geometric features such as arc segments, non-right angle cut corners, and multi-segment splicing, traditional methods often require manual measurement and calculation one by one. (3) High threshold for formula writing: The formula configuration of existing calculation systems requires users to have programming knowledge and cannot use the expression methods commonly used in the door and window industry, such as Chinese variable names and full-width symbols. It is difficult for front-line technical personnel of door and window companies to directly participate in the writing and maintenance of formulas. (4) Complex profile overlap relationships: There are complex overlap relationships between door and window profiles, such as the cross overlap between the frame and the mullion, the matching overlap between the sash and the frame, and the relationship between the glass and the glazing bead. These overlap relationships directly affect the cutting length of the profiles. Existing methods lack a systematic modeling and automatic calculation mechanism for overlap relationships. (5) Lack of closed-loop material calculation feedback: In traditional methods, the material calculation results cannot be fed back to the graphic design stage. When it is found that the dimensions need to be optimized during the material calculation process (such as the equal division adjustment of the glass), it is necessary to manually return to the design stage for modification, recalculate the material, and iterate repeatedly, which is extremely inefficient.
[0004] Therefore, there is an urgent need for a method and system that can support parametric geometric modeling of arbitrary irregular window shapes, has the ability to compile formulas in Chinese natural language, can automatically handle profile overlap relationships, and realize a two-way feedback closed loop between design and material calculation to automatically generate door and window material lists. Summary of the Invention
[0005] The purpose of this invention is to provide an automatic method for generating a material list for door and window profiles based on geometric parametric modeling, in order to solve the problems mentioned above.
[0006] The technical solution adopted in this invention is as follows: A method for automatically generating a material list for door and window profiles based on geometric parametric modeling, characterized in that: the method includes the following steps: The outline of the door and window is constructed as a two-dimensional closed polygon, and the profile strip polygon and the inner hollow polygon are generated by offsetting inward according to the width of the profile. Automatically record the overlapping relationships between various profiles to form a profile topology diagram; It accepts cutting calculation formulas written in full-width Chinese characters, automatically converts them to half-width characters, executes the calculation, and outputs the profile cutting length; Compile in batches according to window type, calculate the cutting length for each type using independent matching rules, and calculate the hole position parameters based on geometric dimensions and overlap relationship. After verification, output a complete list and back-annotate it to the graphical interface.
[0007] In a preferred embodiment, in step S1, the outline of any door or window frame is transformed into a two-dimensional closed polygon composed of alternating straight line segments and arc segments. The system provides various window templates, including rectangles, arches, trapezoids, triangles, rhombuses, parallelograms, circles, semicircles, clover shapes, wavy shapes, convex windows, concave windows, corner windows, curved windows, spring-shaped windows, and ear-shaped windows. Each template encapsulates unique geometric constraints and parametric control points, allowing users to directly drag and drop control points on the canvas to adjust the overall size and proportions of the window.
[0008] In a preferred embodiment, any door or window frame outline is transformed into a two-dimensional closed polygon composed of alternating straight line segments and arc segments. The system provides templates for rectangles, arches, trapezoids, triangles, rhombuses, parallelograms, circles, semicircles, clover shapes, wavy shapes, convex windows, concave windows, corner windows, curved windows, spring lines, and ear-shaped windows. Each template encapsulates unique geometric constraints and parametric control points, allowing users to directly drag and drop control points on the canvas to adjust the overall size and proportions of the window type.
[0009] In a preferred embodiment, when executing the frame-forming algorithm, the profile cross-sectional width parameters of each side of the outer frame polygon are first read. For each side, the system calls the offset formula along the normal direction of the side, calculates the product of the unit vector in the normal direction of the side and the profile width, and adds it to the original side position to obtain the new side position after offset. When the offset lines of two adjacent sides extend to intersect, the system obtains the precise vertex coordinates of the inner polygon by solving a system of two linear equations. During the operation, the intersection point solution rules also need to be adjusted according to the side and corner connection method selected by the user.
[0010] In a preferred embodiment, the overlap relationship manager automatically captures the contact points between the endpoints of the profile strip polygons and adjacent profiles during the segmentation process; the system establishes an index for each polygon endpoint and calls a geometric coordinate matching algorithm to record the type of overlapping profile, polygon edge index, and precise intersection coordinates; during operation, the manager maintains a global key-value mapping table, where the key is the polygon ID and endpoint position code, and the value is all overlap data items on that endpoint; when the user adds or moves a dividing line, the system automatically traverses the affected polygons and updates the corresponding overlap records in the mapping table.
[0011] In a preferred embodiment, for straight profiles, the system uses the centerline length calculation formula to directly calculate the straight-line distance between the midpoints of the two endpoints as the centerline length; for curved profiles, the system first calculates the centerline radius of the arc, which is the outer radius minus half the profile width, and then multiplies it by the arc radius to obtain the centerline length; the overlap extension calculation calls the overlap extension calculation formula, reads the overlap offset value of the endpoint from the mapping table of the overlap relationship manager, and accumulates it according to the preset additional allowance rules; the chamfer angle calculation formula outputs the chamfer value based on the included angle between the endpoints of the adjacent profile strip polygons and the user-configured corner connection method.
[0012] In a preferred embodiment, the arithmetic expression supports addition, subtraction, multiplication, division, and exponentiation operators. The compiler parses it into an abstract syntax tree and calculates the node values sequentially. The conditional branch formula adopts a ternary operator structure. The system first calculates the current value of the profile attribute variable in the conditional expression. If the result is true, the truth branch expression is executed; otherwise, the false branch expression is executed. The arc length calculation function internally encapsulates a mathematical relationship based on the chord length and arch height. When called, it returns the arc length based on the input parameters. The blanking length calculation formula is: blanking length = cc + aa × 2 + adjustment value.
[0013] In a preferred embodiment, when implementing a multi-type compilation pipeline, the system first performs variable pre-compilation, calculates the conditional branches and arithmetic operations in the user-defined variable formulas, and injects the results into the temporary variable table of each window frame; then, according to the window type, the corresponding compiler is called respectively, and the current list of profiles to be compiled is filtered out by the intersection priority principle of matching fields within each compiler; the entire pipeline sequentially executes the compilation of border profiles, hinged fan profiles, double-leaf fan profiles, folding fan profiles, sliding fan profiles, and guardrail profiles, and the output results of each type of compiler are merged and processed.
[0014] In a preferred embodiment, during the design rule verification stage, the system checks whether the glass area is within the allowable range; during the cost calculation stage, the material cost calculation formula is called, first converting the profile centerline length to metric units, and then multiplying it by the profile's weight per meter and the material unit price; during the quotation calculation, the corresponding quotation calculation formula is called according to the pricing method; the piece-rate wage calculation formula adds the results of multiplying the cutting length by the unit length labor cost and the drilling quantity by the unit hole labor cost; in the secondary compilation mechanism, if the difference in the glass equal division width is detected to exceed the threshold after the first compilation, the system automatically triggers equal division optimization recompilation; finally, the system outputs structured data including a profile list, glass list, accessory list, hole position list, quotation, cost, and piece-rate wage, and reverse-labels the profile number and hole position on the graphical interface.
[0015] In a preferred embodiment, the pre-trained classification model is a decision tree or support vector machine model trained based on historical overlap cases. Its input features include at least: the angles α1 and α2 between the mullion and the border, the width w of the mullion, the width of the border profile, and the frequency of the segmentation bar being enabled in the user's historical selection records; the model output is a binary classification result indicating whether the material is cut independently.
[0016] In a preferred embodiment, the genetic algorithm uses the assembly fit, processing scrap rate, and material utilization rate of the segmented profiles in historical processing data as fitness functions, and applies parameters β and δ. base Global optimization is performed; each optimization iteration generates a new generation of parameter combinations, and after crossover and mutation, the parameter values that result in the highest fitness are selected as the periodically updated β and δ. base Write to system configuration.
[0017] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are: 1. In this invention, the frame profile is actively cut into independent segments at the mullion overlap point, and the centerline length, chamfer angle, and overlap extension of each segment are calculated separately. This allows the bill of materials to directly output the precise dimensions of the segmented processing. Simultaneously, the overlap relationship manager automatically establishes a new topological connection between the segmented profiles and the mullion, providing complete interface data for subsequent hole location compilation and assembly simulation. This function transforms the original manual segmentation and recalculation process into a fully automated geometric calculation workflow, significantly improving the accuracy and efficiency of material calculation in scenarios with irregularly shaped windows and densely arranged mullions. By using unified geometric parametric modeling, regular and irregular window types are all incorporated into the same data model. From the initial drawing stage, profile strips and internal polygons are automatically generated. Simultaneously, the overlap relationship manager automatically records the connection status of each profile endpoint and adjacent profiles during the segmentation process, eliminating the need for manual analysis. Furthermore, the formula compiler supports full-width Chinese characters and natural conditional notation, allowing frontline technicians in enterprises to directly write and maintain material calculation formulas without needing programming skills. This significantly lowers the barrier to entry and consequently reduces deployment and maintenance costs.
[0018] 2. This invention achieves a closed loop of graphic design, metadata generation, formula compilation, result output, and graphic feedback. In particular, the secondary compilation mechanism automatically checks the rationality of glass division after the initial calculation. If optimization is needed, it directly adjusts the division parameters in the graphic, regenerates the metadata, and recompiles—all without manual intervention. Simultaneously, the system outputs a complete list of profiles, glass, accessories, hole positions, quotations, costs, and piece-rate wages with a single compilation, avoiding inconsistencies caused by data transfer between multiple software programs. The modular architecture also makes adding new window types, profiles, or quotation modes very convenient; simply add the corresponding compilation module. The final result is automatic material calculation updates during design and drawing adjustments, reduced error rates, and a significant improvement in overall production efficiency. Attached Figure Description
[0019] Figure 1 This is a schematic diagram illustrating the process principle of the present invention; Figure 2 Example window template for parametric modeling of window geometry.
[0020] Figure 3 This is a schematic diagram illustrating the geometric principles of the Framatify algorithm.
[0021] Figure 4 This is a flowchart of the splitter system's workflow.
[0022] Figure 5 This is a data structure diagram for building the Dock Manager.
[0023] Figure 6 A schematic diagram of the structure generated for CCBar data calculation.
[0024] Figure 7 This is an architecture diagram of the material calculation formula compiler.
[0025] Figure 8 The execution flow chart for a multi-type step-by-step compilation pipeline.
[0026] Figure 9 A schematic diagram of the hole types in the hole location compilation subsystem.
[0027] Figure 10 This is a flowchart of the secondary compilation mechanism.
[0028] Figure 11 The overall system architecture diagram for the design-material calculation-feedback closed loop; Figure 12 This is a schematic diagram of the main interface of this system. Detailed Implementation
[0029] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. Example
[0030] Reference Figure 1-12 A method for automatically generating a material cutting list for door and window profiles based on geometric parametric modeling, characterized in that the method includes the following steps: The outline of the door and window is constructed as a two-dimensional closed polygon, and the profile strip polygon and the inner hollow polygon are generated by offsetting inward according to the width of the profile. Automatically record the overlapping relationships between various profiles to form a profile topology diagram; It accepts cutting calculation formulas written in full-width Chinese characters, automatically converts them to half-width characters, executes the calculation, and outputs the profile cutting length; Compile in batches according to window type, calculate the cutting length for each type using independent matching rules, and calculate the hole position parameters based on geometric dimensions and overlap relationship. After verification, output a complete list and back-annotate it to the graphical interface.
[0031] This invention transforms any door / window frame outline into a two-dimensional closed polygon by alternating straight line segments and arc segments during the process of constructing the door / window outline as a two-dimensional closed polygon and generating profile strip polygons and inner hollow polygons by offsetting inwards according to the profile width. The system has built-in various window geometry templates, including rectangles, arches, trapezoids, triangles, rhombuses, parallelograms, circles, semicircles, clover shapes, wavy shapes, convex windows, concave windows, corner windows, curved windows, spring-shaped windows, and ear-shaped windows, etc. Each template encapsulates unique geometric constraints and parametric control points.
[0032] Users don't need to write any code; they can simply drag and drop control points on the graphics canvas to adjust the overall size and proportions of each part of the window in real time. For example, arched windows automatically maintain the geometric constraints between the arch height and span, while the slopes of trapezoidal windows can be kept symmetrical or adjusted independently on both sides. All templates support the mixed splicing of arcs and straight lines, thus ensuring the geometric expression consistency of any irregularly shaped window and allowing non-standard window types to share the same geometric modeling and material calculation process as standard window types.
[0033] In step S2 of this invention, a frame-forming algorithm is executed. First, the profile cross-sectional width parameters of each side of the outer frame polygon are read. For each side, the system calls the offset formula along the normal direction, calculates the product of the unit vector in the normal direction of the side and the profile width, and adds it to the original side position to obtain the new side position after offset. When the offset lines of two adjacent sides extend to intersect, the system obtains the precise vertex coordinates of the inner polygon by solving a system of two linear equations.
[0034] During operation, the system adjusts the intersection point calculation rules based on the user-selected corner connection method. Corner connection methods include default connection, 45-degree fixed angle connection, horizontal or vertical alignment connection, and separate connection. For example, when using the default connection, the intersection point is calculated by vertically truncating the end of the first side; when using the 45-degree fixed angle connection, it is calculated using the angle bisector, thus ensuring that the generated internal polygon is geometrically identical to the profile strip polygon, adapting to different profile widths and corner types.
[0035] In step S4 of this invention, an overlap relationship manager is set up. This manager automatically captures the contact points between the endpoints of the profile strip polygons and adjacent profiles during the segmentation process. The system establishes an index for each polygon endpoint and calls a geometric coordinate matching algorithm to record the type of overlapping profile, the polygon edge index, and the precise intersection coordinates. During operation, the manager maintains a global key-value mapping table, where the key is the polygon ID and endpoint position code, and the value is all overlap data items on that endpoint.
[0036] When a user adds or moves a dividing line, the system automatically traverses the affected polygons and updates the corresponding overlap records in the mapping table, ensuring the integrity and queryability of the topological relationships. This manager provides complete data support for subsequent hole position compilation, chamfer calculation, and overlap extension calculation, completely avoiding the tediousness and errors of manually maintaining overlap relationships.
[0037] This invention uses a centerline length calculation formula for straight profiles, directly calculating the straight-line distance between the midpoints of the two endpoints as the centerline length. For curved profiles, the system first calculates the centerline radius of the arc, which is the outer radius minus half the profile width, and then multiplies it by the arc curvature to obtain the centerline length. The calculation of the overlap extension amount calls the overlap extension amount calculation formula, reads the overlap offset value of the endpoint from the mapping table of the overlap relationship manager, and accumulates it according to the preset additional allowance rules.
[0038] The chamfer angle calculation formula outputs the chamfer value based on the included angle between the endpoints of adjacent profile strip polygons and the user-configured corner connection method. For example, if a fixed 45-degree bevel connection is used, 45 degrees is output directly; if the default connection is used, half of the adjacent included angle is output. These parameters together constitute CCBar metadata, serving as precise input during the formula compilation stage.
[0039] The built-in formula compiler of this invention supports arithmetic expressions (addition, subtraction, multiplication, division, and exponentiation), parses them into an abstract syntax tree, and calculates the node values sequentially. The conditional branch formula uses a ternary operator structure. The system first calculates the current value of the profile attribute variable in the conditional expression; if the result is true, the truth branch expression is executed; otherwise, the false branch expression is executed. The arc length calculation function internally encapsulates a mathematical relationship based on chord length and arch height, and returns the arc length based on the input parameters when called.
[0040] Technicians can use full-width Chinese symbols (such as "+", "-", "×", "÷") to write material cutting calculation formulas. The system automatically converts the full-width symbols to half-width symbols before performing the calculation. A typical material cutting length calculation formula is "Material cutting length = cc + aa × 2 + adjustment value". This compiler significantly lowers the barrier to entry for front-line technicians, allowing them to directly write and maintain material calculation formulas without needing programming knowledge.
[0041] When implementing a multi-type compilation pipeline, this invention first performs variable pre-compilation, calculates the conditional branches and arithmetic operations in the user-defined variable formulas, and injects the results into the temporary variable table of each window. Then, based on the window type, the corresponding compiler is called. Each compiler internally uses a priority principle based on the intersection of matching fields to filter the list of profiles to be compiled. The system automatically counts the number of non-empty matching fields in the formula as a weight and records all variables referenced by the formula for debugging purposes.
[0042] The entire pipeline sequentially executes the compilation of frame profiles, hinged fan profiles, double-leaf fan profiles, folding fan profiles, sliding fan profiles, and guardrail profiles. The output results of each type of compiler are then merged and processed. This process ensures that the calculation logic of different types of profiles is independent and does not interfere with each other, while also supporting flexible expansion. For example, when adding a "lift-up sliding fan" module, only the corresponding compiler needs to be added.
[0043] In the design rule verification stage, this invention checks whether the glass area is within the allowable range. The cost calculation stage calls the material cost calculation formula, first converting the profile centerline length to metric units, then multiplying it by the profile's weight per meter and the material unit price. The quotation calculation calls the corresponding quotation calculation formula according to the pricing method. The piece-rate wage calculation formula adds the results of multiplying the cutting length by the unit length labor cost and the number of holes by the unit hole labor cost. In the secondary compilation mechanism, if the difference in the glass's equally divided width is detected to exceed a threshold after the initial compilation, the system automatically triggers an equally divided optimization recompilation.
[0044] The final system outputs structured data including a profile list, glass list, accessory list, hole position list, quotation, cost, and piece-rate wages, and reverse-labels the profile numbers and hole positions on the graphical interface. This closed loop enables fully automated iteration of design, material calculation, and feedback, avoiding inconsistencies caused by data transfer between multiple software programs and significantly improving overall production efficiency.
[0045] The pre-trained classification model in this invention is a decision tree or support vector machine model trained based on historical overlap cases. Its input features include at least the angles α1 and α2 between the mullion and the frame, the mullion width w, the frame profile width, and the frequency of the segmentation bar activation in the user's historical selection records. The model output is a binary classification result indicating whether independent cutting is performed. When the output is "yes", the system automatically cuts the frame at the mullion overlap point and calculates the length, cutting angle, and overlap extension of the two profile segments respectively.
[0046] This model significantly reduces the workload of manual judgment, and is especially suitable for complex window types with dense mullions and many irregular angles. By continuously accumulating historical data, the model can also be retrained periodically, thereby continuously improving the judgment accuracy and adapting to the process habits of different factories.
[0047] This invention employs a genetic algorithm to globally optimize parameters β and δ_base. The algorithm uses the assembly fit, scrap rate, and material utilization rate of segmented profiles from historical processing data as fitness functions. Each optimization iteration generates a new generation of parameter combinations, and after crossover and mutation, the parameter values that result in the highest fitness are selected and written into the system configuration as the periodically updated β and δ_base.
[0048] This mechanism enables the system to continuously learn and optimize key overlap parameters from actual production data. For example, when the mullion width or frame profile changes, the genetic algorithm automatically adjusts β and δ_base to ensure that the end faces of the segmented profiles fit tightly against the mullion. Ultimately, this achieves accurate calculation of the overlap offset Δ_dock, significantly improving the accuracy of material calculation and processing quality in scenarios with irregularly shaped windows and densely arranged mullions.
[0049] Comparison indicators Traditional manual material calculation method Method of the present invention Improvement effect Total time spent on single window profile cutting 8 minutes and 30 seconds 22 seconds Efficiency increased by approximately 23 times Accuracy of segmentation of the mullion overlap border 78% 100% Eliminate segment omissions and length calculation errors Rework rate due to incorrect chamfer angle calculation 14.5% 0% Reset to zero Material list compilation time for scene with dense arrangement of irregularly shaped window mullions 35 minutes 1 minute 10 seconds Time reduced by 97% Cutting length calculation accuracy ±1.5 mm ±0.02 mm Accuracy improved by two orders of magnitude Error rate for calculating overlap offset Δdock 22% 0% Complete avoidance Total material preparation time for 100 windows in a single batch 14 hours 0.6 hours Work hours reduced by more than 95% From the above, we can conclude that: In this invention, the frame profile, traditionally considered a continuous whole in material calculation, is actively cut into independent segments at the mullion overlap points, and the centerline length, chamfer angle, and overlap extension of each segment are calculated separately. This allows the bill of materials to directly output precise dimensions for segmented processing. Simultaneously, the overlap relationship manager automatically establishes new topological connections between the segmented profiles and the mullions, providing complete interface data for subsequent hole location compilation and assembly simulation. Furthermore, it transforms the original manual segmentation and recalculation process into a fully automated geometric calculation workflow, significantly improving the accuracy and efficiency of material calculation in scenarios with irregularly shaped windows and densely packed mullions.
[0050] By using unified geometric parametric modeling, regular and irregular window types are all incorporated into the same data model. From the very beginning of drawing, profile strips and internal polygons are automatically generated. Simultaneously, the overlap relationship manager automatically records the connection status of each profile endpoint and adjacent profiles during the segmentation process, eliminating the need for manual analysis. Furthermore, the formula compiler supports full-width Chinese characters and natural conditional notation, allowing frontline technicians in enterprises to directly write and maintain material calculation formulas without needing programming skills. This significantly lowers the barrier to entry and consequently reduces deployment and maintenance costs.
[0051] This invention achieves a closed loop encompassing graphic design, metadata generation, formula compilation, result output, and graphic feedback. In particular, the secondary compilation mechanism automatically checks the rationality of glass division after the initial calculation. If optimization is needed, it directly adjusts the division parameters in the graphic, regenerates the metadata, and recompiles—all without manual intervention. Simultaneously, the system outputs a complete list of profiles, glass, accessories, hole positions, quotations, costs, and piece-rate wages with a single compilation, avoiding inconsistencies caused by data transfer between multiple software programs. The modular architecture also makes adding new window types, profiles, or quotation modes convenient; simply add the corresponding compilation module. The ultimate result is automatic material calculation updates during design and drawing adjustments, reduced error rates, and a significant improvement in overall production efficiency.
[0052] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any actual relationship or order between these entities or operations. Furthermore, the term "comprising" and any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.
[0053] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for automatically generating a bill of materials for door and window profiles based on geometric parametric modeling, characterized in that: The method includes the following steps: The outline of the door and window is constructed as a two-dimensional closed polygon, and the profile strip polygon and the inner hollow polygon are generated by offsetting inward according to the width of the profile. Automatically record the overlapping relationships between various profiles to form a profile topology diagram; It accepts cutting calculation formulas written in full-width Chinese characters, automatically converts them to half-width characters, executes the calculation, and outputs the profile cutting length; Compile in batches according to window type, calculate the cutting length for each type using independent matching rules, and calculate the hole position parameters based on geometric dimensions and overlap relationship. After verification, output a complete list and back-annotate it to the graphical interface.
2. The method for automatically generating a material list for door and window profiles based on geometric parametric modeling according to claim 1, characterized in that: The system transforms any door or window frame outline into a two-dimensional closed polygon composed of alternating straight line segments and arc segments. The system offers templates for rectangles, arches, trapezoids, triangles, rhombuses, parallelograms, circles, semicircles, clover shapes, wavy shapes, convex windows, concave windows, corner windows, curved windows, spring lines, and ear-shaped windows. Each template encapsulates unique geometric constraints and parametric control points, allowing users to directly drag and drop control points on the canvas to adjust the overall size and proportions of the window.
3. The method for automatically generating a material list for door and window profiles based on geometric parametric modeling according to claim 1, characterized in that: When executing the frame-forming algorithm, the system first reads the profile cross-section width parameters of each side of the outer frame polygon. For each side, the system calls the offset formula along the normal direction, calculates the product of the unit vector of the normal direction of the side and the profile width, and adds it to the original side position to obtain the new side position after offset. When the offset lines of two adjacent sides extend to intersect, the system obtains the precise vertex coordinates of the inner polygon by solving a system of two linear equations. During the operation, the intersection point solution rules also need to be adjusted according to the side and corner connection method selected by the user.
4. The method for automatically generating a material list for door and window profiles based on geometric parametric modeling according to claim 1, characterized in that: During the segmentation process, the overlap relationship manager automatically captures the contact points between the endpoints of the profile strip polygons and adjacent profiles. The system creates an index for each polygon endpoint and calls a geometric coordinate matching algorithm to record the type of overlapping profile, the polygon edge index, and the precise intersection coordinates. During operation, the manager maintains a global key-value mapping table, where the key is the polygon ID and endpoint position code, and the value is all overlap data items on that endpoint. When the user adds or moves a dividing line, the system automatically traverses the affected polygons and updates the corresponding overlap records in the mapping table.
5. The method for automatically generating a material list for door and window profiles based on geometric parametric modeling according to claim 1, characterized in that: For straight profiles, the system uses the centerline length calculation formula to directly calculate the straight-line distance between the midpoints of the two ends as the centerline length; for curved profiles, the system first calculates the centerline radius of the arc, which is the outer radius minus half the profile width, and then multiplies it by the arc curvature to obtain the centerline length; the lap extension calculation calls the lap extension calculation formula, reads the lap offset value of the endpoint from the mapping table of the lap relationship manager, and accumulates it according to the preset additional allowance rules; The chamfer angle calculation formula outputs the chamfer value based on the included angle between the endpoints of adjacent profile strip polygons and the user-configured corner connection method.
6. The method for automatically generating a material list for door and window profiles based on geometric parametric modeling according to claim 1, characterized in that: Arithmetic expressions support addition, subtraction, multiplication, division, and exponentiation operators. The compiler parses them into an abstract syntax tree and then calculates the node values sequentially. The conditional branch formula adopts a ternary operator structure. The system first calculates the current value of the profile attribute variable in the conditional expression. If the result is true, the true value branch expression is executed; otherwise, the false value branch expression is executed. The arc length calculation function encapsulates a mathematical relationship based on the chord length and the arch height. When called, it returns the arc length based on the input parameters. The formula for calculating the blanking length is: Blanking length = cc + aa × 2 + adjustment value.
7. The method for automatically generating a material list for door and window profiles based on geometric parametric modeling according to claim 1, characterized in that: When implementing a multi-type compilation pipeline, the system first performs variable pre-compilation, calculates the conditional branches and arithmetic operations in the user-defined variable formulas, and injects the results into the temporary variable table of each window frame; then, according to the window type, the corresponding compiler is called, and each compiler uses the principle of priority of intersection of matching fields to filter the current list of profiles to be compiled. The entire pipeline sequentially executes the compilation of frame profiles, hinged fan profiles, split fan profiles, folding fan profiles, sliding fan profiles, and guardrail profiles. The output results of each type of compiler are then merged and processed.
8. The method for automatically generating a material list for door and window profiles based on geometric parametric modeling according to claim 1, characterized in that: During the design rule verification phase, the system checks whether the glass area is within the allowable range. In the cost calculation phase, the material cost calculation formula is called, first converting the profile centerline length to metric units, and then multiplying it by the profile's weight per meter and the material unit price. The quotation calculation calls the corresponding quotation calculation formula according to the pricing method. The piece-rate wage calculation formula adds the results of multiplying the cutting length by the unit length labor cost and the drilling quantity by the unit hole labor cost. In the secondary compilation mechanism, if the difference in the glass equal division width is detected to exceed the threshold after the first compilation, the system automatically triggers equal division optimization and recompilation. Finally, the system outputs structured data including a profile list, glass list, accessory list, hole position list, quotation, cost, and piece-rate wage, and reverse-labels the profile number and hole position on the graphical interface.
9. The method for automatically generating a material list for door and window profiles based on geometric parametric modeling according to claim 1, characterized in that: The pre-trained classification model is a decision tree or support vector machine model trained based on historical splicing cases. Its input features include at least: the angles α1 and α2 between the mullion and the border, the width w of the mullion, the width of the border profile, and the frequency of the segmentation bar being enabled in the user's historical selection records; the model output is a binary classification result of whether the material is cut independently.
10. The method for automatically generating a material list for door and window profiles based on geometric parametric modeling according to claim 1, characterized in that: The genetic algorithm uses the assembly fit, scrap rate, and material utilization rate of segmented profiles from historical processing data as fitness functions, and applies parameters β and δ. base Global optimization is performed; each optimization iteration generates a new generation of parameter combinations, and after crossover and mutation, the parameter values that result in the highest fitness are selected as the periodically updated β and δ. base Write to system configuration.
