Element model generation method and device based on three-dimensional design software

By registering component models in the three-dimensional design software, creating data classes and attribute classes, and obtaining reference data based on the component database, generating three-dimensional geometry and combining, the diversity and efficiency problems of component model acquisition in the existing technology are solved, and efficient and unified component model generation and management are achieved.

CN119939824AInactive Publication Date: 2025-05-06CHINA COAL RES INST +1

Patent Information

Application Number
CN202510430416.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-08
Publication Date
2025-05-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, the component models obtained in the existing technology have problems such as diverse model formats, varying degree of fineness, large storage space, incomplete series models, low modeling efficiency, and difficult management.

Method used

The component model generation method based on three-dimensional design software is adopted. By registering the model of the components to be modeled, data classes and attribute classes are created, reference data is obtained based on the component database, three-dimensional geometry is generated and combined, and the data-driven model is realized.

Benefits of technology

The data-driven model is implemented, the model data format is unified, the modeling efficiency and accuracy is improved, the model storage method is optimized, the storage space is reduced, and the model management, maintenance and sharing is facilitated.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119939824A_ABST
    Figure CN119939824A_ABST
Patent Text Reader

Abstract

The invention provides an element model generation method and device based on three-dimensional design software, and relates to the technical field of digital engineering design. The method comprises the following steps: registering a model of a to-be-modeled element in design software; creating a data class of the model; acquiring reference data of the to-be-modeled element based on the element database; assigning a first geometric model parameter in the data class according to the reference data, wherein the assigned first geometric model parameter comprises multiple pieces of geometry information forming the to-be-modeled element and key point information corresponding to each piece of geometry information; generating a plurality of three-dimensional geometries according to the geometry generation function and the plurality of geometry information; and combining the plurality of three-dimensional geometries based on the key point information to generate a model of the to-be-modeled element. The element model is generated through the data of the element and the geometry generation function, so that the data-driven model is realized, the model data format is unified, the modeling efficiency and the modeling accuracy are improved, and the storage space of the element data required by modeling can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of digital engineering design, and in particular to a component model generation method and device based on three-dimensional design software. Background Art

[0002] Digital engineering design has become a development trend of engineering design. The results of digital engineering design include design specifications, drawings, equipment lists, cost reports, etc. in the traditional sense, as well as digital engineering models, which can be used for construction, production and operation and maintenance management, etc. Components are the smallest units that constitute the content of digital engineering design, such as motors, pumps, valves, flanges, doors, windows and individual, inseparable special engineering elements commonly used in coal mine engineering design.

[0003] In the related art, there are usually two ways to obtain component models. One is the model provided by the equipment manufacturer or downloaded from the Internet. However, the formats of such models are diverse, and there are problems such as the model being too precise or insufficient, occupying a large storage space, and incomplete series models. Another way to obtain component models is for designers to model them themselves. Graphical modeling by designers is a more common modeling method, but self-modeling has problems such as low modeling efficiency, large model storage space, and difficult model management. In addition, due to differences in modeling environments and modeling methods, the above two methods of obtaining component models have inconsistent data formats, making them difficult to maintain and share, and may also result in the inability to achieve data-driven after the model is added to the graphic space. Summary of the invention

[0004] The present disclosure aims to solve one of the technical problems in the related art at least to some extent.

[0005] To this end, the first embodiment of the present disclosure proposes a component model generation method based on three-dimensional design software, including: Registering the model of the component to be modeled in the three-dimensional design software; Creating a data class of the model, wherein the data class is used to define model parameters of the model; Acquiring reference data of the component to be modeled based on a component database; Assigning a value to a first geometric model parameter in the data class according to the reference data, wherein the assigned first geometric model parameter includes a plurality of geometric body information constituting the element to be modeled and key point information corresponding to each of the geometric body information; Generate multiple three-dimensional geometric bodies according to the geometric body generation function in the software development kit corresponding to the three-dimensional design software and the multiple geometric body information; The multiple three-dimensional geometric bodies are combined based on the key point information to generate a model of the component to be modeled.

