Change parameter CATIA macro
“Few ideas work on the first try. Iteration is key to innovation.”
First of all, in this post we want to write about the connection between CATIA macro and parameters in the tree. So there are a lot of options in this direction. One of the possibilities is to have full control of your model with macro. Here we want to demonstrate some basic, but you will get the idea.
Certainly fill stock-list parameters with CATIA macro is our focus. Why talk about this subject “change parameter CATIA macro”? So every model has some kind of stock-list. You need to fill those parameters every time. Rather there are a lot of parts with the same parameters. Also when you work as a team, you need to have same parameters for the same parts. For example, on trim dies, you have trim steels, and a lot of colleges will have them too. Hence best practice is to set those same parameters on all dies.
It is a perfect time to use the macro for this action. So let’s write some code for change parameter CATIA macro.
Writing macro code
This is just a basic idea, so you can do a lot more. Our code will fill just a few parameters, like material, info and example for dimension. We have in the tree three parameters with names: Material, Info and Dimension. Consequently, we want to set values for these three parameters.
Furthermore, this macro will only fill these parameters if they exist.
This part of code will make new string parameter and and value “Text”
Even more, see the video for more info.
As you can see in the video we demonstrated application with these basic macros. Therefore this application is very useful and saves a lot of time. It solves problems with a different profiles of parameters in every part and model. So if you are interested to buy this part of the app please contact us.