Seal bar snap arrangement method, device and storage medium
By using VBA programs in CATIA to calculate the center of the snap-fit holes and process the data, the efficient arrangement of the sealing strip snaps was achieved, solving the problem of cumbersome arrangement process in the existing technology and improving design efficiency.
Patent Information
- Application Number
- CN202211634979.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-19
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2042-12-19
AI Technical Summary
In existing technologies, the process of arranging automotive sealing strip clips in CATIA software is cumbersome, resulting in a long design time for sealing strips.
By using a sealing strip buckle arrangement method based on CATIA secondary development, the center of the buckle hole is calculated using a VBA program, and combined with the body sheet metal and sealing strip sweep line data, the buckles are arranged in the corresponding positions, simplifying the arrangement process.
The process of arranging the sealing strip clips has been simplified, reducing the arrangement time and facilitating the smooth progress of the sealing strip design work.
Smart Images

Figure CN115906584B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of automobile parts design, in particular to a sealing strip buckle arrangement method based on CATIA secondary development. BACKGROUND
[0002] In the prior art, the sealing strip on the automobile is usually connected to the vehicle body by a buckle. In order to ensure the adaptability of the sealing strip in the vehicle body, the buckle is arranged in the buckle hole of the vehicle body sheet metal during the auxiliary design of the automobile sealing strip by using the CATIA software, so as to connect the sealing strip to the vehicle body sheet metal and check the setting effect of the sealing strip in the vehicle body. At present, when arranging the buckle on the vehicle body sheet metal by using the CATIA command, the process is still relatively complicated, and it takes a long time to arrange the buckles of the whole vehicle, which to some extent affects the smooth progress of the sealing strip design work. SUMMARY
[0003] Therefore, the present application aims to provide a sealing strip buckle arrangement method to facilitate the smooth progress of the sealing strip design work.
[0004] To achieve the above-mentioned purpose, the technical scheme of the present application is as follows:
[0005] A sealing strip buckle arrangement method, which is a sealing strip buckle arrangement method based on CATIA secondary development, and the method comprises:
[0006] storing the edge line data of the vehicle body sheet metal and the buckle hole on the vehicle body sheet metal where the buckle needs to be arranged, the coordinate data of the buckle, and the sweep line data of the sealing strip into three directories respectively, and the three directories are all composed of geometric figure sets;
[0007] calculating the center of the buckle hole according to the edge line data of the buckle hole by using a preset VBA program, and storing the center in a geometric figure set "center" created by a preset program;
[0008] arranging the buckle to the corresponding buckle hole position according to the "center", the data of the vehicle body sheet metal, the coordinate data of the buckle, and the sweep line data of the sealing strip;
[0009] displaying the buckle arranged to the corresponding buckle hole position in a newly created geometric figure set "buckle" in the CATIA part environment.
[0010] Further, the process of calculating the center of the buckle hole according to the edge line data of the buckle hole by using a preset VBA program, and storing the center in a geometric figure set "center" created by a preset program comprises:
[0011] The edge line of the buckle hole is obtained by using preset VBA program code, and the edge line in the geometric figure set is made as reference data.
[0012] A geometric figure set is newly created in the CATIA part environment by using preset VBA program code, and is named as "circle center".
[0013] Three points are sequentially established on the edge line of the buckle hole by using preset VBScript language, the center point of the buckle hole is determined through the three points, and is displayed in the created "circle center" geometric figure set.
[0014] Further, the process of arranging the buckle to the corresponding buckle hole position according to the "circle center", the body sheet metal data, the buckle and the coordinate data and the sealing strip sweep line data comprises:
[0015] The sealing strip sweep line is obtained by using preset VBA program code, and is made as reference data.
[0016] The coordinate is established through the sealing strip sweep line, the body sheet metal data and the created geometric figure set "circle center" by using preset VBA program code, the coordinate of the buckle is coincided with the established coordinate, and the buckle is arranged to the corresponding buckle hole position.
[0017] Further, the process of displaying the buckle arranged to the corresponding buckle hole position in the newly created geometric figure set "buckle" in the CATIA part environment comprises:
[0018] A "hybridBodies" is newly created in the CATIA part environment by using preset VBA program code, and is named as "buckle", and the buckle is displayed in the created "buckle" directory.
[0019] Compared with the prior art, the application has the following advantages:
[0020] According to the sealing strip buckle arrangement method, the "circle center" directory is created only by obtaining the circle center of the buckle hole edge line data, the buckle is arranged to the corresponding buckle hole position according to the "circle center", the buckle and the coordinate data and the sealing strip sweep line data, and the buckle arranged to the corresponding buckle hole position is displayed in the newly created "buckle" directory, so that the arrangement of the sealing strip buckle can be completed, the arrangement process of the sealing strip buckle can be simplified, the arrangement time of the sealing strip buckle can be reduced, and thus the sealing strip design work can be smoothly carried out.
[0021] Another object of the application is to provide a sealing strip buckle arrangement device, which is a sealing strip buckle arrangement device based on CATIA secondary development, and comprises:
[0022] a data storage module, configured to store the edge line data of the body panel and the snap hole to be arranged on the body panel, the coordinate data of the snap, and the sweep line data of the sealing strip into three directories respectively, and the three directories are all composed of geometric sets;
[0023] a data processing module, configured to obtain the center of the snap hole according to the edge line data of the snap hole, and store the center in a created geometric set "center", and the data processing module is further configured to arrange the snap to the corresponding snap hole position according to the geometric set "center", the body panel data, the coordinate data of the snap, and the sweep line data of the sealing strip;
[0024] a data display module, configured to display the snap arranged to the corresponding snap hole position in a newly created "snap" directory in a CATIA part environment.
[0025] Further, the process of obtaining the center of the snap hole according to the edge line data of the snap hole through a preset VBA program and storing the center in a geometric set "center" created by a preset program comprises:
[0026] acquiring the geometric set where the edge line of the snap hole is located by using a preset VBA program code, so that the edge line in the geometric set becomes reference data;
[0027] creating a geometric set in the CATIA part environment by using a preset VBA program code, and naming the geometric set as "center";
[0028] establishing three points on the edge line of the snap hole in sequence by using a preset VBScript language, determining the center point of the snap hole through the three points, and displaying the center point in the created geometric set "center".
[0029] Further, the process of arranging the snap to the corresponding snap hole position according to the "center", the body panel data, the coordinate data of the snap, and the sweep line data of the sealing strip comprises:
[0030] acquiring the sweep line of the sealing strip by using a preset VBA program code, so that the sweep line becomes reference data;
[0031] establishing a coordinate through the sweep line of the sealing strip, the body panel data, and the created geometric set "center" by using a preset VBA program code, coinciding the coordinate of the snap with the established coordinate, and arranging the snap to the corresponding snap hole position.
[0032] Further, the process of displaying the buckle to the corresponding buckle hole position in the newly created geometry set "buckle" in the CATIA part environment includes:
[0033] A "hybridBodies" is newly created in the CATIA part environment by using the preset VBA program code, and is named as "buckle", and the buckle is displayed in the created "buckle" directory.
[0034] In addition, the application also provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the sealing strip buckle arrangement method.
[0035] The sealing strip buckle arrangement device and the computer readable storage medium have the same beneficial effects as the sealing strip buckle arrangement method, and will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0036] The accompanying drawings, which form a part of the present application, are intended to provide further understanding of the present application, and are used to explain the illustrative embodiments of the present application and their descriptions, and do not constitute improper limitations to the present application. In the drawings:
[0037] Figure 1 The flow chart of the sealing strip buckle arrangement method according to the embodiments of the present application;
[0038] Figure 2 The structural schematic diagram of the sealing strip buckle arrangement device according to the embodiments of the present application;
[0039] Explanation of reference signs:
[0040] 10, data storage module; 20, data processing module; 30, data display module. DETAILED DESCRIPTION
[0041] It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0042] In the description of the present application, it should be noted that if the terms indicating the orientation or position relationship such as "upper", "lower", "inner", "outer" and the like appear, they are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation to the present application. In addition, if the terms "first", "second" and the like appear, they are also used for the purpose of description, and cannot be understood as indicating or implying relative importance.
[0043] CATIA is a product development flagship solution of Dassault System, which contains three modules: CAD (Computer Aided Design module), CAE (Finite Element Analysis module) and CAM (Computer Aided Manufacturing module). It can support the whole industrial design process from the project pre-stage, specific design, analysis, simulation, assembly to maintenance through modeling. The secondary development of CATIA software is to expand the function through programming language on the existing software to meet the specific use demand, which will not change the kernel of the original software and belongs to the innovation process of software. The secondary development methods of CATIA mainly include EKL language based on knowledge engineering, Automation API and CAA.
[0044] The present application will be described in detail below with reference to the drawings and in conjunction with the embodiments.
[0045] The present embodiment relates to a sealing strip buckle arrangement method, which is a sealing strip buckle arrangement method based on CATIA secondary development shown in Figure 1 The method includes the following steps.
[0046] Step S01, the edge line data of the body sheet metal and the buckle hole arranged with buckles thereon, the coordinate data of the buckles and the sealing strip sweep line data are respectively stored in three directories, and the three directories are composed of geometric figure sets.
[0047] In the present embodiment, the body sheet metal data, the buckle data and the sealing strip data are all three-dimensional graphic data of the body sheet metal, the buckles and the sealing strips drawn. The edge line data of the body sheet metal and the buckle hole arranged with buckles thereon, the coordinate data of the buckles and the sealing strip sweep line data are respectively stored in three directories, so that the subsequent data processing process can be carried out.
[0048] Step S02, according to the edge line data of the buckle hole, the center of the buckle hole is calculated by a preset VBA program and stored in a geometric figure set "center" created by a preset program.
[0049] In the present embodiment, according to the edge line data of the buckle hole, the center of the buckle hole is calculated by a preset VBA program and stored in a geometric figure set "center" in step S02, which specifically includes the following process:
[0050] Step S021, the edge line of the buckle hole is obtained by using a preset VBA program code, so that the edge line in the geometric figure set becomes reference data.
[0051] For example, the preset VBA program code can be the following code:
[0052]
[0053] Step S022, using a preset VBA program code, a new geometry set is created in the CATIA part environment and named as "circle center".
[0054] In specific implementation, the preset VBA program code may be, for example, the following code:
[0055] Set hybridBodies1 = part1.HybridBodies
[0056] Set MyHB2 = hybridBodies1.Add
[0057] MyHB2.Name = "circle center"
[0058] Step S023, using a preset VBScript language, three points are established on the edge line of the buckle hole in sequence, the center point of the buckle hole is determined through the three established points, and is displayed in the created "circle center" geometry set.
[0059] In specific implementation, the preset VBScript language may be, for example, the following code:
[0060]
[0061] Step S03, according to the "circle center", the car body sheet metal data, the buckle and the coordinate data thereof, and the sealing strip sweep line data, the buckle is arranged to the corresponding buckle hole position.
[0062] In the embodiment, the step S03 of arranging the buckle to the corresponding buckle hole position according to the "circle center", the car body sheet metal data, the buckle and the coordinate data thereof, and the sealing strip sweep line data specifically includes the following process:
[0063] Step S031, using a preset VBA program code to obtain the sealing strip sweep line so as to make it become reference data.
[0064] In specific implementation, the preset VBA program code may be, for example, the following code:
[0065]
[0066] Step S032, using a preset VBA program code, through the sealing strip sweep line, the car body sheet metal data and the created geometry set "circle center", a coordinate is established, the coordinate of the buckle is coincided with the established coordinate, and the buckle is arranged to the corresponding buckle hole position.
[0067] In specific implementation, the preset VBA program code may be, for example, the following code:
[0068]
[0069] In step S04, the clasp arranged at the position of the corresponding clasp hole is displayed in the newly created geometry set "clasp" in the CATIA part environment.
[0070] In the embodiment, the process of displaying the clasp arranged at the position of the corresponding clasp hole in the newly created geometry set "clasp" in the CATIA part environment in step S04 specifically includes the following process:
[0071] In step S041, a "hybridBodies" is newly created in the CATIA part environment and named "clasp" by using the preset VBA program code, and the clasp is displayed in the created "clasp" directory.
[0072] In specific implementation, the preset VBA program code may be, for example, the following code:
[0073]
[0074] It should be noted that, based on the above description, the above code is loaded and executed in CATIA in the embodiment, and the steps S031-S032 in step S03 are repeatedly executed by using the program FOR loop statement, so that the program is applied to each point in the geometry set "circle center", and the arrangement of the clasp of the sealing strip in the corresponding body panel clasp hole can also be achieved.
[0075] The sealing strip clasp arrangement method of the embodiment can complete the arrangement of the clasp of the sealing strip by only creating the "circle center" directory by obtaining the circle center of the clasp hole, arranging the clasp at the position of the corresponding clasp hole according to the "circle center" directory, the clasp data and the sealing strip data, and displaying the clasp arranged at the position of the corresponding clasp hole in the newly created "clasp" directory. The arrangement process of the clasp of the sealing strip can be simplified, the arrangement time of the clasp of the sealing strip can be reduced, and thus the smooth progress of the sealing strip design work is facilitated.
[0076] The embodiment also relates to a sealing strip clasp arrangement device. The device is also a sealing strip clasp arrangement device based on the secondary development of CATIA, and combines the sealing strip clasp arrangement method of the embodiment. Figure 2 As shown in the figure, the device includes a data storage module 10, a data processing module 20 and a data display module 30.
[0077] The data storage module 10 is used to store the edge line data of the body sheet metal and the buckle hole, the coordinate data of the buckle and the sealing strip, and the sweep line data of the sealing strip into three directories respectively, and the three directories are composed of geometric figure sets.
[0078] The data processing module 20 is used to obtain the center of the buckle hole according to the edge line data of the buckle hole, and store the center in the created geometric figure set "center", and the data processing module 20 is also used to arrange the buckle in the corresponding buckle hole position according to the geometric figure set "center", the body sheet metal data, the coordinate data of the buckle and the sealing strip, and the sweep line data of the sealing strip.
[0079] The data display module 30 is used to display the buckle arranged in the corresponding buckle hole position in the newly created "buckle" directory in the CATIA part environment.
[0080] Specifically, the execution process of the sealing strip buckle arrangement device of the embodiment can refer to the description in the sealing strip buckle arrangement method. The data storage module 10, the data processing module 20, and the data display module 30 can all use the related modules in the existing computer that can perform storage, data processing, and data display.
[0081] The sealing strip buckle arrangement device of the embodiment can realize the execution of the sealing strip buckle arrangement method to complete the arrangement of the sealing strip buckle, and can simplify the arrangement process of the sealing strip buckle, reduce the arrangement time of the sealing strip buckle, and facilitate the smooth progress of the sealing strip design work, and has good practicability.
[0082] In addition, the embodiment also relates to a computer readable storage medium having a computer program stored thereon, and the computer program is executed by a processor to realize the sealing strip buckle arrangement method.
[0083] The computer readable storage medium of the embodiment is generally a memory. In addition, the computer readable storage medium includes permanent and non-permanent, removable and non-removable media, and can be realized by any method or technology to store information.
[0084] which can be read by a computer. Examples of computer-readable storage media include, but are not limited to, phase-change (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 disc read-only memory (CD-ROM), digital versatile discs (DVDs) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that is accessible to a computing device.
[0085] The above descriptions are only the preferred embodiment of the application, not intended to limit the application and any modification, equivalent replacement and improvement made within the spirit and principle of the application shall be included in the protection scope of the application.
Claims
1. A method of sealing strip snap arrangement, characterized by, The method is a sealing strip buckle arrangement method based on secondary development of CATIA, and the method comprises: storing body sheet metal and edge line data of a buckle hole on which a buckle needs to be arranged, the buckle and coordinate data of the buckle, and sealing strip sweep line data into three directories respectively, the three directories being composed of geometric figure sets; calculating a center of the buckle hole according to the edge line data of the buckle hole through a preset VBA program and storing the center in a geometric figure set "center" created by a preset program; arranging the buckle to a corresponding buckle hole position according to the "center", the body sheet metal data, the buckle and coordinate data of the buckle, and the sealing strip sweep line data; displaying the buckle arranged to the corresponding buckle hole position in a geometric figure set "buckle" newly created in a CATIA part environment; wherein the process of calculating the center of the buckle hole according to the edge line data of the buckle hole through the preset VBA program and storing the center in the geometric figure set "center" created by the preset program comprises: acquiring the geometric figure set in which the edge line of the buckle hole is located by using preset VBA program code, so that the edge line in the geometric figure set becomes reference data; newly creating a geometric figure set in the CATIA part environment and naming it as "center" by using preset VBA program code; establishing three points on the edge line of the buckle hole in sequence by using preset VBScript language, determining the center point of the buckle hole through the three points, and displaying the center point in the created "center" geometric figure set; wherein the process of arranging the buckle to the corresponding buckle hole position according to the "center", the body sheet metal data, the buckle and coordinate data of the buckle, and the sealing strip sweep line data comprises: acquiring the sealing strip sweep line by using preset VBA program code, so that the sealing strip sweep line becomes reference data; establishing coordinates through the sealing strip sweep line, the body sheet metal data, and the created "center" geometric figure set, coinciding the coordinates of the buckle with the established coordinates, and arranging the buckle to the corresponding buckle hole position.
2. The sealing strip buckle arrangement method according to claim 1, wherein: the process of displaying the buckle arranged to the corresponding buckle hole position in the geometric figure set "buckle" newly created in the CATIA part environment comprises: newly creating a "hybridBodies" in the CATIA part environment and naming it as "buckle" by using preset VBA program code, and displaying the buckle in the created "buckle" directory.
3. A weatherstrip clip arrangement, characterized by The device is a sealing strip buckle arrangement device based on secondary development of CATIA, and the device comprises: a data storage module (10) configured to store body sheet metal and edge line data of a buckle hole on which a buckle needs to be arranged, the buckle and coordinate data of the buckle, and sealing strip sweep line data into three directories respectively, the three directories being composed of geometric figure sets; a data storage module (10) configured to store body sheet metal and edge line data of a buckle hole on which a buckle needs to be arranged, the buckle and coordinate data of the buckle, and sealing strip sweep line data into three directories respectively, the three directories being composed of geometric figure sets; A data processing module (20) is configured to obtain the center of the snap hole according to the edge line data of the snap hole and store the center in a created geometry set "center", and the data processing module (20) is further configured to arrange the snap fastener to the corresponding snap hole position according to the geometry set "center", the body panel data, the coordinate data of the snap fastener and the seal strip sweep line data. A data display module (30) is configured to display the snap fastener arranged to the corresponding snap hole position in a newly created "snap fastener" directory in the CATIA part environment. The process of obtaining the center of the snap hole according to the edge line data of the snap hole and storing the center in the geometry set "center" created by the preset program includes: The edge line of the snap hole is obtained by using the preset VBA program code, and the edge line in the geometry set is taken as the reference data. A geometry set is newly created in the CATIA part environment by using the preset VBA program code, and is named as "center". Three points are established on the edge line of the snap hole by using the preset VBScript language, and the center point of the snap hole is determined by the three points, and is displayed in the created geometry set "center". The process of arranging the snap fastener to the corresponding snap hole position according to the "center", the body panel data, the coordinate data of the snap fastener and the seal strip sweep line data includes: The seal strip sweep line is obtained by using the preset VBA program code, and is taken as the reference data. The coordinates are established by using the seal strip sweep line, the body panel data and the created geometry set "center", the coordinates of the snap fastener are coincided with the established coordinates, and the snap fastener is arranged to the corresponding snap hole position. The process of displaying the snap fastener arranged to the corresponding snap hole position in the newly created "snap fastener" directory in the CATIA part environment includes: A "hybridBodies" is newly created in the CATIA part environment by using the preset VBA program code, and is named as "snap fastener", and the snap fastener is displayed in the created "snap fastener" directory. A computer readable storage medium has a computer program stored thereon, and the computer program is executed by a processor to implement the seal strip snap fastener arrangement method in any one of claims 1-2.
Citation Information
Patent Citations
Total arrangement diagram generation method and device based on Catia secondary development
CN111737781A