[0006] In some embodiments of the present disclosure, the geometric body generation function includes a two-dimensional geometric body generation function and a three-dimensional geometric body generation function; the generation of multiple three-dimensional geometric bodies based on the geometric body generation function in the software development kit corresponding to the three-dimensional design software and the multiple geometric body information includes: determining the geometric body type to which each of the geometric body information belongs; determining the target two-dimensional geometric body generation function corresponding to each of the geometric body information in the two-dimensional geometric body generation function according to the geometric body type; using the target two-dimensional geometric body generation function to generate a two-dimensional geometric body corresponding to each of the geometric body information; and using the three-dimensional geometric body generation function to stretch each of the two-dimensional geometric bodies to generate the multiple three-dimensional geometric bodies.

[0007] In some embodiments of the present disclosure, the method also includes: creating an attribute class of the model, the attribute class being used to define the attributes of the model; rewriting the SetValue function in the attribute class to assign a second geometric model parameter in the attribute class based on the assigned first geometric model parameter; reacquiring the attribute modification operation information of the software user, and updating the assigned second geometric model parameter according to the attribute modification operation information; writing the Commit function in the attribute class to update the first geometric model parameter according to the updated second geometric model parameter, and regenerating the model of the element to be modeled according to the updated first geometric model parameter.

[0008] In some embodiments of the present disclosure, the method further includes: using the m_controls class in the software development kit to define control points of the model, wherein the control points are used to interact with the model; obtaining assignment information of the software user to the m_locations variable in the m_controls class; and determining the number of control points of the model based on the assignment information.

[0009] In some embodiments of the present disclosure, the method further includes: placing and / or adding the model through a basic tool class in the software development kit.

[0010] In some embodiments of the present disclosure, the method further includes: defining the display style of the model using an element template in the three-dimensional design software; obtaining input operation information of a software user in the element template; and determining the display style of the model based on the input operation information.

[0011] In some embodiments of the present disclosure, the method further includes: assigning a first performance model parameter in the data class according to the reference data; and attaching the first performance model parameter to the model in the form of associated information.

[0012] The second aspect of the present disclosure provides a component model generation device based on three-dimensional design software, comprising: A registration module, used for registering the model of the component to be modeled in the three-dimensional design software; A creation module, used for creating a data class of the model, wherein the data class is used for defining model parameters of the model; An acquisition module, used for acquiring reference data of the component to be modeled based on a component database; A determination module, used for assigning a first geometric model parameter in the data class according to the reference data, wherein the assigned first geometric model parameter includes a plurality of geometric body information constituting the element to be modeled and key point information corresponding to each of the geometric body information; A first generating module, used for generating a plurality of three-dimensional geometric bodies according to a geometric body generating function in a software development kit corresponding to the three-dimensional design software and the plurality of geometric body information; The second generating module is used to combine the multiple three-dimensional geometric bodies based on the key point information to generate a model of the component to be modeled.

[0013] A third aspect of the present disclosure provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method described in the first aspect.

[0014] The fourth aspect of the present disclosure provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores computer execution instructions, and when the computer execution instructions are executed by a processor, they are used to implement the method described in the first aspect.

[0015] The component model generation method based on 3D design software provided by the present disclosure generates component models through component data and geometric body generation functions, realizes data-driven modeling, unifies model data format, and improves modeling efficiency and modeling accuracy. In addition, the present disclosure also optimizes the model storage method. Compared with storing component graphic information, the present disclosure stores component data required for modeling in the component database, which reduces storage space and is more convenient for model management, maintenance and sharing.

[0016] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which: Figure 1 A schematic diagram of a flow chart of a component model generation method based on three-dimensional design software provided in an embodiment of the present disclosure; Figure 2 A schematic diagram of a data table relationship of a certain asynchronous motor provided by an embodiment of the present disclosure; Figure 3 A schematic diagram of key points of a model provided by an embodiment of the present disclosure; Figure 4 A schematic diagram of an element template definition interface provided by an embodiment of the present disclosure; Figure 5 A schematic flow chart of another component model generation method based on three-dimensional design software provided by an embodiment of the present disclosure; Figure 6 This is a schematic diagram of the functions that need to be implemented in the MotorElementECDelegate class; Figure 7 A schematic diagram of a property file after assignment provided by an embodiment of the present disclosure; Figure 8 A schematic diagram of an original model before modification provided by an embodiment of the present disclosure; Fig. 9 A schematic diagram of a modified model provided by an embodiment of the present disclosure; Fig.10 A schematic diagram of creating a component model provided by an embodiment of the present disclosure; Fig.11 A schematic diagram of a component model generating device based on three-dimensional design software provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0018] Embodiments of the present disclosure are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.

