Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Basic CATIA VBA Programming

Status
Not open for further replies.

Alex31000

Aerospace
Apr 26, 2016
3
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

Example_gn1v7g.jpg


Thanks a lot for your help

Alex
 
Replies continue below

Recommended for you

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)

Capture_tj6ixr.jpg


Thx
 
Hi Fernando,

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
 
Hi,

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

- Romania
- EU
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor