| importing variables into iTools programmatically [message #37238] |
Sun, 07 December 2003 01:01 |
milan08
Messages: 6 Registered: November 2003
|
Junior Member |
|
|
Hi all,
I have an IDLgrModel of a camera that I would like to import into the
ivolume data manager. With a function, camera() that returns an
object reference of the camera model, I can enter cam1= camera() at
the command line, call ivolume and import cam1 via the file/import
menu, but I would like to be able to do this programmatically. I have
to define cam1 in my program rather than at the command line because I
will have users running this application using IDL VM. I tried adding
the following code to my procedure:
com= 'cam1= camera()'
test= EXECUTE, com
I then called ivolume from within the procedure and tried to import
the variable cam1 using the file/import interface, but this didn't
work. Even if that had worked, I will not be able to use EXECUTE,
because I recently discovered IDL VM does not allow use of the EXECUTE
function. I also made an unsuccesful attempt at using CALL_FUNCTION.
Does any one have a method for importing variables into iTools from
within a procedure?
-Erica
|
|
|
|