Collaborate forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Building Material Names out of Library Objects

gdford
Booster
I create a collection of morphs each of which has a different building material assigned to it.
Then i select the collection of morphs and turn them into one library object.
I place that object and i open the objects selection settings and i see a list of all of the building materials from the original morphs.
This is cool.... but I can not find a way to pull this building material information out of the object and into a label.
Does anyone have any thoughts on this?
Gary Ford
Self Employed - Modeling, Estimating, Construction
Archicad 12-25
Win 10 - ASUSTeK Zephyrus M GU502GV - 64 bit
Intel(R) Core(TM) i7-9750H CPU @ 2.60 GHz
16.0 GB ram
3 REPLIES 3

Laszlo Nagy
Community Admin
Community Admin
Unfortunately, this is not possible yet. One way to achieve this would be to create an Expression-based Property and obtain the Library Part parameter in that Expression. However, Library Part parameters are not available in Expressions.
This functionality has been wished for before.
The only way to get the Library Part parameters is in Schedules. In Labels, it is not possible.
....................................................................................................
Laszlo Nagy, Lead Moderator, Community Admin
Get Archicad Tips at https://twitter.com/laszlonagy
AMD Ryzen 1700X CPU, 48 GB RAM, NVidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), WIN10 PRO ENG, AC20-AC25
Loving Archicad since 1995

Barry Kelly
Moderator
LaszloNagy wrote:
The only way to get the Library Part parameters is in Schedules. In Labels, it is not possible.
It is possible, but it is but it is not pretty (but I may be doing it the hard way).
You have to create your own label object and you need to know the parameter name for the building material.

You use ... n = REQUEST ("ASSOCLP_PARVALUE", expr, name_or_index, type, flags, dim1, dim2, p_values)
in the label script to access the

Where 'expr' is the parameter name of the building material from the object (in quotes).

Then that returns the index number of the Building Material to 'p_values'.
Because that is a number you must convert it to the Building material name.

So something like this in the label master script.

rrr=REQUEST ("ASSOCLP_PARVALUE", "buildingMatAttribute_1", name_or_index, type, flags, dim1, dim2, p_values)

nnn = REQUEST ("Name_of_building_material", p_values, name)


Then you use a TEXT2 or Paragraph to show the name in the label in the 2D script.


So you need to know the name of the Building Material parameter (or parameters if there is more than one) so you can request it in the label.
I guess you could create a parameter in the label that would allow you to manually type in the object parameter name or names.

I know it is possible to list ALL parameters of an object (I have seen this done in an object created by Frank-Beister + Jochen Sühlo).
But I am yet to see (or try to create) a label that allows you to choose from a list of available parameters.
Hence why as far as I know, you have to hard code the object parameter name into the label object.

Barry.

One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

gdford
Booster
This is what I figured.
Surely since Building Materials have become the ruling data source, accessing building material data will get easier out of the box.
Thanks to all who have responded!!
Gary Ford
Self Employed - Modeling, Estimating, Construction
Archicad 12-25
Win 10 - ASUSTeK Zephyrus M GU502GV - 64 bit
Intel(R) Core(TM) i7-9750H CPU @ 2.60 GHz
16.0 GB ram

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!