BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

GDL
About building parametric objects with GDL.
SOLVED!

Where can GLOB_VIEW_TYPE = 7 be used?

LeeJaeYoung
Virtuoso

Where can GLOB_VIEW_TYPE = 7 be used?

LeeJaeYoung_0-1659454462223.png

text2 0,0,GLOB_VIEW_TYPE

AC27 on window 11
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
runxel
Legend

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)

Lucas Becker | AC 27 on Mac | Author of Runxel's Archicad Wiki | Editor at SelfGDL | 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
Legend

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)

Lucas Becker | AC 27 on Mac | Author of Runxel's Archicad Wiki | Editor at SelfGDL | 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.

AC27 on window 11

Use "BITTEST" for that.

Lucas Becker | AC 27 on Mac | Author of Runxel's Archicad Wiki | Editor at SelfGDL | 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

 

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

Lucas Becker | AC 27 on Mac | Author of Runxel's Archicad Wiki | Editor at SelfGDL | 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.

AC27 on window 11
Learn and get certified!

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!