Test Parameter Values In Parameter Script?
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-06-06 08:08 PM
2005-06-06
08:08 PM
VALUES `Door_Type_Code` `DHG`, `S&R`, `F`, `NL`, `HG`, `FNL`
IF Door_Type_Code = `DHG` THEN
VALUES `Door_Hardware_Code` `1`, `2`, `3`
ELSE
VALUES `Door_Hardware_Code` `10`, `20`, `30`
ENDIF
This apparently fails because `Door_Hardware_Code` isn't initialized at this point. Is there any way to accomplish the task of setting possible values based on another parameter's current value?
11 REPLIES 11
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-06-09 01:13 AM
2005-06-09
01:13 AM
Matthew wrote:Could you elaborate on that a little bit? Maybe give some examples.
...it requires this kind of stategic placement of code. if you can do that, the objects parameters become much more efficient than anything youll get by coding directly to the master script.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-06-09 01:28 AM
2005-06-09
01:28 AM
david wrote:Interesting, I have found no problems using the unsubstituted values from the param script ie:
My personal reason also has to do with the way I built a Menu.:
mv1="Stationary"
mv2="Moving slowly"
mv3="Moving quickly!"
VALUES "motionmode" mv1,mv2,mv3
Later in the other scripts you can say things like :
IF motionmode=mv3 THEN .........
This method of building menus ONLY works correctly if you do it in the Master Script, because the other scripts will not know what mv1 and mv2 are. As a result of this, I never use the Parameter script except for the very simplest things.
IF motionmode="Moving slowly" THEN ......... in another script will work fine.
Richard Swann
MacOS 11.7 , Intel Imac 4k ArchiCAD 4.5-27 (Solo)
MacOS 11.7 , Intel Imac 4k ArchiCAD 4.5-27 (Solo)
- « Previous
-
- 1
- 2
- Next »
- « Previous
-
- 1
- 2
- Next »