[gme-users] About creating a link for a model in GME

Somesh Das somesh_au at yahoo.com
Wed Mar 28 04:04:42 CDT 2018


Hi,I want to create a link to select a model in the parent model in GME. To make a link like this I wrote following javascript:
javascript:gme.MgaProject.BeginTransactionInNewTerr();gme.ShowFCOPtr(gme.MgaProject.GetFCOByID("id-0065-0000001b"),true); gme.MgaProject.CommitTransaction();

However, when I run this script in GME, it gives the following error:
   
   - Scripting Error at Position: 54 Line: 0   

   -    

   - Input parsing failed!   

   - Scripting Error: 0x80020101   

I also tried to define the relative path of the model in gme.ShowFCO method and wrote following javascript:
 javascript: gme.MgaProject.BeginTransactionInNewTerr (); gme.ShowFCO("/TemplateModel/R10_SpecContent/R10_SpecObjects/Signal_value_transfer_appliappli_new_value/TO_Signal value and data type conversion", true); gme.MgaProject.CommitTransaction ();

This gives the following error :
   
   - Scripting Error at Position: 58 Line: 0
            Type mismatch
   
   -  Input parsing failed!   

   -  Scripting Error: 0x80020101   

Can Anybody explain to me why I am getting this kind of error?
Thanks & Regards
Somesh Das

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20180328/4d97a125/attachment.html>


More information about the gme-users mailing list