A device parameterization modeling and dynamic modification method, system and storage medium
By establishing the association between equipment parameters and blocks in the CAD system, and utilizing the modeling engine and extended dictionary, parameter-driven automatic graphic updates are achieved, solving the problem of parameter and geometry separation in traditional CAD and improving design efficiency and data storage capacity.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Filing Date
- 2026-04-27
- Publication Date
- 2026-07-10
AI Technical Summary
In traditional CAD drawing methods, geometry is separated from business parameters, resulting in poor flexibility in modification, lack of business logic support, weak parametric capabilities, limited data storage, and a lack of batch operation mechanisms and standardized interactive data, leading to low design efficiency and frequent errors.
By establishing a relationship between equipment parameter data and CAD blocks, storing parameter data using an extended dictionary, and introducing a modeling engine for parameter-driven graphic generation, a closed-loop update of parameters and graphics is achieved, supporting segmented storage and batch modification.
It enables parameter-driven automatic graphic updates, eliminating the need for manual line adjustments, improving design efficiency, ensuring consistency between graphics and parameters, and supporting large-scale data storage and batch operations.
Smart Images

Figure CN122365624A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer-aided design, specifically to a method, system, and storage medium for parametric modeling and dynamic modification of equipment. Background Technology
[0002] In the field of industrial equipment design and manufacturing, computer-aided design (CAD) software is an indispensable tool. Traditional CAD drawing methods typically employ a "line drawing" approach, where designers combine basic geometric elements such as straight lines and arcs to create equipment graphics. This method has the following significant drawbacks: (1) Separation of drawing and parameters, resulting in poor flexibility in modification: Once a traditional block is generated, its geometry is separated from the business parameters (such as power, voltage, and model). When it is necessary to modify the size or parameters of the equipment, designers often need to manually adjust the position of the lines or even redraw the drawing. This "drawing modification" process is not only inefficient, but also easily leads to inconsistencies between the drawing and the parameters, resulting in design errors.
[0003] (2) Weak parameterization capabilities and lack of business logic support: Although the existing CAD dynamic block technology provides certain parameter-driven capabilities, it is mainly limited to geometric constraints (such as stretching and rotation) and cannot handle complex business logic. For example, it cannot automatically calculate the number of motors or the roller spacing based on the length of the conveyor, nor can it store business data that is not geometric. Summary of the Invention
[0004] This application provides a method, system, and storage medium for parametric modeling and dynamic modification of equipment, which can solve the problem in the prior art where the geometry and business parameters of traditional blocks are separated once they are generated. When it is necessary to modify the size or parameters of the equipment, it is often necessary to manually adjust the line positions or even redraw the blocks.
[0005] In a first aspect, embodiments of this application provide a method for parametric modeling and dynamic modification of equipment, comprising the following steps: Establish the association between equipment parameter data and CAD blocks, and serialize the equipment parameter data and store it in the extended dictionary of the CAD blocks; In response to a modeling or modification instruction, acquire the device parameter data to be processed; wherein, the device parameter data to be processed is historical data read from the extended dictionary and deserialized, or is newly created device parameter data input from the outside; The device parameter data to be processed is input into the modeling engine to generate graphic generation data; the corresponding CAD graphic entity is generated or updated based on the graphic generation data, and the device parameter data to be processed is serialized and written back to the extended dictionary.
[0006] Preferably, the association between equipment parameter data and CAD blocks is established, including: Define a common device base class, which encapsulates basic common attributes including device ID, name, model, power, and voltage. At the same time, write conversion rules for attribute validation, data serialization, and deserialization. Based on the common equipment base class, its equipment subclasses are derived, and each equipment subclass encapsulates the unique geometric parameters, electrical parameters, material parameters, and business attributes of each equipment. Mark the associated parameters in the common equipment base class and equipment subclass that participate in modeling and drawing, and establish the mapping relationship between the associated parameters and the modeling logic.
[0007] Preferably, the serialized device parameter data is stored in an extended dictionary of CAD blocks, including the following steps: Obtain the storage capacity threshold for extended record data in the CAD extended dictionary; Determine whether the amount of serialized data exceeds the storage capacity threshold; If the limit is not exceeded, the data will be stored in a single extended record; If the number of segments exceeds the limit, the data is divided into several sub-segments and then stored in multiple extended records. The total number of segments, the types of segmented data and device parameter data are stored in the extended dictionary to form segmented metadata.
[0008] Preferably, the serialization is JSON serialization; Obtain parameter data of the device to be processed, including: Read the data type information and segmented metadata from the extended dictionary; If multiple extended records exist, the sub-data segments are automatically merged based on the segmented metadata to restore the complete data; the complete data is then deserialized into the device parameter data to be processed.
[0009] Preferably, the graphics generation data includes a standardized data interaction root class object and associated tile class objects; The standardized data interaction root class object is configured with an attribute text list, a block list, a database text list, and a device parameter object reference, which serve as the data interaction carrier between the modeling engine and the extended dictionary of CAD blocks; The associated tile class object serves as a modular sub-data of the standardized data interaction root class object, and is configured with a 3D shape list, a 2D curve list, a sub-tile list, circular array data, 3D array data, position data, rotation data, scaling data, and material data.
[0010] Preferably, the modeling engine is constructed in layers to form graphical generation data including multiple component layers, and each component layer includes multiple geometric layers; The modeling engine has built-in geometric parameter calculation logic, which includes at least one of the following: Rotational combination calculation logic based on quaternion multiplication; Logic for calculating arbitrary axial circular arrays based on Rodrigues' rotation formula.
[0011] Preferably, generating or updating the corresponding CAD graphic entity based on the graphic generation data-driven CAD interface includes: If the current device parameter data to be processed is for new modeling, then create new CAD blocks and entities based on the data generated from the graphics; If the current device parameter data to be processed has been modified and updated, new graphic generation data is first generated based on the modifications, then new CAD blocks and entities are reconstructed based on the new graphic generation data, and finally the original CAD blocks and entities are deleted.
[0012] Preferably, it also includes a batch parameter modification step, specifically including: Retrieve multiple selected CAD blocks from the CAD interface, and filter out CAD blocks of the same type of equipment based on the type information in the extended dictionary; Extract common attribute parameters from the extended dictionary corresponding to the CAD blocks of the same type of equipment, and generate a batch parameter editing interface; Receive the user's modified public parameter values, iterate through all selected CAD blocks, and update the modified public parameter values to the corresponding device parameter data; For each block, the modeling engine is triggered sequentially to regenerate the graphic generation data and update the CAD graphic entity, and the modified equipment parameter data of each CAD block is reserialized and stored in the corresponding extended dictionary.
[0013] Secondly, embodiments of this application provide a device parametric modeling and dynamic modification system, including: The first module is used to establish the association between equipment parameter data and CAD blocks, and to serialize the equipment parameter data and store it in the extended dictionary of the CAD blocks; The second module is used to obtain device parameter data to be processed in response to modeling or modification instructions; wherein the device parameter data to be processed is historical data read from the extended dictionary and deserialized, or newly created device parameter data input from the outside; The third module is used to input the device parameter data to be processed into the modeling engine to generate graphic generation data; drive the CAD interface to generate or update the corresponding CAD graphic entities according to the graphic generation data; and serialize the device parameter data to be processed and write it back into the extended dictionary.
[0014] Thirdly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements a method for device parameterization modeling and dynamic modification.
[0015] The beneficial effects of the technical solutions provided in this application include: First, the device parameter data is serialized and stored in the extended dictionary of the drawing block. Leveraging the shared lifecycle of the extended dictionary and the block object, business parameters are physically bound to the block, eliminating the physical basis for separating data and graphics. This allows modification commands to directly affect the data inherent in the block. Second, a modeling engine is introduced. The device parameter data to be processed is input into the modeling engine to generate graphic generation data. This means that geometric generation no longer relies on manual drawing but on the engine's automatic calculation based on the parameter data. When parameters change, the modeling engine automatically recalculates the geometric data. Finally, the graphic generation data drives the drawing interface to generate or update the corresponding graphic entity, and the device parameter data to be processed is serialized and written back to the extended dictionary. This ensures that the stored parameter data is updated to the latest state after the graphics are updated, forming a closed loop. These three steps work together to allow the system to automatically complete the entire process of reading data, calculating graphics redrawing data, and updating when modifying device dimensions or parameters, simply by inputting the new parameters. This completely eliminates the technical obstacles of manually adjusting line positions and redrawing in the previous technology, achieving the technical effect of parameter-driven automatic graphic updates. Attached Figure Description
[0016] Figure 1 This is a schematic diagram illustrating the general process of the parametric modeling and dynamic modification method for the equipment in this application. Figure 2 This is a schematic diagram illustrating the process of storing serialized equipment parameter data into an extended dictionary of CAD blocks, as provided in this application. Figure 3 This is a flowchart illustrating the types and batch modification processes for the device parameter data to be processed provided in this application. Detailed Implementation
[0017] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.
[0018] Traditional CAD drawing methods typically employ a "line drawing" approach, where designers combine basic geometric elements such as straight lines and arcs to create equipment graphics. This method has the following significant drawbacks: (1) Separation of drawing and parameters, resulting in poor flexibility in modification: Once a traditional block is generated, its geometry is separated from the business parameters (such as power, voltage, and model). When it is necessary to modify the size or parameters of the equipment, designers often need to manually adjust the position of the lines or even redraw the drawing. This "drawing modification" process is not only inefficient, but also easily leads to inconsistencies between the drawing and the parameters, resulting in design errors.
[0019] (2) Weak parameterization capabilities and lack of business logic support: Although the existing CAD dynamic block technology provides certain parameter-driven capabilities, it is mainly limited to geometric constraints (such as stretching and rotation) and cannot handle complex business logic. For example, it cannot automatically calculate the number of motors or the roller spacing based on the length of the conveyor, nor can it store business data that is not geometric.
[0020] (3) Limited data storage, unable to hold full information: CAD software usually provides an extension dictionary for storing custom data, but each extension record has a storage capacity limit. For complex industrial equipment, the amount of data serialized from its full-dimensional parameters (geometric, electrical, material, business attributes) can easily exceed this threshold, leading to data loss or storage failure.
[0021] (4) Lack of batch operation mechanism: In engineering projects, there are often a large number of similar devices. Existing technology lacks an effective batch modification mechanism, and designers need to select each device one by one for modification, which is a lot of work and easy to miss.
[0022] (5) Lack of standardized interactive data: In the secondary development process, there is often a lack of standardized data interaction carrier between the modeling logic and the CAD drawing interface, resulting in non-standard data transmission, high coupling between the modeling engine and the underlying CAD, and difficulty in maintenance.
[0023] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0024] Firstly, reference Figure 1 This application provides a method for parametric modeling and dynamic modification of equipment, which includes: Step 100: The system establishes the association between equipment parameter data and CAD blocks. Specifically, the system serializes the equipment parameter data and stores it in the extended dictionary of the CAD block. The extended dictionary is a built-in storage space of the CAD object and has the characteristic of having the same lifecycle as the block, thus establishing a unique association between the equipment parameter data and the CAD block.
[0025] Step 200: The system responds to the modeling or modification command and obtains the device parameter data to be processed. There are two scenarios here: one is a "modification scenario," where the device parameter data to be processed is historical data read from an extended dictionary and deserialized; the other is a "new scenario," where the device parameter data to be processed is newly created device parameter data input from an external source. This invention enhances the versatility of the method by handling these two scenarios through a unified process.
[0026] Step 300 includes steps 300-1 and 300-2; Step 300-1 involves the system inputting the device parameter data to be processed into the modeling engine to generate graphic generation data. The modeling engine is an independent calculation module. As the core execution module for device parameter-driven CAD drawing, the modeling engine has built-in core functions such as geometric parameter calculation, graphic structure generation, and parameter association mapping. It can receive device class object parameters, complete the calculation and construction of the drawing model, and support the entire process of modeling and remodeling.
[0027] Step 300-2: The system generates or updates the corresponding CAD graphic entities based on the graphic generation data via the CAD interface, and serializes the device parameter data to be processed and writes it back to the extended dictionary. If it is a modification operation, the system will automatically delete the original CAD blocks and entities, and reconstruct the graphic based on the new data, ensuring no residual lines. The system serializes the device parameter data to be processed and writes it back to the extended dictionary. This step synchronizes the state of the device parameter data with the CAD graphic entities, ensuring "graphic data consistency." It is important to note that the write-back process is a serialization process to ensure that the data can be persistently saved.
[0028] The above approach establishes a link between equipment parameter data and CAD blocks through an extended dictionary, achieving physical binding between data and graphics. By driving graphics generation and writing back data through a modeling engine, a closed loop of "parameter modification → graphics update → data synchronization" is formed, fundamentally solving the basic technical problems of separation between traditional CAD drawing and parameters, and inconsistency in data after modification.
[0029] In some preferred embodiments, a device class inheritance hierarchy is designed, that is, to establish the association between device parameter data and CAD blocks, including: Define a common device base class MachineReqBase, which encapsulates basic common attributes including device ID, name, model, power, and voltage. At the same time, write the conversion rules for attribute validation, data serialization, and deserialization. Derivate equipment subclasses from the common equipment base class, encapsulating the unique geometric parameters, electrical parameters, material parameters, and business attributes of each piece of equipment within the equipment subclasses; for example, derive subclasses for roller conveyors, belt conveyors, etc. Mark the associated parameters in the common equipment base class and equipment subclass that participate in modeling and drawing, and establish the mapping relationship between the associated parameters and the modeling logic.
[0030] By implementing an inheritance system oriented towards device objects, parameter definitions and methods are reused, and parameter standards for drawing similar devices are unified. By using the Modeling(true) attribute to associate parameters with modeling logic, precise separation and control of business parameters and geometric drawing are achieved, providing a standardized input carrier for the modeling engine.
[0031] In some preferred embodiments, reference Figure 2 The serialization of the device parameter data and its storage in the extended dictionary of the CAD block includes the following steps: Obtain the storage capacity threshold for extended record data in the CAD extended dictionary; Determine whether the amount of serialized data exceeds the storage capacity threshold; If the limit is not exceeded, the data will be stored in a single extended record XRecord; If the number of segments exceeds the limit, the data is divided into several sub-segments and then stored in multiple extended records. The total number of segments, the types of segmented data and device parameter data are stored in the extended dictionary to form segmented metadata.
[0032] The serialization is JSON serialization; the device parameter data to be processed is obtained, including: Read the data type information and segmented metadata from the extended dictionary; If multiple extended records exist, the sub-data segments are automatically merged based on the segmented metadata to restore the complete data; the complete data is then deserialized into the device parameter data to be processed. This process is transparent to the upper-layer business code and theoretically supports data storage of unlimited size.
[0033] By setting a storage capacity threshold and performing segmented storage, the size limit of a single record in the CAD extended dictionary is broken, and the complete embedded storage of all device data within the CAD block is achieved. The segmented data is automatically merged during reading, which is transparent to the upper-layer business code and ensures the stability and reliability of storing large amounts of device parameters.
[0034] In some preferred embodiments, in order to decouple the modeling engine from the underlying CAD system, the present invention defines a standardized data interaction class; The graphics generation data includes a standardized data interaction root class object and associated tile class objects; The standardized data interaction root class object is configured with an attribute text list, a block list, a database text list, and a device parameter object reference, which serve as the data interaction carrier between the modeling engine and the extended dictionary of CAD blocks; The associated tile class object serves as a modular sub-data of the standardized data interaction root class object, and is configured with a 3D shape list, a 2D curve list, a sub-tile list, circular array data, 3D array data, position data, rotation data, scaling data, and material data.
[0035] Please refer to the following explanations: Define a standardized data interaction root class MachineShape between the modeling engine and CAD, which serves as the sole carrier for transmitting device attributes and modeling data to CAD.
[0036] Define the core associated class Block of MachineShape as the basic data for building the device's graphical modularity.
[0037] A dedicated modeling engine for industrial equipment is built, serving as the core execution module for equipment parameter-driven CAD drawing. The modeling engine has built-in core functions such as geometric parameter calculation, graphic structure generation, and parameter association mapping. It can receive equipment class object parameters, complete the calculation and construction of the drawing model, and support the entire process of modeling and remodeling. The design modeling engine calls methods based on the attributes of strongly typed objects of the device class, calls the core calculation interface of the modeling engine, transforms the device attributes into standardized modeling data of MachineShape and related classes, completes the construction of the device drawing model, and realizes accurate and standardized conversion of device parameters to CAD drawing data.
[0038] By defining standardized data interaction root class objects and associated block class objects, the unified transmission of equipment attributes and modeling data to CAD is realized, ensuring the standardization and accuracy of data transmission; the modular sub-data design adapts to the component design requirements of different equipment, improving the scalability and maintainability of the modeling engine.
[0039] In some preferred embodiments, the modeling engine is constructed in layers to form graphics generation data comprising multiple component layers, each component layer including multiple geometric layers; this layered structure standardizes the logic of the modeling engine to populate data classes, ensuring the accuracy of parameter-driven graphics generation.
[0040] The modeling engine has built-in geometric parameter calculation logic, which includes at least one of the following: The rotation combination calculation logic based on quaternion multiplication: Traditional Euler angle rotation is prone to gimbal lock problems when handling multi-axis rotations. The engine of this invention uses quaternion multiplication to realize rotation combination, and then converts the result back to Euler angles, completely solving the gimbal lock problem.
[0041] Arbitrary Axis Circular Array Calculation Logic Based on Rodrigues' Rotation Formula: For array requirements with non-standard axes, the engine calculates the array point positions based on Rodrigues' rotation formula.
[0042] The specific algorithm code is as follows: Quaternion rotation csharp / / Rotation.Combine() - A built-in method of the modeling engine that uses quaternions to combine rotations public static Rotation Combine(Rotation r1, Rotation r2) { / / Convert to quaternion Quaternion q1 = r1.ToQuaternion(); Quaternion q2 = r2.ToQuaternion(); / / Quaternion multiplication for rotational combination Quaternion combined = q1 * q2; / / Switch back to Euler angles and assign a value to the Rotation property of the Block class. return combined.ToRotation(); }
[0043] Arbitrary axial circular array csharp / / CircleArray - A built-in method in the modeling engine that uses the Rodrigues rotation formula to implement arbitrary axis arrays. public Point GetPointAt(Point basePoint, int index) { Vector axis = Vector.Normalize(); double angle = stepAngle * index; / / Rodrigues' rotation formula for calculating array point positions: v' = v·cosθ + (k×v)·sinθ + k(k·v)(1-cosθ) Vector v = basePoint - centerPoint; Vector vRot = v * Math.Cos(angle) + Vector.Cross(axis, v) * Math.Sin(angle) + axis * Vector.Dot(axis, v) * (1 - Math.Cos(angle)); Point arrayPoint = centerPoint + vRot; / / Assign a value to the CircleArray property of the Block class return arrayPoint; }
[0044] By incorporating quaternion rotation and Rodrigues array algorithms, the problem of geometric parameter calculation in complex equipment drawing is solved, adapting to the drawing needs of rotating and arraying equipment parts; the hierarchical construction logic ensures the accuracy of parameter-driven graphics generation, providing accurate geometric modeling data for associated block class objects.
[0045] In some preferred embodiments, reference Figure 3 To achieve graphic updates and batch modifications, the graphic update strategy and batch modification process are described in detail; the corresponding CAD graphic entities are generated or updated based on the graphic generation data using the CAD interface, including: If the current model is newly created, then create new CAD blocks and entities based on the data generated from the graphics; If the current device parameter data to be processed has been modified and updated, new graphic generation data is first generated based on the modifications. Then, new CAD blocks and entities are reconstructed based on the new graphic generation data, and finally, the original CAD blocks and entities are deleted. This "reconstruction-deletion" mechanism ensures the thoroughness of the graphic update and avoids residual lines.
[0046] In addition, the method also includes a batch parameter modification step, specifically including: Retrieve multiple selected CAD blocks from the CAD interface, and filter out CAD blocks of the same type of equipment based on the type information in the extended dictionary; Extract common attribute parameters from the extended dictionary corresponding to the CAD blocks of the same type of equipment, and generate a batch parameter editing interface; Receive the user's modified public parameter values, iterate through all selected CAD blocks, and update the modified public parameter values to the corresponding device parameter data; For each block, the modeling engine is triggered sequentially to regenerate the graphic generation data and update the CAD graphic entity, and the modified equipment parameter data of each CAD block is reserialized and stored in the corresponding extended dictionary.
[0047] The above methods ensure the thoroughness of graphic updates and avoid residual lines; the batch parameter modification steps enable one-click parameter modification and graphic reconstruction of a large number of equipment blocks, solving the problem of low efficiency in batch operations and significantly improving design efficiency.
[0048] In some preferred embodiments, this embodiment takes a linear roller conveyor as an example to specifically illustrate the application of the present invention in actual engineering.
[0049] Parameter Definition: Define the roller conveyor subclass. Equipment parameter data includes basic attributes (ID, name), geometric parameters (length, width, height, roller spacing), electrical parameters (motor power, voltage), and business attributes (material type). Among them, length, width, and roller spacing are marked as associated parameters and participate in modeling and drawing.
[0050] Data storage: After the user inputs parameters, the system serializes the device parameter data containing all the above parameters into a JSON string. If the data volume exceeds 16KB (e.g., containing a large number of custom attributes), it is stored in segments in the extended dictionary of the CAD block.
[0051] Engine Calculation: The modeling engine reads equipment parameter data. For roller conveyors, the engine executes specific logic: automatically calculating the number of rollers based on "length" and "roller spacing"; calculating the frame dimensions based on "width"; and matching the motor block model based on "motor power". The engine uses array calculation logic to generate roller arrangement data and populates it into the associated block class object.
[0052] Graphic generation: The system generates data based on the generated graphics, draws entities such as the conveyor frame, rollers, and motor in CAD, and combines them into a complete CAD block.
[0053] Dynamic modification: When the user modifies the length parameter, the system reads data from the extended dictionary, the engine recalculates the number of rollers, automatically adds or removes roller blocks, updates the frame length, and writes the new parameters back to the extended dictionary.
[0054] The feasibility of the method of this invention in complex industrial equipment was verified through a specific application of a linear roller conveyor. It realized an advanced parametric function that automatically calculates geometric quantities (such as the number of rollers) based on business parameters (such as length), demonstrating the ability of the modeling engine to process business logic, ensuring the consistency between drawings and parameters, and greatly saving the time of drawing and modifying drawings.
[0055] Secondly, a system for parametric modeling and dynamic modification of equipment is provided, characterized in that it includes: The first module is used to establish the association between equipment parameter data and CAD blocks, and to serialize the equipment parameter data and store it in the extended dictionary of the CAD blocks; The second module is used to obtain device parameter data to be processed in response to modeling or modification instructions; wherein the device parameter data to be processed is historical data read from the extended dictionary and deserialized, or newly created device parameter data input from the outside; The third module is used to input the device parameter data to be processed into the modeling engine to generate graphic generation data; drive the CAD interface to generate or update the corresponding CAD graphic entities according to the graphic generation data; and serialize the device parameter data to be processed and write it back into the extended dictionary.
[0056] This system can be integrated into CAD plugins, standalone design software, or cloud-based design platforms. In summary, this invention overcomes the technical limitations of existing CAD by constructing a device class system, a dedicated modeling engine, and standardized CAD interactive data classes, combined with extended dictionary segmented storage, parameter-graphic linkage, and batch drawing modification mechanisms. It achieves parameter-driven flexible drawing and efficient batch drawing modification, solving the problems of poor linkage between drawing and parameters, low efficiency of batch operations, and lack of standard parameter transmission in existing technologies.
[0057] The functions of each module in the above-mentioned equipment parametric modeling and dynamic modification device correspond to the steps in the above-mentioned equipment parametric modeling and dynamic modification method embodiment, and their functions and implementation processes will not be described in detail here.
[0058] Thirdly, embodiments of this application provide a device parameterization modeling and dynamic modification device, which can be a personal computer (PC), laptop computer, server, or other device with data processing capabilities.
[0059] In this embodiment, the device parameterization modeling and dynamic modification device may include a processor, memory, communication interface, and communication bus.
[0060] The communication bus can be of any type and is used to interconnect the processor, memory, and communication interface.
[0061] Communication interfaces include input / output (I / O) interfaces, physical interfaces, and logical interfaces used for parametric modeling of devices and dynamic modification of the internal interconnections of the devices, as well as interfaces used for parametric modeling of devices and dynamic modification of the devices to interconnect with other devices (such as other computing devices or user equipment). Physical interfaces can be Ethernet interfaces, fiber optic interfaces, ATM interfaces, etc.; user equipment can be displays, keyboards, etc.
[0062] Memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.
[0063] The processor can be a general-purpose processor, which can call the device parametric modeling and dynamic modification program stored in the memory and execute the device parametric modeling and dynamic modification method provided in the embodiments of this application. For example, the general-purpose processor can be a central processing unit (CPU). The method executed when the device parametric modeling and dynamic modification program is called can be referred to the various embodiments of the device parametric modeling and dynamic modification method of this application, and will not be repeated here.
[0064] Fourthly, embodiments of this application also provide a computer-readable storage medium.
[0065] The present application has a computer-readable storage medium storing a device parametric modeling and dynamic modification program, wherein when the device parametric modeling and dynamic modification program is executed by a processor, it implements the steps of the device parametric modeling and dynamic modification method as described above.
[0066] The method implemented when the equipment parametric modeling and dynamic modification program is executed can be referred to in the various embodiments of the equipment parametric modeling and dynamic modification method of this application, and will not be repeated here.
[0067] It should be noted that the sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0068] The terms "comprising" and "having," and any variations thereof, in the specification, claims, and accompanying drawings of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus. The terms "first," "second," and "third," etc., are used to distinguish different objects, etc., and do not indicate a sequence, nor do they limit "first," "second," and "third" to different types.
[0069] In the description of the embodiments of this application, terms such as "exemplary," "for example," or "for instance" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplary," "for example," or "for instance" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary," "for example," or "for instance" is intended to present the relevant concepts in a concrete manner.
[0070] In the description of the embodiments of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The "and / or" in the text is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of this application, "multiple" means two or more.
[0071] In some processes described in the embodiments of this application, multiple operations or steps are included in a specific order. However, it should be understood that these operations or steps may not be executed in the order they appear in the embodiments of this application, or they may be executed in parallel. The sequence number of the operation is only used to distinguish different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed sequentially or in parallel, and these operations or steps may be combined.
[0072] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device to execute the methods described in the various embodiments of this application.
[0073] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A method for parametric modeling and dynamic modification of equipment, characterized in that, Includes the following steps: Establish the association between equipment parameter data and CAD blocks, and serialize the equipment parameter data and store it in the extended dictionary of CAD blocks; In response to a modeling or modification instruction, acquire the device parameter data to be processed; wherein, the device parameter data to be processed is historical data read from the extended dictionary and deserialized, or is newly created device parameter data input from the outside; The device parameter data to be processed is input into the modeling engine to generate graphic generation data; the corresponding CAD graphic entity is generated or updated based on the graphic generation data, and the device parameter data to be processed is serialized and written back to the extended dictionary.
2. The method for parametric modeling and dynamic modification of equipment according to claim 1, characterized in that, Establish the association between equipment parameter data and CAD blocks, including: Define a common device base class, which encapsulates basic common attributes including device ID, name, model, power, and voltage. At the same time, write conversion rules for attribute validation, data serialization, and deserialization. Based on the common equipment base class, its equipment subclasses are derived, and each equipment subclass encapsulates the unique geometric parameters, electrical parameters, material parameters, and business attributes of each equipment. Mark the associated parameters in the common equipment base class and equipment subclass that participate in modeling and drawing, and establish the mapping relationship between the associated parameters and the modeling logic.
3. The method for parametric modeling and dynamic modification of equipment according to claim 1, characterized in that, The serialized device parameter data is stored in the extended dictionary of the CAD block, including the following steps: Obtain the storage capacity threshold for extended record data in the CAD extended dictionary; Determine whether the amount of serialized data exceeds the storage capacity threshold; If the limit is not exceeded, the data will be stored in a single extended record; If the number of segments exceeds the limit, the data is divided into several sub-segments and then stored in multiple extended records. The total number of segments, the types of segmented data and device parameter data are stored in the extended dictionary to form segmented metadata.
4. The method for parametric modeling and dynamic modification of equipment according to claim 3, characterized in that: The serialization is JSON serialization; Obtain parameter data of the device to be processed, including: Read the data type information and segmented metadata from the extended dictionary; If multiple extended records exist, the sub-data segments are automatically merged based on the segmented metadata to restore the complete data; the complete data is then deserialized into the device parameter data to be processed.
5. The method for parametric modeling and dynamic modification of equipment according to claim 1, characterized in that: The graphics generation data includes a standardized data interaction root class object and associated tile class objects; The standardized data interaction root class object is configured with an attribute text list, a block list, a database text list, and a device parameter object reference, which serve as the data interaction carrier between the modeling engine and the extended dictionary of CAD blocks; The associated tile class object serves as a modular sub-data of the standardized data interaction root class object, and is configured with a 3D shape list, a 2D curve list, a sub-tile list, circular array data, 3D array data, position data, rotation data, scaling data, and material data.
6. The method for parametric modeling and dynamic modification of equipment according to claim 1, characterized in that: The modeling engine is constructed in layers to form graphical generation data including multiple component layers, and each component layer includes multiple geometric layers; The modeling engine has built-in geometric parameter calculation logic, which includes at least one of the following: Rotational combination calculation logic based on quaternion multiplication; Logic for calculating arbitrary axial circular arrays based on Rodrigues' rotation formula.
7. The method for parametric modeling and dynamic modification of equipment according to claim 1, characterized in that, The CAD interface is driven by the graphic generation data to generate or update the corresponding CAD graphic entities, including: If the current device parameter data to be processed is for new modeling, then create new CAD blocks and entities based on the data generated from the graphics; If the current device parameter data to be processed has been modified and updated, new graphic generation data is first generated based on the modifications, then new CAD blocks and entities are reconstructed based on the new graphic generation data, and finally the original CAD blocks and entities are deleted.
8. The method for parametric modeling and dynamic modification of equipment according to claim 1, characterized in that, It also includes a batch parameter modification step, specifically including: Retrieve multiple selected CAD blocks from the CAD interface, and filter out CAD blocks of the same type of equipment based on the type information in the extended dictionary; Extract common attribute parameters from the extended dictionary corresponding to the CAD blocks of the same type of equipment, and generate a batch parameter editing interface; Receive the user's modified public parameter values, iterate through all selected CAD blocks, and update the modified public parameter values to the corresponding device parameter data; For each block, the modeling engine is triggered sequentially to regenerate the graphic generation data and update the CAD graphic entity, and the modified equipment parameter data of each CAD block is reserialized and stored in the corresponding extended dictionary.
9. A system for parametric modeling and dynamic modification of equipment, characterized in that, include: The first module is used to establish the association between equipment parameter data and CAD blocks, and to serialize the equipment parameter data and store it in the extended dictionary of the CAD blocks; The second module is used to obtain device parameter data to be processed in response to modeling or modification instructions; wherein the device parameter data to be processed is historical data read from the extended dictionary and deserialized, or newly created device parameter data input from the outside; The third module is used to input the device parameter data to be processed into the modeling engine to generate graphic generation data; drive the CAD interface to generate or update the corresponding CAD graphic entities according to the graphic generation data; and serialize the device parameter data to be processed and write it back into the extended dictionary.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the device parametric modeling and dynamic modification method as described in any one of claims 1 to 8.