[0019] Specifically, the component model generation method and device based on three-dimensional design software according to an embodiment of the present disclosure will be described below with reference to the accompanying drawings.

[0020] Figure 1 The following is a flow chart of a component model generation method based on 3D design software provided by an embodiment of the present disclosure. Figure 1 As shown, the component model generation method based on 3D design software may include the following steps: Step 101: register the model of the component to be modeled in the three-dimensional design software.

[0021] In some embodiments of the present disclosure, the 3D design software may be MicroStation (2D and 3D CAD design software). It should be noted that when modeling in the 3D design software, it is necessary to associate the customized component model with the development framework of the 3D design software by registering the model, so that the design software can recognize, manage and use the customized model.

[0022] As an example, please refer to Table 1 for registering model-related classes.

[0023]

[0024] Step 102: Create a data class of the model, where the data class is used to define model parameters of the model.

[0025] It should be noted that the data class refers to a class used to store and manage component-related data.

[0026] Step 103: Acquire reference data of the component to be modeled based on the component database.

[0027] Among them, the component database stores relevant data of the components, such as performance model parameters related to component selection, and geometric model parameters for controlling the appearance of the components. In some embodiments of the present disclosure, when constructing a component database, a corresponding data storage method can be selected according to the parameter characteristics of the component, and a data query method can also be provided. As an example, when there is a functional dependency between component data, and the data volume is large and the maintenance frequency is high, a relational database management system can be used for component data storage, such as SQL Server, SQL Lite and other database management software, to minimize data redundancy. Taking the asynchronous motor as an example, the reference data related to a certain asynchronous motor has a certain functional dependency, and the data volume is large, so the data storage method of a relational database can be used. Figure 2 This is a schematic diagram of the data table relationship of a certain asynchronous motor provided by the embodiment of the present disclosure. When the amount of component data is limited, the maintenance frequency is low, and there is no function dependency, it can be stored in the form of files such as txt, xml, excel, etc.

[0028] As a possible line of sight method, after the component to be modeled is determined, the name of the component to be modeled can be used as a query condition to query and obtain reference data of the component to be modeled in the component database.

[0029] Step 104 , assigning values ​​to first geometric model parameters in the data class according to the reference data, wherein the assigned first geometric model parameters include a plurality of geometric body information constituting the component to be modeled and key point information corresponding to each geometric body information.

[0030] It should be noted that in the embodiments of the present disclosure, a component can be regarded as consisting of multiple basic geometric bodies, such as a component consisting of a cylinder and a step. The key point information corresponding to the geometric body information can be understood as the reference point of each geometric body, which is used to represent the connection relationship between the geometric bodies in the component. As an example, taking the output shaft and the shoulder of the motor as two geometric bodies, if the key point of the output shaft is (0, 0, 0), then the key point of the shoulder is (output shaft length, 0, 0), and it is only necessary to generate the output shaft and the shoulder at the key point position. The two basic geometric bodies of the output shaft and the shoulder can be "combined" together through the key points of the two geometric bodies.

[0031] Figure 3 A schematic diagram of key points of a model provided in an embodiment of the present disclosure. Figure 3 Taking a certain component in a motor as an example, 9 key points are set. In some embodiments, one of the key points can be set as a model placement point (i.e., the position of the mouse cursor in the graphics space) to achieve model placement. Figure 3 The meaning of each key point can be found in Table 2.

[0032]

[0033] In addition, in some embodiments of the present disclosure, the data class may include first performance model parameters in addition to the first geometric model parameters. The first performance model parameters in the data class are assigned values ​​according to the reference data in the component database. The first performance model parameters are attached to the model in the form of associated information. The first performance model parameters include, for example, model name, manufacturer name, equipment price, voltage, current, etc.

