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 connection between CATIA macro and parameters in the tree. So there are lot of options in this direction. One of possibilities is to have full control on 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 to 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 same parameters. Also when you work as a team, you need to have same parameters for same parts. For example, on trim dies you have trim steels, and a lot of college will have them too. Hence best practice is to set those same parameters on all dies.
It is a perfect time to use macro for this action. So let’s write some code for change parameter CATIA macro.
Writing macro code
This is just basic idea, so you can do a lot more. Our code will fill just 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 video for more info.
As you can see in video we demonstrated application with this basic macros. Therefore this application is very useful and save a lot of time. It solves problems with different profile of parameters in every part and model. So if you are interested to buy this part of app please contact us.