Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

ExecuteScript

Status
Not open for further replies.

krestrick

Aerospace
Joined
Dec 11, 2003
Messages
1
Location
GB
Hi All

I'm trying to write a script that will start a macro in CATIA. I've found the SystemService.ExecuteScript method, however, it only seems to work if the macro is saved in a CATPart document whilst I've got the macro saved in a VBA Project.

My code looks something like this:

CATIA.SystemService.ExecuteScript "library_name.catvba",catScriptLibraryTypeVBAProject,"macro_name.vba","CATMain", params

Has any body had problems like this?

Thanks,
Kevin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top