cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
William Yan
Expert

How can I read the grid name by using label tool? or using custom GDL label to read?

Hi guys! I am thinking to read the Grid element's name with Label tool.

but I can't get it. Did anybody know this? THank you!

Snipaste_2022-10-02_14-59-36.png

AC 26 5002 CHI, Windows 10
1 Solution

Accepted Solutions
runxel
Moderator

Labeling Grid lines is not officially supported, but it works.

Grids are just objects, their GLOB_ELEM_TYPE will yield "1" (=object), so they are not really first class members.

Anyway, since it's an object, you can just do

request('ASSOCLP_PARVALUE', 'AC_MarkerText_1', index, type, flags, dim1, dim2, AC_MarkerText_1)

and "AC_MarkerText_1" will have the grid's name.

Lucas Becker | AC 29 on Mac (Sequoia) | Graphisoft Insider Panelist | Akroter.io – high-end GDL objects | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text

My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»

Go to post

5 Replies 5
runxel
Moderator

Labeling Grid lines is not officially supported, but it works.

Grids are just objects, their GLOB_ELEM_TYPE will yield "1" (=object), so they are not really first class members.

Anyway, since it's an object, you can just do

request('ASSOCLP_PARVALUE', 'AC_MarkerText_1', index, type, flags, dim1, dim2, AC_MarkerText_1)

and "AC_MarkerText_1" will have the grid's name.

Lucas Becker | AC 29 on Mac (Sequoia) | Graphisoft Insider Panelist | Akroter.io – high-end GDL objects | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text

My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
DGSketcher
Legend

@runxel  I see a solution to cropped grid lines on my to do list 👍

Apple iMac Intel i9 / macOS Sonoma / AC27UKI (most recent builds.. if they work)
William Yan
Expert

For me it is hard to understand and use these GDL code, But I will try! Thank you!

AC 26 5002 CHI, Windows 10
Dendarii
Booster

Another workaround is to name the Grid 'Element ID' the same as the Grid number or letter.

 

Go to Grid Element Selection Settings -> Classification and Properties -> ID (set to A, B, 01 etc. to match the grid name).

 

Then you can label the grid using the 'Element ID' autotext with either a pointer as you have shown or save as a custom label with circle/fill/autotext to match the grid heads.

Architect

Archicad user since 2001
William Yan
Expert

I worked out. Although there are few more questions in my head, I made a label to read the text of the axis. Thank you.😁

AC 26 5002 CHI, Windows 10

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!