help w/ GLOB_ELEVATION
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-03-24 11:37 PM
2004-03-24
11:37 PM
Thanks for any help,
Michele
THe code is as follows:
!GLOB_ELEVATION!to each story
!SYMB_POS_Z!to project zero
IF ddoutlet=1 and SYMB_POS_Z<18" OR GLOB_ELEVATION>18" THEN GOSUB 200
IF ddoutlet=0 and SYMB_POS_Z<18" OR GLOB_ELEVATION>18" THEN GOSUB 100
IF ddoutlet=1 and GLOB_ELEVATION=18" THEN GOSUB 400
IF ddoutlet=0 and GLOB_ELEVATION=18" THEN GOSUB 300
!IF out=1 and GLOB_ELEVATION=18" THEN GOSUB 500!220 outlet on
!IF out=0 and GLOB_ELEVATION=18" THEN GOSUB 550!220 outlet off
FRAGMENT2 ALL, 0
END:
100:!!OUTLET
DEFINE STYLE STYLE_1 "Arial", 35 * MIN (a, b), 7, 0
STYLE STYLE_1
PEN cpen
rot2 -symb_rotangle
unID = 1
HOTSPOT2 0, d_y,unID, d_x,1+128 : unID=unID+1
HOTSPOT2 -1, d_y,unID, d_x,3 : unID=unID+1
HOTSPOT2 d_x,d_y,unID, d_x,2 : unID=unID+1
HOTSPOT2 d_x, 0,unID, d_y,1+128 : unID=unID+1
HOTSPOT2 d_x, -1,unID, d_y,3 : unID=unID+1
HOTSPOT2 d_x,d_y,unID, d_y,2 : unID=unID+1
ADD2 d_x, d_y
TEXT2 0, 0, STR("%fi", GLOB_ELEVATION)
DEL 2
3 REPLIES 3
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-03-24 11:50 PM
2004-03-24
11:50 PM
IF ddoutlet=1 and SYMB_POS_Z<18" OR GLOB_ELEVATION>18" THEN GOSUB 200The SYMB_POS_Z<18" condition means that when your outlet is below 18" relative to project zero GOSUB 200 runs.
The basement is presumably below +18" elevation.
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-03-25 12:20 AM
2004-03-25
12:20 AM
So how do I state that I want it to look at the story zero. It works when I put the object on a second or 3rd story and that is more than 18" above project zero.
Thanks,
Michele
Thanks,
Michele
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-03-25 02:27 AM
2004-03-25
02:27 AM
If I understand what to want to do, then:
IF ddoutlet=1 and GLOB_ELEVATION#18" THEN GOSUB 200
Should do the trick.
I assume your subroutine at line 200 is the symbol with the non-standard elevation text shown ("unless otherwise noted", right?). So all you should need is the test to see if the elevation above the home story is 18" or not. I honestly don't understand the purpose to the test for being below 18" to project zero.
IF ddoutlet=1 and GLOB_ELEVATION#18" THEN GOSUB 200
Should do the trick.
I assume your subroutine at line 200 is the symbol with the non-standard elevation text shown ("unless otherwise noted", right?). So all you should need is the test to see if the elevation above the home story is 18" or not. I honestly don't understand the purpose to the test for being below 18" to project zero.