Part feature construction method and device, computer program product and electronic equipment
By obtaining part size information, extracting features and adjusting parameters, and directly adding features on the parts, the problem of low efficiency in building part features in the existing technology is solved, and more efficient feature creation and post-modification are achieved.
Patent Information
- Application Number
- CN202411847394.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-04-15
AI Technical Summary
In the prior art, the efficiency of building part features is low, and it requires multiple entry into sketch commands and adjusting feature sizes and positions, resulting in increased repetitive work, affecting efficiency and facilitating later modifications.
By obtaining the dimension information of the target part of the feature to be constructed, the target feature is extracted from the part feature database, and the initial parameter information is determined based on the dimension information. Receive user parameter adjustment instructions, adjust initial parameter information, create features to be added, and add features on the target part based on attachment point positioning information.
Improves the efficiency of building part features, reduces duplicate work, simplifies the feature creation process, and facilitates later modification and adjustment.
Smart Images

Figure CN119830536A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of part feature construction, and in particular, to a part feature construction method, device, computer program product and electronic device. Background Art
[0002] 3D CAD (Computer-Aided Design) software plays an important role in the product development and design process. In related technologies, the method used to create some features for part modeling is to first create a sketch, and then create features through commands such as stretching and rotating. However, this method requires first entering the sketch command to create a sketch and mark the dimensions, and then entering the stretching, rotating and other commands to create features based on the sketch. Another part modeling creation method is to drag features from the pixel library to the part. Compared with the first method, this method simplifies the creation process, but after the feature is created, the size and position information of the feature need to be adjusted. For some features, many need to be created. Using this method to create will do a lot of repetitive work, which affects efficiency and is not convenient for later modifications.
[0003] With regard to the problem of low efficiency in constructing part features in related technologies, no effective solution has been proposed so far. Summary of the invention
[0004] The main purpose of the present application is to provide a method, device, computer program product and electronic device for constructing part features to solve the problem of low efficiency in constructing part features in related technologies.
[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for constructing a feature of a part is provided. The method comprises: obtaining a target part of a feature to be constructed, determining the size information of the target part, wherein the feature comprises at least one of the following: a hole, a groove and a thread; extracting a target feature to be added to the target part from a part feature database, and determining the initial parameter information of the target feature based on the size information; receiving a parameter adjustment instruction of the target feature from a user, adjusting the initial parameter information based on the parameter adjustment instruction, and obtaining the target parameter information; creating a feature to be added through the target parameter information, and adding the feature to be added to the target part according to the attachment point positioning information, wherein the attachment point positioning information is the preset position information of the target feature on the target part.
[0006] Optionally, determining the initial parameter information of the target feature based on the size information includes: obtaining a preset part parameter mapping table, and determining whether the part parameter mapping table contains the target part, wherein the part parameter mapping table contains multiple sets of mapping relationships, and each set of mapping relationships represents a mapping relationship between a part, the size information of the part, and the parameter information of the feature of the part; when the target part is included in the part parameter mapping table, determining the parameter information corresponding to the size information of the target part from the part parameter mapping table to obtain the initial parameter information; when the target part is not included in the part parameter mapping table, extracting the historical parameter information of the same type of parts as the target part from the historical part database, and determining the historical parameter information as the initial parameter information.
[0007] Optionally, after adding the feature to be added on the target part according to the attachment point positioning information, the method further includes: receiving a user's modification instruction for the target part, adjusting the size of the target part based on the modification instruction to obtain an updated size; determining correction parameter information of the target feature through the updated size, and updating the feature to be added on the target part based on the correction parameter information to obtain an updated feature to be added; judging whether the updated feature to be added matches the target part with the updated size; in the case that the updated feature to be added does not match the target part with the updated size, issuing a prompt message, receiving a parameter adjustment instruction from the user, and adjusting the updated feature to be added according to the parameter adjustment instruction until the updated feature to be added matches the target part with the updated size, wherein the prompt message is used to prompt the user to adjust the updated feature to be added.
[0008] Optionally, extracting target features to be added to the target part from the part feature database includes: displaying multiple types of features through a user interface, receiving a feature type selection instruction from a user, and determining the target type based on the feature type selection instruction; displaying multiple models of features of the target type through a user interface, receiving a feature model selection instruction from a user, and determining the target model based on the feature model selection instruction; and determining the target feature from the part feature database through the target type and the target model.
[0009] Optionally, before extracting target features to be added to the target part from the part feature database, the method also includes: obtaining multiple parts in the historical part database, and extracting multiple structural features from the multiple parts; clustering the multiple structural features through a preset clustering algorithm to obtain multiple feature sets, and constructing a part feature database from the multiple feature sets.
[0010] Optionally, after constructing the part feature database from multiple feature sets, the method further includes: receiving a feature creation instruction from a user, constructing a custom feature based on the feature creation instruction; and adding the custom feature to the part feature database.
[0011] Optionally, after constructing the part feature database from multiple feature sets, the method further includes: receiving a feature deletion instruction from a user, determining features to be deleted from the part feature database based on the feature deletion instruction; and removing the features to be deleted from the part feature database.
[0012] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a device for constructing a feature of a part is provided. The device comprises: an acquisition unit, used to acquire a target part of a feature to be constructed, and determine the size information of the target part, wherein the feature comprises at least one of the following: a hole, a groove, and a thread; an extraction unit, used to extract a target feature to be added to the target part from a part feature database, and determine the initial parameter information of the target feature based on the size information; a receiving unit, used to receive a parameter adjustment instruction of the target feature from a user, adjust the initial parameter information based on the parameter adjustment instruction, and obtain the target parameter information; an adding unit, used to create a feature to be added through the target parameter information, and add the feature to be added to the target part according to the attachment point positioning information, wherein the attachment point positioning information is the preset position information of the target feature on the target part.
[0013] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps of the feature construction method of the part described in each embodiment of the present application.
[0014] Through this application, the following steps are adopted: obtaining the target part of the feature to be constructed, determining the size information of the target part, wherein the feature includes at least one of the following: a hole, a groove and a thread; extracting the target feature to be added to the target part from the part feature database, and determining the initial parameter information of the target feature based on the size information; receiving the parameter adjustment instruction of the user for the target feature, adjusting the initial parameter information based on the parameter adjustment instruction, and obtaining the target parameter information; creating the feature to be added through the target parameter information, and adding the feature to be added to the target part according to the attachment point positioning information, wherein the attachment point positioning information is the preset position information of the target feature on the target part, thereby solving the problem of low efficiency in constructing part features in the related art. By constructing a part feature database, when constructing features for a part, the target feature is extracted from the part feature database, and the target feature is adjusted through the parameter adjustment instruction, creating the feature to be added, and adding the feature to be added to the target part according to the attachment point positioning information, thereby achieving the effect of improving the efficiency of constructing part features. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0016] Figure 1 is a flow chart of a method for constructing a feature of a part according to an embodiment of the present application;
[0017] Figure 2 is a flowchart of an optional method for constructing a feature of a part according to an embodiment of the present application;
[0018] Figure 3 is a schematic diagram of a feature construction device for a part provided in an embodiment of the present application;
[0019] Figure 4 is a schematic diagram of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0020] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0021] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0023] The present invention is described below in conjunction with preferred implementation steps. Figure 1 is a flow chart of a method for constructing a feature of a part according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:
[0024] Step S101, obtaining a target part of a feature to be constructed, and determining size information of the target part, wherein the feature includes at least one of the following: a hole, a groove, and a thread.
[0025] In step S101, the method for constructing the features of a part provided in this embodiment can be applied in 3D CAD software, where a user selects a target part to be constructed with features in the 3D CAD software interface, and the software identifies the type and current state of the part. For example, a user can directly select a part to be added with features from a part tree or a design space.
[0026] The software automatically extracts the dimension information of the target part, which may include the length, width, height, diameter, radius, angle, etc. of the part, depending on the feature type. For example, if the target part is a shaft, the software will automatically identify the nominal diameter, shaft length and other dimensions of the shaft. The user selects the required feature type of the target part from the preset feature library, such as holes, slots, threads, etc. The feature library contains various standard series features, as well as user-defined features.
[0027] Step S102: extracting target features to be added to the target part from the part feature database, and determining initial parameter information of the target features based on the size information.
[0028] In step S102, the part feature database can be a database constructed based on expert experience, including a standard database of various features (such as holes, grooves, threads, etc.). Each feature can have its defined parameter set in the part feature database, including information such as geometric dimensions, shapes, and position constraints. These features can be set according to the national standard series or other classification standards. The user selects the target part to be added in the software interface, and then selects one or more target features from the part feature database. This selection can be made through a graphical user interface, for example, through a drop-down menu, feature library browsing, etc.
[0029] The software automatically analyzes the geometric information of the target part and extracts the dimensional parameters related to the features to be added. For example, if the target part is a cylinder, the software will identify its diameter and length; if it is a plane, the software will identify its length and width. Based on the dimensional information of the part and the definition of the target feature, the software automatically fills in the initial parameter information of the feature. For example, if the user chooses to add a keyway on a cylinder, the software will automatically preset the keyway's width, depth and other parameters based on the diameter of the cylinder and the dimensional relationship of the keyway in the national standard.
[0030] Step S103, receiving a parameter adjustment instruction for a target feature from a user, adjusting the initial parameter information based on the parameter adjustment instruction, and obtaining target parameter information.
[0031] In step S103, after the user chooses to add a certain target feature, the software will automatically generate a set of initial parameter information based on the part size information. These parameter information will be presented to the user in a table, drop-down menu or other interactive form in the graphical user interface. The initial parameter information may include geometric dimensions (such as diameter, length, depth), position information (such as offset, angle), and other parameters specific to the feature. The user can adjust these parameters directly on the graphical user interface according to design needs. For example, manually enter a specific value, select a preset value from a drop-down list, or visually adjust by dragging a graphical representation.
[0032] As the user adjusts the parameters, the preview of the target feature is updated in real time so that the user can immediately see the impact of the adjustment on the appearance and position of the target feature. In addition, feedback can be provided, such as warning the user that the parameter is out of a reasonable range or conflicts with existing features, to ensure the correctness and feasibility of the parameter adjustment. After the user completes the parameter adjustment, the adjusted parameter information is recorded to form the target parameter information. The user can submit these adjustments by clicking the confirmation button, or the software automatically saves the changes when the user leaves the adjustment interface.
[0033] It should be noted that the software automatically adjusts the size and position of the feature according to the target parameter information to complete the construction or update of the feature. All adjusted parameter information is added to the software's parametric drive system. If the geometric size or other parameters of the part change in the future design, the feature will be able to automatically update according to this change without the user having to manually adjust it again.
[0034] Step S104, creating a feature to be added through the target parameter information, and adding the feature to be added on the target part according to the attachment point positioning information, wherein the attachment point positioning information is the preset position information of the target feature on the target part.
[0035] In step S104, based on the target parameter information adjusted by the user, the software will automatically identify the type of target feature (such as hole, slot, thread, etc.) and the required specific size parameters (such as diameter, depth, position, etc.). The software automatically creates or adjusts the sketch according to the feature type and size parameters. For example, for a hole feature, the software will generate a circular sketch and define the size of the sketch according to the diameter parameter of the hole. After the sketch is created, the software will execute the corresponding feature command, such as stretching or rotating, to automatically create the feature to be added.
[0036] The user needs to select a preset attachment point on the target part, or the software automatically recommends the optimal attachment point based on the part geometry. The attachment point positioning information can include the relative position, orientation, and constraints between the feature and the part. The software previews the location of the feature on the part based on the attachment point positioning information. The user can confirm whether the feature is located at the ideal attachment point through visual feedback at this stage. The software automatically applies and solves the constraints on the attachment point, such as distance, angle, vertical or parallel, to ensure that the feature is placed precisely at the specified location. After solving the constraints, the software finally adds the feature to be added to the target part, so that the feature to be added forms a complete and coordinated design body with the rest of the part.
[0037] The feature construction method of a part provided in the embodiment of the present application obtains the target part of the feature to be constructed, determines the size information of the target part, wherein the feature includes at least one of the following: a hole, a groove and a thread; extracts the target feature to be added to the target part from the part feature database, and determines the initial parameter information of the target feature based on the size information; receives the parameter adjustment instruction of the user for the target feature, adjusts the initial parameter information based on the parameter adjustment instruction, and obtains the target parameter information; creates the feature to be added through the target parameter information, and adds the feature to be added on the target part according to the attachment point positioning information, wherein the attachment point positioning information is the preset position information of the target feature on the target part, thereby solving the problem of low efficiency in constructing part features in the related art. By constructing a part feature database, when constructing the feature of the part, the target feature is extracted from the part feature database, and the target feature is adjusted through the parameter adjustment instruction, the feature to be added is created, and the feature to be added is added on the target part according to the attachment point positioning information, thereby achieving the effect of improving the efficiency of constructing part features.
[0038] The initial parameter information of the target feature can be automatically identified through the size information of the target part. Optionally, in the feature construction method of the part provided in the embodiment of the present application, determining the initial parameter information of the target feature based on the size information includes: obtaining a preset part parameter mapping table, and judging whether the part parameter mapping table contains the target part, wherein the part parameter mapping table contains multiple groups of mapping relationships, and each group of mapping relationships represents a mapping relationship between a part, the size information of the part, and the parameter information of the feature of the part; when the target part is included in the part parameter mapping table, determining the parameter information corresponding to the size information of the target part from the part parameter mapping table to obtain the initial parameter information; when the target part is not included in the part parameter mapping table, extracting the historical parameter information of the same type of parts as the target part from the historical part database, and determining the historical parameter information as the initial parameter information.
[0039] In some examples, the part parameter mapping table may contain multiple sets of mapping relationships. Each set of mapping relationships describes in detail the correspondence between a specific part type, related dimension information, and its feature parameters. The structure of the part parameter mapping table may be similar to the following: Part Type Dimension Information Feature Type Parameter Information (Example: Hole Diameter) Shaft Nominal Diameter Keyway Width, Depth (Based on Diameter Mapping) Flat Plate Length, Width Threaded Hole Diameter, Pitch, Depth (Based on Plate Size Mapping).
[0040] When the user selects a target part and intends to add a target feature, the software first queries whether the part parameter mapping table contains the mapping relationship of the target part. If the mapping relationship of the target part exists in the table, the software will directly extract the parameter information of the corresponding feature from the mapping table based on the size information of the target part as the initial parameter information. If the part parameter mapping table does not directly contain the mapping relationship of the target part, the software will perform a more complex query. It will search the historical parts database for parts that are of the same type or have similar size attributes as the target part, and extract the historical parameter information of similar features on these parts. The software uses statistical analysis or machine learning algorithms to predict the most appropriate initial parameter information from the historical parameter information based on the specific size of the target part.
[0041] This embodiment provides an accurate size and position basis for the creation of part features by determining the initial parameter information of the target feature. It improves the efficiency of feature creation, ensures the size correlation and design consistency between features and parts, reduces the calculation and table lookup work in the design process, and enables users to focus more on the design creativity and function realization. At the same time, by utilizing the information of the historical parts database, the software can also intelligently handle the feature creation of new parts, enhancing the adaptability and intelligence of the system.
[0042] The generated features to be added can adjust the features to be added at any time based on the user's modification instructions. Optionally, in the feature construction method of a part provided in an embodiment of the present application, after adding the features to be added to the target part according to the attachment point positioning information, the method further includes: receiving the user's modification instructions for the target part, adjusting the size of the target part based on the modification instructions, and obtaining an updated size; determining the correction parameter information of the target feature through the updated size, and updating the features to be added on the target part based on the correction parameter information, and obtaining an updated feature to be added; judging whether the updated features to be added match the target part after the updated size; in the case that the updated features to be added do not match the target part after the updated size, issuing a prompt message, receiving the user's parameter adjustment instructions, and adjusting the updated features to be added according to the parameter adjustment instructions until the updated features to be added match the target part after the updated size, wherein the prompt message is used to prompt the user to adjust the updated features to be added.
[0043] In some examples, the user issues a modification instruction to the target part on the software interface. The modification instruction can be an adjustment of the dimensional parameters, such as the length, width, height, diameter, etc. of the part. The software updates the geometric dimensions of the target part in real time according to the user's instructions. The position and size of the part's bounding box, surface, hole, slot and other features need to be recalculated to maintain the integrity of the part. After the part size is updated, the software automatically analyzes the features associated with the target part to determine whether their parameter information needs to be corrected to adapt to the new size of the part. The software calculates the new parameter value (that is, the corrected parameter information) based on the information in the part parameter mapping table or the historical part database, as well as the type and constraints of the feature.
[0044] The software updates the features to be added on the target part using the correction parameter information. The size, position, orientation, and other aspects of the feature can be adjusted to ensure that the feature matches the updated part size. After updating the feature, the software automatically determines whether the updated feature fully matches the new size of the part. The judgment can be based on factors such as the boundary where the feature contacts the part, the alignment condition, and the space occupied.
[0045] If the software detects that the updated feature to be added does not match the target part, such as the feature exceeds the part boundary, the feature conflicts with the existing feature, etc., it will send a prompt message to the user, point out the problem, and suggest possible solutions. After receiving the prompt message, the user can further adjust the parameters of the feature in the user interface according to the suggestion, such as size, position, tilt angle, etc. The software will feedback the adjustment results in real time until the user confirms that the feature matches the part. After the user confirms that the feature adjustment is satisfactory, the software will save all updated parts and feature information to ensure the consistency and integrity of the design.
[0046] This embodiment provides highly dynamic and intelligent feature update capabilities, allowing users to easily adjust features synchronously when modifying part dimensions, avoiding the tedious process of manually repositioning or redesigning features, and improving design efficiency and accuracy. In addition, through timely matching judgment and user feedback, the software can also effectively prevent and resolve design conflicts to ensure the consistency and feasibility of the design.
[0047] The user can select the required target features from the part feature database. Optionally, in the feature construction method of the part provided in the embodiment of the present application, extracting the target features to be added to the target part from the part feature database includes: displaying multiple types of features through a user interface, receiving a feature type selection instruction from a user, and determining the target type based on the feature type selection instruction; displaying multiple models of features of the target type through a user interface, receiving a feature model selection instruction from a user, and determining the target model based on the feature model selection instruction; and determining the target feature from the part feature database through the target type and the target model.
[0048] In some examples, all optional feature types, such as holes, slots, threads, bosses, chamfers, etc., are listed in the part feature database of the user interface or the corresponding menu. The user selects a feature type (i.e., target type) by clicking, pulling down, or other interactive means. The software can provide intuitive icons or text descriptions to help users understand the basic characteristics and uses of each feature. After the user selects the feature type, the software can display multiple models of features of the target type. For example, for hole features, models with different diameters, depths, and thread specifications can be displayed; for slots, models with different widths, depths, and lengths can be displayed. These models can be based on national standard series or user-defined settings.
[0049] The user selects a specific model (also known as the target model) from the displayed models. The software can provide a preview function to show the expected appearance of the features of the selected model on the part to help the user make a selection. The software queries the part feature database based on the target type and target model selected by the user. After querying the feature, the software extracts the parameter information of the feature and pre-fills it in the feature setting area of the user interface, ready for the user to adjust or confirm. When the user confirms or adjusts the parameter information, the software determines the target feature based on this information and prepares to add the feature to the part selected by the user.
[0050] This embodiment guides users to select and determine target features, making feature addition and modification fast and accurate. The user-friendly design of the user interface and the intelligent matching of the part feature database significantly improve design efficiency, reduce manual calculations and parameter settings during feature creation, and allow users to focus more on the core concepts and innovative parts of the design. In addition, the model selection based on the national standard series and custom feature library ensures the standardization and reusability of features, providing guarantees for the consistency and accuracy of the design.
[0051] In order to improve the efficiency of constructing part features, it is necessary to first construct a part feature database. Optionally, in the part feature construction method provided in the embodiment of the present application, before extracting the target features to be added to the target part from the part feature database, the method also includes: obtaining multiple parts in the historical part database, and extracting multiple structural features from the multiple parts; clustering the multiple structural features through a preset clustering algorithm to obtain multiple feature sets, and constructing a part feature database from the multiple feature sets.
[0052] In some examples, a large number of part models are collected from historical projects, product design libraries, or corporate resources. These parts can be completed designed parts or intermediate models in the design process. The collected parts are preprocessed, including removing non-structural features (such as annotations, color information), standardizing geometric data, etc., to facilitate subsequent feature extraction and clustering analysis. Using the built-in feature recognition algorithm of the 3D CAD software, the structure of each part is automatically analyzed to identify common structural features such as holes, slots, bosses, grooves, chamfers, etc.
[0053] For each identified structural feature, extract its size parameters, location information, constraints, etc. to form a data set of structural features. Select an algorithm suitable for clustering structural features, such as K-means clustering, hierarchical clustering, density-based clustering algorithm, etc., and convert the extracted structural feature data into vector form to facilitate clustering algorithm processing. Run the clustering algorithm to group the structural features into different feature sets based on the similarity of the feature vectors. The algorithm will automatically find the intrinsic associations between features and group similar features into the same group. Sort the feature sets obtained by clustering, remove redundancy, merge similar features, and form a clear classification of feature types and models. Based on the sorted feature sets, build a part feature database. The part feature database can include detailed parameter information, preset size series, usage frequency statistics, etc. for each structural feature to support fast query and selection of features.
[0054] This embodiment automatically extracts and clusters structural features from the historical parts database to build a comprehensive and intelligent part feature database, providing users with a powerful tool to quickly create and modify structural features on parts. It improves design efficiency and improves design consistency and quality through standardization and intelligent management of features.
[0055] The part feature database also supports user-defined design. Optionally, in the part feature construction method provided in the embodiment of the present application, after the part feature database is constructed by multiple feature sets, the method also includes: receiving the user's feature creation instructions, constructing custom features based on the feature creation instructions; and adding the custom features to the part feature database.
[0056] In some examples, an intuitive user interface is provided to allow the user to select a "Create Custom Feature" command (i.e., a feature creation instruction) through a menu, a toolbar, or a dialog box. When the user selects the command, the software is ready to receive the feature definition instructions input by the user, including the feature's geometry, size parameters, location information, etc.
[0057] Users can define the geometry of custom features in the software environment, such as drawing sketches, defining surfaces, or performing entity operations. Users set parameters such as size, position, and direction for custom features. Parameter input boxes or sliders are provided to allow users to precisely control the details of features. Users can add constraints to features, such as aligning to specific boundaries of parts, maintaining specific angles or distances, etc., to ensure the correct placement and adjustment of features.
[0058] The software provides a real-time preview of custom features in the user interface, so that users can intuitively see the appearance and position of the features to confirm whether they meet the design requirements. The software automatically checks whether the parameters entered by the user are reasonable, such as whether the size exceeds the limit, whether the position conflicts with existing features, etc., and provides feedback or warnings. The user finally confirms the creation of the custom feature, including the geometry, parameters and constraints of the feature. The custom feature information confirmed by the user is stored in the part feature database, including the geometry data, parameter information and constraints of the feature. Custom features are classified in the database, such as by function, type or frequency of use, so that users can quickly find and use them later. Version control information can also be added to custom features to record the creation date, modification history and author, etc., to ensure the traceability and updatability of the features. The index and search mechanism of the part feature database are updated to reflect the newly added custom features.
[0059] This embodiment further enriches the part feature database and improves the level of personalization and customization of the design by allowing designers to flexibly create and store custom features according to specific project requirements.
[0060] Part features in the part feature database support removal. Optionally, in the part feature construction method provided in the embodiment of the present application, after the part feature database is constructed by multiple feature sets, the method also includes: receiving a user's feature deletion instruction, determining the features to be deleted from the part feature database based on the feature deletion instruction; and removing the features to be deleted from the part feature database.
[0061] In some examples, a "Delete Feature" option is provided in the software's menu, toolbar, or feature management interface to ensure that users can find this function intuitively. After the user selects the feature deletion command, the software waits for the user to specify the feature to be deleted. Based on the user's instructions, the software identifies the feature that the user wants to delete. After determining the feature to be deleted, the software should issue a confirmation request to the user and display detailed information about the feature, such as type, size, location, etc., so that the user can confirm the accuracy of the deletion operation. The software retrieves all data related to the feature to be deleted from the part feature database, including geometric information, dimensional parameters, position information, constraints, etc. Once confirmed, the software will remove all data related to the feature to be deleted from the database.
[0062] The part feature database can also support regular cleanup to remove feature records that are no longer used, keeping the database streamlined and efficient.
[0063] This embodiment removes the specified features from the part feature database by receiving and executing feature deletion instructions, thereby ensuring the accuracy and applicability of the database while maintaining the integrity and design consistency of the part model.
[0064] According to another embodiment of the present application, an optional method for constructing a feature of a part is also provided. Figure 2 FIG. 1 is a flow chart of an optional method for constructing a feature of a part according to an embodiment of the present application. Figure 2 As shown, the method includes: building a feature library, which includes serialized features and custom features, and the features include feature data and attachment point information. When adding features from the feature library to a part, a series of parameters are automatically generated and input by the user, the feature is created according to the size parameters, the feature position is adjusted according to the position parameters and the attachment point positioning information, and the feature is successfully created. A series of parameters are added to the parametric drive function, and when the user modifies the parameters, the parametric drive function updates the features.
[0065] This embodiment uses an optional part feature construction method, parametric drive technology and attachment point positioning functions. For some serialized features and custom features frequently used by users, there is no need to first create a sketch, mark the sketch size, and then create features based on the sketch through feature commands such as stretching and rotating. This simplifies the customer's development process and improves development efficiency. At the same time, parametric drive technology is used to facilitate later modification of features and shorten the product development and iteration cycle.
[0066] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0067] The embodiment of the present application also provides a device for constructing the features of a part. It should be noted that the device for constructing the features of a part in the embodiment of the present application can be used to execute the method for constructing the features of a part provided in the embodiment of the present application. The device for constructing the features of a part provided in the embodiment of the present application is introduced below.
[0068] Figure 3 Schematic diagram of a device for constructing a feature of a part according to an embodiment of the present application. Figure 3 As shown, the device comprises:
[0069] An acquisition unit 301 is used to acquire a target part of a feature to be constructed and determine size information of the target part, wherein the feature includes at least one of the following: a hole, a groove, and a thread;
[0070] An extraction unit 302 is used to extract target features that need to be added to the target part from the part feature database, and determine initial parameter information of the target features based on the size information;
[0071] The receiving unit 303 is used to receive a parameter adjustment instruction of a target feature from a user, and adjust the initial parameter information based on the parameter adjustment instruction to obtain the target parameter information;
[0072] The adding unit 304 is used to create the feature to be added according to the target parameter information, and add the feature to be added on the target part according to the attachment point positioning information, wherein the attachment point positioning information is the preset position information of the target feature on the target part.
[0073] The feature construction device for a part provided in an embodiment of the present application obtains a target part of a feature to be constructed and determines the size information of the target part through an acquisition unit 301, wherein the feature includes at least one of the following: a hole, a groove and a thread; an extraction unit 302 extracts a target feature to be added to the target part from a part feature database, and determines the initial parameter information of the target feature based on the size information; a receiving unit 303 receives a parameter adjustment instruction for the target feature from a user, adjusts the initial parameter information based on the parameter adjustment instruction, and obtains the target parameter information; an adding unit 304 creates a feature to be added through the target parameter information, and adds the feature to be added to the target part according to the attachment point positioning information, wherein the attachment point positioning information is the preset position information of the target feature on the target part, thereby solving the problem of low efficiency in constructing part features in the related art, and by constructing a part feature database, when constructing features for a part, extracts the target feature from the part feature database, and adjusts the target feature through the parameter adjustment instruction to create the feature to be added, and adds the feature to be added to the target part according to the attachment point positioning information, thereby achieving the effect of improving the efficiency of constructing part features.
[0074] Optionally, in the feature construction device of a part provided in an embodiment of the present application, the extraction unit 302 includes: an acquisition module, used to obtain a preset part parameter mapping table, and determine whether the part parameter mapping table contains a target part, wherein the part parameter mapping table contains multiple groups of mapping relationships, and each group of mapping relationships represents a mapping relationship between a part, the size information of the part, and the parameter information of the feature of the part; a first determination module, used to determine the parameter information corresponding to the size information of the target part from the part parameter mapping table when the target part is included in the part parameter mapping table, and obtain initial parameter information; an extraction module, used to extract historical parameter information of parts of the same type as the target part from a historical part database when the target part is not included in the part parameter mapping table, and determine the historical parameter information as the initial parameter information.
[0075] Optionally, in the feature construction device for a part provided in an embodiment of the present application, the device further includes: an adjustment unit, configured to receive a user's modification instruction for a target part, and adjust the size of the target part based on the modification instruction to obtain an updated size; a first determination unit, configured to determine correction parameter information of the target feature through the updated size, and update the feature to be added on the target part based on the correction parameter information to obtain an updated feature to be added; a judgment unit, configured to judge whether the updated feature to be added matches the target part after the updated size; a prompt unit, configured to issue a prompt message when the updated feature to be added does not match the target part after the updated size, receive a parameter adjustment instruction from the user, and adjust the updated feature to be added according to the parameter adjustment instruction until the updated feature to be added matches the target part after the updated size, wherein the prompt message is used to prompt the user to adjust the updated feature to be added.
[0076] Optionally, in the feature construction device of a part provided in an embodiment of the present application, the extraction unit 302 includes: a first display module, used to display various types of features through a user interface, receive a feature type selection instruction from a user, and determine a target type based on the feature type selection instruction; a second display module, used to display various models of features of the target type through a user interface, receive a feature model selection instruction from a user, and determine the target model based on the feature model selection instruction; and a second determination module, used to determine the target feature from a part feature database through the target type and the target model.
[0077] Optionally, in the part feature construction device provided in the embodiment of the present application, the device also includes: a structural feature extraction unit, used to obtain multiple parts in a historical part database and extract multiple structural features from the multiple parts; a clustering unit, used to cluster the multiple structural features through a preset clustering algorithm to obtain multiple feature sets, and construct a part feature database from the multiple feature sets.
[0078] Optionally, in the part feature construction device provided in the embodiment of the present application, the device also includes: a construction unit, used to receive a user's feature creation instruction, and construct a custom feature based on the feature creation instruction; a feature adding unit, used to add the custom feature to the part feature database.
[0079] Optionally, in the part feature construction device provided in the embodiment of the present application, the device also includes: a second determination unit, used to receive a feature deletion instruction from a user, and determine the feature to be deleted from the part feature database based on the feature deletion instruction; and a removal unit, used to remove the feature to be deleted from the part feature database.
[0080] The feature construction device of a part includes a processor and a memory. The acquisition unit 301, extraction unit 302, receiving unit 303 and adding unit 304 are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
[0081] The processor contains a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the efficiency of building part features can be improved by adjusting kernel parameters.
[0082] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0083] An embodiment of the present invention provides a computer-readable storage medium having a program stored thereon, and the program implements a method for constructing a feature of a part when executed by a processor.
[0084] An embodiment of the present invention provides a processor, which is used to run a program, wherein the program executes a feature construction method of a part when it is run.
[0085] Figure 4 is a schematic diagram of an electronic device provided according to an embodiment of the present application. Figure 4As shown, the electronic device 401 includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: obtaining a target part of a feature to be constructed, determining the size information of the target part, wherein the feature includes at least one of the following: a hole, a groove, and a thread; extracting a target feature to be added to the target part from a part feature database, and determining the initial parameter information of the target feature based on the size information; receiving a parameter adjustment instruction for the target feature from a user, adjusting the initial parameter information based on the parameter adjustment instruction, and obtaining the target parameter information; creating a feature to be added through the target parameter information, and adding the feature to be added to the target part according to the attachment point positioning information, wherein the attachment point positioning information is the preset position information of the target feature on the target part. The device in this article can be a server, a PC, a PAD, a mobile phone, etc.
[0086] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having the following method steps: obtaining a target part of a feature to be constructed, and determining size information of the target part, wherein the feature includes at least one of the following: a hole, a groove, and a thread; extracting a target feature to be added to the target part from a part feature database, and determining initial parameter information of the target feature based on the size information; receiving a user's parameter adjustment instruction for the target feature, adjusting the initial parameter information based on the parameter adjustment instruction, and obtaining the target parameter information; creating a feature to be added through the target parameter information, and adding the feature to be added to the target part according to the attachment point positioning information, wherein the attachment point positioning information is preset position information of the target feature on the target part.
[0087] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0088] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0089] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0090] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0091] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0092] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0093] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0094] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0095] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0096] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for constructing a feature of a part, characterized in that: include: Acquire a target part of a feature to be constructed, and determine size information of the target part, wherein the feature includes at least one of the following: a hole, a groove, and a thread; Extracting target features to be added to the target part from a part feature database, and determining initial parameter information of the target features based on the size information; receiving a parameter adjustment instruction from a user for the target feature, and adjusting the initial parameter information based on the parameter adjustment instruction to obtain target parameter information; The feature to be added is created through the target parameter information, and the feature to be added is added to the target part according to the attachment point positioning information, wherein the attachment point positioning information is the preset position information of the target feature on the target part.
2. The method according to claim 1, characterized in that The initial parameter information of the target feature determined based on the size information includes: Obtaining a preset part parameter mapping table, and determining whether the part parameter mapping table contains the target part, wherein the part parameter mapping table contains a plurality of mapping relationships, each mapping relationship representing a mapping relationship between a part, size information of the part, and parameter information of a feature of the part; In a case where the target part is included in the part parameter mapping table, determining parameter information corresponding to the size information of the target part from the part parameter mapping table to obtain the initial parameter information; In the case that the target part is not included in the part parameter mapping table, historical parameter information of parts of the same type as the target part is extracted from a historical part database, and the historical parameter information is determined as the initial parameter information.
3. The method according to claim 1, characterized in that After adding the feature to be added on the target part according to the attachment point positioning information, the method further includes: receiving a modification instruction from the user for the target part, and adjusting the size of the target part based on the modification instruction to obtain an updated size; Determining correction parameter information of the target feature through the updated size, and updating the feature to be added on the target part based on the correction parameter information to obtain an updated feature to be added; Determining whether the updated feature to be added matches the target part after the size is updated; In the case that the updated feature to be added does not match the target part after the updated size, a prompt message is issued, a parameter adjustment instruction of the user is received, and the updated feature to be added is adjusted according to the parameter adjustment instruction until the updated feature to be added matches the target part after the updated size, wherein the prompt message is used to prompt the user to adjust the updated feature to be added.
4. The method according to claim 1, characterized in that: The target features to be added to the target part are extracted from the part feature database and include: Displaying multiple types of features through a user interface, receiving a user's feature type selection instruction, and determining a target type based on the feature type selection instruction; Displaying multiple models of the characteristics of the target type through the user interface, receiving a characteristic model selection instruction from a user, and determining a target model based on the characteristic model selection instruction; The target feature is determined from the part feature database according to the target type and the target model.
5. The method according to claim 1, characterized in that Before extracting the target features to be added to the target part from the part feature database, the method further includes: Acquire multiple parts in a historical parts database, and extract multiple structural features from the multiple parts; The plurality of structural features are clustered by a preset clustering algorithm to obtain a plurality of feature sets, and a part feature database is constructed by the plurality of feature sets.
6. The method according to claim 5, characterized in that After constructing a part feature database from the plurality of feature sets, the method further comprises: receiving a feature creation instruction from the user, and constructing a custom feature based on the feature creation instruction; The custom feature is added to the part feature database.
7. The method according to claim 5, characterized in that After constructing a part feature database from the plurality of feature sets, the method further comprises: receiving a feature deletion instruction from the user, and determining a feature to be deleted from the part feature database based on the feature deletion instruction; The feature to be deleted is removed from the part feature database.
8. A device for constructing a feature of a part, characterized in that: include: An acquisition unit, used to acquire a target part of a feature to be constructed and determine size information of the target part, wherein the feature includes at least one of the following: a hole, a groove, and a thread; An extraction unit, used to extract a target feature to be added to the target part from a part feature database, and determine initial parameter information of the target feature based on the size information; A receiving unit, configured to receive a parameter adjustment instruction from a user for the target feature, and adjust the initial parameter information based on the parameter adjustment instruction to obtain target parameter information; An adding unit is used to create a feature to be added through the target parameter information, and add the feature to be added on the target part according to the attachment point positioning information, wherein the attachment point positioning information is the preset position information of the target feature on the target part.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for constructing the feature of a part described in any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the feature construction method of the part described in any one of claims 1 to 7.
Citation Information
Cited By
Threaded hole type identification method, device and system and processing equipment
CN121861647A
A thread hole type identification method, device and system and processing equipment
CN121861647B