cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
leandro_cavalheiro
Contributor

Get object material name set in the override panel

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 Solution

Accepted Solutions
runxel
Moderator

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»

Go to post

4 Replies 4
runxel
Moderator

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»
Lingwisyer
Guru

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-29 AUS 3200Help 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
runxel
Moderator

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»
leandro_cavalheiro
Contributor

It worked, thanks!

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!