[0034] Step 105 , generating a plurality of three-dimensional geometric bodies according to a geometric body generation function and a plurality of geometric body information in a software development kit corresponding to the three-dimensional design software.

[0035] Taking MicroStation as an example, the corresponding software development kit is MicroStation SDK. In some embodiments of the present disclosure, the basic three-dimensional geometric body can be obtained by stretching, rotating, scanning, lofting, etc. of a two-dimensional surface and then by certain Boolean operations.

[0036] In some embodiments of the present disclosure, the geometric body generation function may include a two-dimensional geometric body generation function and a three-dimensional geometric body generation function, which are respectively used to generate a two-dimensional geometric body and a three-dimensional geometric body according to geometric body information. Different geometric body types have their own corresponding two-dimensional geometric body generation functions.

[0037] As a possible implementation method, the geometric body type to which each geometric body information in the component to be modeled belongs can be determined, such as a cylinder, a cuboid, a step, etc. According to the geometric body type, a target two-dimensional geometric body generation function corresponding to each geometric body information is determined in the two-dimensional geometric body generation function. The target two-dimensional geometric body generation function is used to generate a two-dimensional geometric body corresponding to each geometric body information, and the three-dimensional geometric body generation function is used to stretch each two-dimensional geometric body to generate multiple three-dimensional geometric bodies.

[0038] Taking asynchronous motor as an example, for cylindrical geometry type, ICurvePrimitive::_CreateArc function in the software development kit can be used to generate a two-dimensional circle, for rectangular geometry type, ICurvePrimitive::CreateLineString function can be used to generate a two-dimensional polygon, and ISolidPrimitive::CreateDgnExtrusion function can be used to stretch the two-dimensional graphics to generate a three-dimensional geometry. If Boolean operations are to be performed on three-dimensional geometry, the BodyFromSolidPrimitive function can be used to convert the ISolidPrimitive class to the ISolidKernelEntityPtr class. Common entity operations are implemented through the SolidUtil::Modify class, mainly including cutting (BooleanCut), merging (BooleanUnion), subtracting (BooleanSubtract), thickening (ThickenSheet), chamfering (BlendEdg es), transforming (TransformBody), etc., among which the changes can realize operations such as moving, copying, mirroring, and rotating the body.

[0039] Step 106 , combining multiple three-dimensional geometric bodies based on the key point information to generate a model of the component to be modeled.

[0040] Optionally, in some embodiments of the present disclosure, the present disclosure can also customize the control points of the model. The control points refer to the interactive operation of the model by clicking the mouse after the model is selected. In one implementation, the control points of the model can be defined using the m_controls class in the software development kit, and the control points are used to perform interactive operations on the model. The assignment information of the software user to the m_locations variable in the m_controls class is obtained. The number of control points of the model is determined according to the assignment information.

[0041] Optionally, in some embodiments of the present disclosure, the model can also be placed and / or added through the basic tool class in the software development kit. Taking the design software MicroStation as an example, the component model can be added and / or placed through the component model placement and addition tool PlaceMotorTool derived from the basic tool class DgnPrimitiveTool. Among them, the main functional functions of the component model placement and addition tool PlaceMotorTool include: A. Implement the loading of tools and interfaces in the override function of _OnPostInstall.

[0042] B. The rewritten function of _OnDynamicFrame implements dynamic placement of the model, and calls a unified model generation function to achieve the dynamic effect of the model following the mouse rotation. The model displayed by the dynamic effect may be different from the actual model.

[0043] C. The _OnDataButton function defines the left mouse button action. By clicking the left mouse button in the graphic space, the placement information required to create the object model is passed to the model generation function, and the model is added to the current graphic space. You can set it to add the model by clicking the left mouse button once, or you can add the model by clicking the left mouse button multiple times.

[0044] D. The _OnRestartTool function defines the mouse right button action to reload the model placement tool after right clicking the mouse.

[0045] The placement information can be obtained through the position of the mouse cursor, and the position and orientation of the model in the graphic space are determined by the placement information. The placement information of the model includes four information: origin, deflection angle, pitch angle, and roll angle.

