PDA

View Full Version : ExecuteAction - why not working?



maxthebuilder
April 15th, 2008, 05:55 PM
Hello,
I am trying to initiate some Girder actions from NR2.
(I have several girders and need to be able to specify which girder to use)

This works:
NetRemote.ExecuteAction(-2001,0,1,'action')

This doesn't work:
NetRemote.ExecuteAction(Ginst,0,1,'action')

This doesn't work either:
NetRemote.ExecuteAction(tonumber(Ginst),0,1,'actio n')

GInst is a variable to which I assign the Girder instance:
NetRemote.SetVariable('GInst',"-2001");

What am I doing wrong? How to do it right?

Thanks a million!
--max

maxthebuilder
April 15th, 2008, 08:50 PM
Got it..
Should've used:

NetRemote.ExecuteAction(NetRemote.GetVariable('Gin st'),0,1,'action')




This doesn't work:
NetRemote.ExecuteAction(Ginst,0,1,'action')