cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
GDL
About building parametric objects with GDL.
SOLVED!

Get object material name set in the override panel

leandro_cavalheiro
Contributor

Hi,

I want to create an object that shows the name of its material.

But instead of creating a new parameter for the material, I would like to show the name of the built-in material set in the override panel. Is it possible?

 

leandro_cavalheiro_0-1765203205648.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
runxel
Hero

Yes, that's possible:

_name = ""
rrr = request("NAME_OF_MATERIAL", SYMB_MAT, _name)
text2 0, 0, _name

 

However afaik you can not test if that button has been pressed or not.

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»

View solution in original post

4 REPLIES 4
Solution
runxel
Hero

Yes, that's possible:

_name = ""
rrr = request("NAME_OF_MATERIAL", SYMB_MAT, _name)
text2 0, 0, _name

 

However afaik you can not test if that button has been pressed or not.

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»

Could you use WALL_SKINS_PARAMS? I think it's return changes when you toggle the override, so you could also compare it to SYMB_MAT to see if the override is active or not.

 

Ling.

AC22-28 AUS 3110Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660

If it's not a door/window or label I don't think you can access this properly. 🤔

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»

It worked, thanks!