Exporting to 3rd party CAE formats requires that you have purchased the correct licenses. Refer to the Minimum license requirements page to find out if you can perform this operation.
To run the mpi2pat.vbs macro:
The API script saves the interface files in a folder created within the current project folder. For example, My Documents\My AMI 20xx Projects\Project1\<study_name>_interface_files, where xxxx is the software release number and <study_name> is the name of the study you are exporting to PATRAN.
Once the files are in that location, you can use them in PATRAN. Refer to your PATRAN manual for instructions on how to import them.