[0046] Optionally, in some embodiments of the present disclosure, in order to meet the needs of model expression and facilitate the modification of the model display state, the display style of the model can be defined using an element template in the 3D design software. Input operation information of the software user in the element template is obtained, and the display style of the model is determined according to the input operation information. Figure 4 A schematic diagram of an element template definition interface provided by an embodiment of the present disclosure. Figure 4 As shown in the figure, the element template defines the element's layer, line type, color, material, section pattern, etc., and the component model can be displayed in the specified style. If the graphic platform does not have the element template function, the model's layer, line type and other information can be predefined in the code.

[0047] By implementing the embodiments of the present disclosure, the component model is generated through the component data and the geometric body generation function, realizing the data-driven model, unifying the model data format, and improving the modeling efficiency and modeling accuracy. In addition, the present disclosure also optimizes the model storage method. Compared with storing the graphic information of the component, the present disclosure stores the component data required for modeling in the component database, which reduces the storage space and is more convenient for model management, maintenance and sharing.

[0048] In actual work scenarios, the model needs to be dynamically adjusted according to different project requirements, such as reducing a certain component, modifying size parameters, etc. However, the methods of providing the model by the component manufacturer, downloading the model from the Internet, and saving the model after the designer models it in a graphical way all have the problem that the model cannot be modified dynamically, and a new model needs to be recreated according to the project requirements. To solve this problem, the present disclosure proposes another component model generation method based on 3D design software, which can be modified based on the generated model.

[0049] Figure 5 FIG. 1 is a flow chart of another component model generation method based on 3D design software provided by an embodiment of the present disclosure. Figure 5 As shown, in Figure 1 Based on the illustrated embodiment, the component model generation method may further include the following steps: Step 501: Create a model attribute class, which is used to define the attributes of the model.

[0050] In some embodiments of the present disclosure, an EC (Engineering Content) property file in XML format may be created, and a property class of the model may be created in the EC property file. Optionally, the properties of the model may include a second geometric model parameter and a second performance model parameter. The second geometric model parameter is related to the appearance of the model, such as structure and size, and the second performance model parameter may include model name, manufacturer name, equipment price, voltage, current, etc.

[0051] Step 502: rewrite the SetValue function in the attribute class to assign a value to the second geometric model parameter in the attribute class based on the assigned first geometric model parameter.

[0052] This step can be implemented after assigning values ​​to the data class in step 104. Taking the design software MicroStation as an example, the attribute class can be defined by the MotorElementECDelegate class, which is derived from the ElementECDelegate class in the software development kit. Figure 6The following is a schematic diagram of the functions that need to be implemented in the MotorElementECDelegate class. The SetValue function can be used to obtain the value of the first geometric parameter after the assignment in the data class, and the second geometric model parameter in the attribute class can be assigned based on the assigned first geometric model parameter. The attribute file after the assignment can be referenced. Figure 7 .

[0053] Optionally, in some embodiments of the present disclosure, the second performance model parameter in the attribute class may be assigned a value based on the first performance model parameter assigned in the data class in the same manner as described above.

[0054] Step 503: Acquire the property modification operation information of the software user, and update the assigned second geometric model parameters according to the property modification operation information.

[0055] Step 504 , rewrite the Commit function in the attribute class to update the first geometric model parameters according to the updated second geometric model parameters, and regenerate the model of the component to be modeled according to the updated first geometric model parameters.

[0056] The specific implementation method of regenerating the model of the component to be modeled according to the updated first geometric model parameters can be referred to step 105 and step 106, which will not be described in detail here. Figure 8 This is a schematic diagram of the original model before modification provided in the embodiment of the present disclosure. Fig. 9 This is a schematic diagram of a modified model provided by an embodiment of the present disclosure. Figure 8 and Fig. 9 As shown in the figure, change "without bearing temperature sensor" to "with bearing temperature sensor" and adjust the model appearance by modifying the properties.

[0057] Fig.10 A schematic diagram of creating a component model provided by an embodiment of the present disclosure. Fig. 9 As shown, through the steps of registering models, defining data classes, defining attribute classes, model expression, and model placement, a data-driven model is realized without the need to draw models through graphics, which greatly improves modeling efficiency.

[0058] By implementing the embodiments of the present disclosure, based on the user's attribute modification operation information, the second geometric model parameters in the attribute class and the first geometric model information in the data class are updated, the component model is regenerated, and the model is dynamically adjusted, thereby achieving the effect of being able to modify the geometric appearance of any model after it is added to the graphic space.

[0059] Fig.11 Schematic diagram of a component model generation device based on 3D design software provided by an embodiment of the present disclosure. Fig.11As shown, the component model generation device based on three-dimensional design software may include: a registration module 1101 , a creation module 1102 , an acquisition module 1103 , a determination module 1104 , a first generation module 1105 and a second generation module 1106 .

[0060] The registration module 1101 is used to register the model of the component to be modeled in the three-dimensional design software.

[0061] The creation module 1102 is used to create a data class of the model, and the data class is used to define the model parameters of the model.

[0062] The acquisition module 1103 is used to acquire reference data of the component to be modeled based on the component database.

[0063] The determination module 1104 is used to assign values ​​to the first geometric model parameters in the data class according to the reference data, wherein the assigned first geometric model parameters include multiple geometric body information constituting the component to be modeled and key point information corresponding to each geometric body information.

[0064] The first generating module 1105 is used to generate multiple three-dimensional geometric bodies according to the geometric body generating function and multiple geometric body information in the software development kit corresponding to the three-dimensional design software.

[0065] The second generating module 1106 is used to combine multiple three-dimensional geometric bodies based on key point information to generate a model of the component to be modeled.

[0066] In some embodiments of the present disclosure, the geometric body generation function includes a two-dimensional geometric body generation function and a three-dimensional geometric body generation function; the first generation module 1105 is specifically used to: determine the geometric body type to which each geometric body information belongs; determine the target two-dimensional geometric body generation function corresponding to each geometric body information in the two-dimensional geometric body generation function according to the geometric body type; use the target two-dimensional geometric body generation function to generate a two-dimensional geometric body corresponding to each geometric body information; use the three-dimensional geometric body generation function to stretch each two-dimensional geometric body to generate multiple three-dimensional geometric bodies.

[0067] In some embodiments of the present disclosure, Fig.11On the basis of the illustrated embodiment, the component model generation device based on three-dimensional design software also includes an adjustment module; wherein the adjustment module is used to: create an attribute class of the model, the attribute class is used to define the attributes of the model; rewrite the SetValue function in the attribute class to assign the second geometric model parameter in the attribute class based on the assigned first geometric model parameter; reacquire the attribute modification operation information of the software user, and update the assigned second geometric model parameter according to the attribute modification operation information; write the Commit function in the attribute class to update the first geometric model parameter according to the updated second geometric model parameter, and regenerate the model of the component to be modeled according to the updated first geometric model parameter.

[0068] In some embodiments of the present disclosure, Fig.11 On the basis of the illustrated embodiment, the component model generation device based on three-dimensional design software also includes a control point setting module; wherein the control point setting module is used to: use the m_controls class in the software development kit to define the control points of the model, and the control points are used to interact with the model; obtain the software user's assignment information to the m_locations variable in the m_controls class; and determine the number of control points of the model based on the assignment information.

[0069] In some embodiments of the present disclosure, Fig.11 On the basis of the illustrated embodiment, the component model generating device based on three-dimensional design software further includes a placement module; wherein the placement module is used to place and / or add models through basic tool classes in a software development kit.

[0070] In some embodiments of the present disclosure, Fig.11 On the basis of the illustrated embodiment, the component model generation device based on three-dimensional design software also includes a display style definition module; wherein the display style definition module is used to: define the display style of the model using the element template in the three-dimensional design software; obtain the input operation information of the software user in the element template; and determine the display style of the model based on the input operation information.

[0071] In some embodiments of the present disclosure, Fig.11 On the basis of the illustrated embodiment, the component model generation device based on three-dimensional design software also includes an additional module; wherein the additional module is used to: assign a first performance model parameter in the data class according to reference data; and attach the first performance model parameter to the model in the form of associated information.

[0072] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0073] In the description of the aforementioned embodiments, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they contradict each other.

[0074] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0075] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present disclosure includes additional implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present disclosure belong.

