Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

How to execute CATIA V5 macro from Excel VBA?

Status
Not open for further replies.

rswarich

Structural
Jan 17, 2003
5
US
Hello,

Is it possible to executa a CATIA V5 macro from Excel VBA script?

Right now, I am using sendkeys in the VBA Excel macro to send the commands to V5 to run the macro, but that is very clunky. Can not find any VBA commands to control the V5 macros directly. Is there a better way than sendkeys to do this?

Does anyone have an example of how to do it?


Some background: trying to work with an existing V5 macro that someone else wrote. This is a .catvba macro and needs to have the CATAnalysis and CATPart open while it is running. The V5 macro takes an input from an open Excel sheet, runs some V5 analysis, and dumps the output back to Excel. For now trying to use the existing V5 macro as-is, eventually will try to re-write the whole thing to have V5 run in batch mode.


Thanks,
rs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top