2006-06-15 09:48 AM - last edited on 2023-05-24 12:47 PM by Rubia Torres
F. wrote:
Most REQUESTs and GLOBALs, which refer to environment specific status of the object do not work in the dialogue box or the object editing window. That sometimes anoying, because a placed object or window does have this relations yet, but they are not available, when the script runs for the preview.
We had this with ZONE_RELATIONS a few weeks ago in the german talk, where one wanted to take over the zone number into an object, which was placed on the zone area. We did not get it to work, because in case PARAMETERS work, the REQUEST returned a zero-result.
2006-06-15 10:27 AM
2006-06-15 11:47 AM
F. wrote:The INPUT statements are correct.
I don't think that it's a request problem, because the open, output and input commands work all the time. You can check by an text editor, if the values you entered in the objects on each story are written to file.
But your INPUT command seems to be wrong. You can not just substitute OUTPUT by INPUT. The commands for external file access are served by AddOns. They do the complete syntax check and return an error by a value as the the function result (n=INPUT() etc.). Because of this you might not have gotten an error. Have a look into the GDL manual to get the right syntax. You are using the DATA addon.
2006-06-15 12:18 PM
2006-06-15 12:40 PM
The INPUT statements are correct.I am surprised by this, because the syntax does not look like they should be. Can you send me an example PLA? (I send you a contact by PM, the opengdl - contact is broken a few days )
2006-06-16 05:01 AM
Rob wrote:Hi Rob,
Barry,
try to create the actual parameter named "hsname" in parameter list, place the request statement in the master script and write the code in the parameter script like this: PARAMETERS hsname=hsname.
One more think - the master script is always run no matter which window 2D or 3D you are in, e.g. when in the plan the master script is actually a part of the 2D script and same for 3D and/or parameter script.
2006-06-16 05:39 AM
2006-06-16 07:39 AM
Rob wrote:I've tried in all the scripts.
Barry,
I just want to make sure...
have you placed the expresion PARAMETERS hsname=hsname in the parameter script window?
it works for me on v9 and v10 , attached image...
2006-06-16 07:51 AM
F. wrote:Seems all my problems have been solved and it turns out to be a bug in V8.1You are opening the file by "WO". This means all will be overwritten, each time the script runs. If you put it in master script, this could cause, that the last run of the script will have a context the request does not work indeed.Yes I should be opening as read only.
I had just copied this from another script where I needed to input the value and then add to it and output it back to get a total value from a group of individual objects.
F. wrote:AFAIR does not work the HOME-STORY- REQUEST in settings dialog. So you will not be able to store the REQUEST-result into the parameter by PARAMETERS. This is the problem you quoted, we have found in the other request thread.
2006-06-16 09:01 AM
Do you have V10 AUS already or were you a beta-testerno, I do not have v10AUS yet. yes, I am a beta fiddler...