2022-08-02 05:35 PM
Where can GLOB_VIEW_TYPE = 7 be used?
text2 0,0,GLOB_VIEW_TYPE
Solved! Go to Solution.
2022-08-03 01:15 PM
The detail view will explode everything into lines, fills, and text.
So if you place the object in the floor plan, it will show "2" as expected. If you then put a detail marker on it the generated detail will preserve the "2" since that it is what is "sees" at the time of creation.
However if you put the same object in the detail directly it will show "7" – just as expected.
(Tested on AC24, your mileage may vary)
2022-08-03 01:15 PM
The detail view will explode everything into lines, fills, and text.
So if you place the object in the floor plan, it will show "2" as expected. If you then put a detail marker on it the generated detail will preserve the "2" since that it is what is "sees" at the time of creation.
However if you put the same object in the detail directly it will show "7" – just as expected.
(Tested on AC24, your mileage may vary)
2022-08-03 06:21 PM - edited 2022-08-03 06:23 PM
mask: returns information about the visible stair components of the floor plan
mask = j1 + 2*j2 + 4*j3 + 8*j4 + 16*j5 + 32*j6 + 64*j7 + 128*j8 + 256*j9, where each j can be 0 or 1.
j1: walking line
j2: numbering
j3: up/down text
j4: description
j5: tread accessories
j6: structure - beam
j7: structure - stringers
j8: structure - cantilevered
j9: structure - monolithic Compatibility: introduced in Archicad 22
How to read j2?
In c, if mask & 2 works... How do I do it here?
No. 7 is a variable that I found to make it only a staircase because it doesn't work for me and doesn't even have a name that is in front of it.
2022-08-03 10:15 PM
Use "BITTEST" for that.
2022-08-04 04:27 AM
BITTEST (x, b)
Returns 1 if the b bit of x is set, 0 otherwise.
GLOB_MVO_STAIR_FLOOR_PLAN_COMP = 511
text2 0,-1, bittest(GLOB_MVO_STAIR_FLOOR_PLAN_COMP,1)
2
4
8
return 1 but 9 return 0
So, is j1 equal to 0?
j9 is 8
2022-08-04 12:05 PM
The value of the bit can be either 0 or 1, but written in decimal system the j9 bit is 256 when set (j9 set to 1).
2022-08-04 04:14 PM
bittest(511,256) is 0. it is correct.