
Author | CATIA that thing
Debuted | Simulation Show App
Introduction: In general, secondary development is an effective way to customize and specialize in large-scale general software, which can integrate the company's existing knowledge, requirements and design rules into the software system, so that the software can better serve people, and has a role in improving work efficiency and work quality.
Here's a tough automotive engineer, and the story of him starts with the video below...
First, catIA secondary development without professional programming foundation
As a practitioner of the automotive industry, or a student of science and engineering colleges, I believe that you, like me, should be no stranger to catia software. As a CAD/CAE/CAM software widely used in the global automotive and aerospace industries, catia V5 series software has its own powerful functions. However, different industries and different enterprises are limited by standards, regulations and norms, and the requirements for software functions are different.
With this in mind, like the macro functions of the Office family of software, CATIA software also provides a VBA secondary development interface for ordinary engineer users, as well as an open set of internal commands. In this way, users do not need professional programming foundation, through simple learning, you can develop functions that meet their own needs based on the existing commands of the software, and automate some large number of complex work programming, thereby improving efficiency, saving man-hours, shortening product development and manufacturing cycles, and ultimately bringing benefits to enterprises.
If, you think that a large paragraph above is obscure, then I will put it another way: a moba game provides you with command codes that control all heroes to move, cast skills, etc., and through a simple combination of codes, you can play a set of preset perfect combos.
Go back to the video content at the beginning. Perhaps, the scene sung in the video is a bit exaggerated. But if you think about it carefully, we will encounter a lot of repetitive and regular work in practical work, and doing this repetitive work manually and mechanically is not only inefficient, but also increases the probability of operators making mistakes due to boring content. The way to use macro code for secondary development can just solve the above pain points.
Second, follow the little wolf to learn the secondary development of CATIA
Think back to the first secondary development tool that Little Wolf made
For A0+ drawings with larger frames, due to the large amount of information, it is not easy for reviewers to find the target object from the printed drawings of several meters long. To this end, a company's drafting standards are as follows:
Starting from the upper left corner of the drawing, in 100mm units, the abscissa is incremented by numbers, and the ordinate coordinate is incremented by letters, as shown in the following figure.
Thus, for the cross-sectional view A-A, it is necessary to label an area number at the cut position, such as C5, that is, the cross-sectional view is placed in the C5 area; at the same time, the view name of the cross-sectional view is marked with an area number, such as A2, that is, the view is cut at a certain location in the A2 area.
Regarding how to identify an area in a certain location in the map, the little wolf thinks that there are probably the following methods:
1. In the standard picture frame of each enterprise, the coordinate values will be marked in the horizontal and vertical directions. So the first method is that we read the coordinates by visually
2, visual judgment after all tired eyes and can not guarantee accuracy, so there are smart people to make a review as long as A0 +++++, like this
Then place it in the drawing that needs to be annotated for reference, so that you can read it directly. Delete the view after you've all labeled it.
3, although the above method is good, it is inevitable to enter the parentheses and text yourself, and you have to change it to the specified font and font size. Measured by the degree of laziness of the little wolf, it is certainly intolerable. So, here's what:
Since then, a siege lion has embarked on the road of no return of the procedural ape!
After doing a lot of tools, such as batch renaming, batch format, one-click creation of title bar details and other tools, Little Wolf gradually realized that these so-called developments are just simple API calls, with simple judgment loop logic. At the heart of the program is algorithms and logic, which are lacking in the tools mentioned above.
So, if we use the Automation automation object as just an execution tool, the brain's thinking function is implemented using existing algorithms. So what can we do by stepping on the shoulders of giants like this? With the attitude of trying it out, the little wolf made the following things:
Now, if you want to understand and learn about catia VBA secondary development, make the following tools:
Create title bar parts lists and associate 3D attributes with one click
Enter parameters through the dialog box and create the model in one click
Import and export of CATIA point coordinates to Excel
……
You can pay attention to the video course of Little Wolf on the simulation show platform (limited time special price scan code trial)
3. CATIA Secondary Development Open Course
Recently, on the occasion of the "2022 Automotive Simulation Design Learning Month" sponsored by China Water Conservancy and Hydropower Publishing House and the Simulation Show, at 20:00 on April 28 (Thursday), the author was invited to bring the "Automotive Design and CATIA Secondary Development and Application" open class, the following is the course arrangement
Automotive Simulation Design Learning Month Benefits
1. Exclusive benefits for automotive engineer VIP members
2. Automotive simulation design learning package
Note: Auto simulation learning package information continues to be permanently free of charge updates, welcome to share posters to the circle of friends, screenshots sent to the simulation show assistant can also receive a mechanics and finite element learning package, and invited to join the learning car engineer exchange group.
3. Professional good books are free to send
(End)