cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Archicad C++ API
About Archicad add-on development using the C++ API.

How to obtain its material through element

WalterWhite
Participant

How to obtain its material through elements

5 REPLIES 5
Barry Kelly
Moderator

I do not understand the question.

Do you mean how do you obtain the material of an element?

Building Material or Surface Material?

What type of element, object, composite wall, beam, slab?

 

As with your other question, where are you trying to get this information?

In a label, in GDL API (add-on), schedule?

Let me know and i will move this post to the appropriate forum.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
WalterWhite
Participant

C++ API(add-ons)

Surface Material, beam

You have to access the memo of the beam element IIRC (even if it's a beam with a single segment):
memo.beamSegments[0].bottomMaterial

Or something like this, don't have time to try it myself right now.

Bernd Schwarzenbacher - Archicad Add-On Developer - Get Add-Ons & Archicad Tips on my Website: Archi-XT.com

Thank you, I will try it.