CheeseMaker13
Aerospace
- Sep 25, 2012
- 42
Hi,
I'd like to compile a macro that does the following things:
1. Imports a selection of assembly file names from an excel spreadsheet.
2. Runs clash detection on each of the files listed in the spreadsheet.
3A. Exports the clash list to a txt file for import into the same excel speadsheet OR
3B. Automatically imports the clashes straight into excel.
Now I can do steps 1 and 3A, but my very basic CATIA VBA knowledge is kinda putting me up against the buffers with Steps 2 and 3B.
I've done some googling to see if I could find any scripts similar to what I want to achieve, but they either don't work from the kick off or I can't make heads nor tails of them!
Could someone knock together a script that runs on an already opened assembly (starting from Set Target_Document = CATIA.Documents.Open(C:/....)) and explains what each step does would be awesome.
(Essentially, I'm ok with excel VBA, but I can't make heads nor tails of these catia objects and there doesn't seem to be any guides explaining what it all does on the internet, so anything that clarifies the basics of CATIA VBA [or object-based VBA itself] would be very useful!!!)
Thanks!
CR.
I'd like to compile a macro that does the following things:
1. Imports a selection of assembly file names from an excel spreadsheet.
2. Runs clash detection on each of the files listed in the spreadsheet.
3A. Exports the clash list to a txt file for import into the same excel speadsheet OR
3B. Automatically imports the clashes straight into excel.
Now I can do steps 1 and 3A, but my very basic CATIA VBA knowledge is kinda putting me up against the buffers with Steps 2 and 3B.
I've done some googling to see if I could find any scripts similar to what I want to achieve, but they either don't work from the kick off or I can't make heads nor tails of them!
Could someone knock together a script that runs on an already opened assembly (starting from Set Target_Document = CATIA.Documents.Open(C:/....)) and explains what each step does would be awesome.
(Essentially, I'm ok with excel VBA, but I can't make heads nor tails of these catia objects and there doesn't seem to be any guides explaining what it all does on the internet, so anything that clarifies the basics of CATIA VBA [or object-based VBA itself] would be very useful!!!)
Thanks!
CR.