×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Basic CATIA VBA Programming

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

RE: Basic CATIA VBA Programming

(OP)


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

(OP)
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

RE: Basic CATIA VBA Programming

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

https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources