GDL
About building parametric objects with GDL.

Labelling Fill to Read Surface Index

JP1
Contributor

Hi everyone,

First of all, big thank you for reading this and helping others in the field.

 

I am trying to make a label to return information of a fill.

When fill is set to building material FILL_BMAT successfully returns the assigned building material index.

However when fill is set to surface I am having trouble finding the right script to return the assigned surface index.

 

Can someone help me with this?

Cheers,

James


screengrab.jpg
3 REPLIES 3
Peter Baksa
Graphisoft
Graphisoft

Hi,

 

it is available only as an autotext, not a GDL global variable.

With GDL questions you will get quicker replies in the developer forum.

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest

@Peter Baksa thanks for your response.

I was able to use the Autotext GUID to display the full name of the surface assigned to a fill.

 

However I have another issue. I have named the surfaces with code and description ie. "[CONC01] Precast Concrete" and used STRSUB to display only the code inside the brackets. It appears this is not possible with Autotext GUID.

 

Is there a way around this?

Peter Baksa
Graphisoft
Graphisoft

Archicad's attitude is that decorative 2D elements shouldn't have data assigned to them, so it is not possible from GDL.

Try to use model elements with properties instead. Properties and building material properties are accessible from labels:

https://community.graphisoft.com/t5/Developer-forum/Extracting-Building-Material-Properties-with-a-G...

https://community.graphisoft.com/t5/Developer-forum/Possible-to-use-element-property-value-in-a-labe...

 

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest