We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2022-10-02 09:02 AM - last edited on 2023-05-16 11:56 PM by Gordana Radonic
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!
Solved! Go to Solution.
2022-10-02 01:28 PM
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.
2022-10-02 01:28 PM
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.
2022-10-02 06:09 PM
@runxel I see a solution to cropped grid lines on my to do list 👍
2022-10-02 06:51 PM
For me it is hard to understand and use these GDL code, But I will try! Thank you!
2022-10-03 04:58 AM
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.
2022-10-04 06:13 PM
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.😁