Basic CATIA VBA Programming
Basic CATIA VBA Programming
(OP)
Hi Guys,
I would like to create a very basic program in VBA on CATIA but I am not used to the different functions and objects (I only know VBA in Excel).
Actually, I want to automatically open several nodes under the VPM Navigator (with and without children). I just gave you a quick and easy example below. I would like to open the green nodes (at level 5) with and without children. I will adapt the code afterwards by adding, changing the nodes for my need

Thanks a lot for your help
Alex
I would like to create a very basic program in VBA on CATIA but I am not used to the different functions and objects (I only know VBA in Excel).
Actually, I want to automatically open several nodes under the VPM Navigator (with and without children). I just gave you a quick and easy example below. I would like to open the green nodes (at level 5) with and without children. I will adapt the code afterwards by adding, changing the nodes for my need

Thanks a lot for your help
Alex





RE: Basic CATIA VBA Programming
Extra Info:
By opening nodes, I meant to expand the tree up to level 5 and then to load CATProduct in visu mode (As shown below)
Thx
RE: Basic CATIA VBA Programming
Let me understand: are you using ENOVIA VPM or ENOVIA Portal LCA? Why don't you open directly from VPM what node do you need? ENOVIA has powerful search queries...or use filters...the idea is not to load the PC memory...
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: Basic CATIA VBA Programming
I use VPM Navigator from CATIA for opening the different nodes. I don't use ENOVIA for this.
Actually, I cannot load the top node in one shot because it's so big (more than 200,000 parts) that Catia will crash. Therefore, I have to go down in the Product Structure and open (i.e. load in Visu mode) the nodes by smaller packs.
I think I should use the function Prod.ApplyWorkMode (VISUALIZATION_MODE) but I don’t how to use it when I have to expand a tree
Thanks a lot for your help
Alexis
RE: Basic CATIA VBA Programming
I saw what Eric advice you on COE. If I remember correctly in ENOVIA you can save filters with specific configurations and push everything in CATIA at anytime....indeed, what Eric said about local cgr is true, it will load CATIA faster.
Anyway, it will take a time because CATIA will check the time stamp of each cgr, just to be sure CATIA will load latest version from ENOVIA.
In Airbus I saw a software (I don't remember now the name) working with 3dxml files (or cgr?) just for visualization purposes and connected with database (using Primes not ENOVIA, hope I remember correctly).
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU