cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

Where can GLOB_VIEW_TYPE = 7 be used?

LeeJaeYoung
Advisor

Where can GLOB_VIEW_TYPE = 7 be used?

LeeJaeYoung_0-1659454462223.png

text2 0,0,GLOB_VIEW_TYPE

AC25 5010 on window 11
1 ACCEPTED SOLUTION

Solution
runxel
Ace

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)

AC 24 [ger] | Win 10 | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

View solution in original post

6 REPLIES 6

Solution
runxel
Ace

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)

AC 24 [ger] | Win 10 | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

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.

AC25 5010 on window 11

Use "BITTEST" for that.

AC 24 [ger] | Win 10 | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

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

 

AC25 5010 on window 11

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).

AC 24 [ger] | Win 10 | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

bittest(511,256) is 0. it is correct.

AC25 5010 on window 11

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!