I want to create one script that will open the windows application and use that application to perform some task. I have listed out the activity that I want to automate below:
Application is PTC integrity. It is linked with database server that has lot of files in it which have unique ID. So I need to use ID to open the document and export it.
Steps:
- Open the application.
- Open the document using ID.
- Export the document to some specific format.
I want to know which scripting to be used to automate this process, i.e., I give array of IDs , the script will open the application and then open the document using IDs and export them till all the IDs are exported. Using Excel VBA can it be done.
I Prefer Python to automate multiple processes in PTC.You can use CLI commands for all your operations.Run those CLI commands from Python using subprocess method. Get your output in your preferable format.
Yes you can do this in VBA. Your VBA can call a batch file via the Shell command that uses PTC Integrity Command Line Interface.
To export a document you can use the 'im exportissues' CLI command.
To call a batch file synchronously you can use the ShellandWait function below or see related StackOverflow question.