[0076] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0077] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0078] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0079] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0080] The storage medium mentioned above may be a read-only memory, a disk or an optical disk, etc. Although the embodiments of the present disclosure have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations of the present disclosure. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present disclosure.

Claims

1. A component model generation method based on three-dimensional design software, characterized in that: The following steps are involved: Registering the model of the component to be modeled in the three-dimensional design software; Creating a data class of the model, wherein the data class is used to define model parameters of the model; Acquiring reference data of the component to be modeled based on a component database; Assigning a value to a first geometric model parameter in the data class according to the reference data, wherein the assigned first geometric model parameter includes a plurality of geometric body information constituting the element to be modeled and key point information corresponding to each of the geometric body information; Generate multiple three-dimensional geometric bodies according to the geometric body generation function in the software development kit corresponding to the three-dimensional design software and the multiple geometric body information; The multiple three-dimensional geometric bodies are combined based on the key point information to generate a model of the component to be modeled.

2. The method according to claim 1, characterized in that The geometric body generation function includes a two-dimensional geometric body generation function and a three-dimensional geometric body generation function; the generating multiple three-dimensional geometric bodies according to the geometric body generation function in the software development kit corresponding to the three-dimensional design software and the multiple geometric body information includes: Determine the geometric type to which each geometric information belongs; Determine, in the two-dimensional geometric body generation function, a target two-dimensional geometric body generation function corresponding to each piece of geometric body information according to the geometric body type; Using the target two-dimensional geometric body generation function to generate a two-dimensional geometric body corresponding to each of the geometric body information; Each of the two-dimensional geometric bodies is stretched using a three-dimensional geometric body generation function to generate the multiple three-dimensional geometric bodies.

3. The method according to claim 1, characterized in that The method further comprises: Creating an attribute class of the model, wherein the attribute class is used to define the attributes of the model; Rewrite the SetValue function in the attribute class to assign a value to the second geometric model parameter in the attribute class based on the assigned first geometric model parameter; Acquiring property modification operation information of a software user, and updating the assigned second geometric model parameters according to the property modification operation information; The Commit function in the attribute class is rewritten to update the first geometric model parameters according to the updated second geometric model parameters, and the model of the component to be modeled is regenerated according to the updated first geometric model parameters.

4. The method according to claim 1, characterized in that The method further comprises: Use the m_controls class in the software development kit to define the control points of the model, where the control points are used to perform interactive operations on the model; Obtaining the assignment information of the software user to the m_locations variable in the m_controls class; The number of control points of the model is determined according to the assignment information.

5. The method according to claim 1, characterized in that The method further comprises: The model is placed and / or added through the basic tool class in the software development kit.

6. The method according to claim 1, characterized in that The method further comprises: Using the element template in the three-dimensional design software to define the display style of the model; Acquire input operation information of a software user in the element template; The display style of the model is determined according to the input operation information.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: assigning a first performance model parameter in the data class according to the reference data; The first performance model parameter is added to the model in the form of associated information.

8. A component model generation device based on three-dimensional design software, characterized in that: include: A registration module, used for registering the model of the component to be modeled in the three-dimensional design software; A creation module, used for creating a data class of the model, wherein the data class is used for defining model parameters of the model; An acquisition module, used for acquiring reference data of the component to be modeled based on a component database; A determination module, used for assigning a first geometric model parameter in the data class according to the reference data, wherein the assigned first geometric model parameter includes a plurality of geometric body information constituting the element to be modeled and key point information corresponding to each of the geometric body information; A first generating module, used for generating a plurality of three-dimensional geometric bodies according to a geometric body generating function in a software development kit corresponding to the three-dimensional design software and the plurality of geometric body information; The second generating module is used to combine the multiple three-dimensional geometric bodies based on the key point information to generate a model of the component to be modeled.

9. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.

Citation Information

Patent Citations

  • Parameterized component generation method and device and parameterized component modification method and device for MicroStation platform

    CN113642056A

  • Method for automatic construction of three-dimensional model of article in analogue-based geometric modelling system

    RU2431197C1

Cited By

  • Three-dimensional model generation method and device, storage medium and equipment

    CN120298606A