Automate Hyperview from Hypermesh


Hello,
I am attempting to open HyperView and a model and run a TCL script to extract the displacement results from the model that has been loaded. I have been able to open HyperView from HyperMesh and load the correct model, however when it attempts to run the TCL script in HyperView I get the following error message
Command line Tcl script read failed.
invalid command name 'mpo-9999766'
while executing
'm$t AddSelectionSet node'
invoked from within
'm$t GetSelectionSetHandle s$t [m$t AddSelectionSet node]'
(file 'C:/Users/Alec/Desktop/DispVer_HM/results/ExportDisp.tcl' line 6)
invoked from within
'source 'C:/Users/Alec/Desktop/DispVer_HM/results/ExportDisp.tcl''
When I run ExportDisp.tcl just in HyperView and the code works perfectly. I have searched the forums to find out why when both pieces of code are run together it does not work. I have attached both scripts and a model in case that will help anybody troubleshoot. ExportDisp.tcl is the script that is designed to be run in HyperView and extract displacement results, and RunHyperView.tcl is run from HyperMesh and used to open HyperView, load model and run ExportDisp.tcl. Thank you in advance for your help.
- Alec