Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Attribute defs IND(material,"") query

Anonymous
Not applicable
Howdy
Can anyone point me in the right direction for info on defining a material that I can call up using the 'ind' thingy, but is actually a parametric material selection? Or is that tail chasing?

I need to define material MYCOLOUR which would be called from the parameters selection OR be able to remove the ind(material.. from groups and replace it without causing it to nuke the last 3 lines of coordinates.

Thanks in advance
7 REPLIES 7
Laszlo Nagy
Community Admin
Community Admin
I do not fully understand what you are trying to do but from what I understand I believe this cannot be done with GDL.
If you explain it further (maybe with illustrations) then I might say with some more conviction that it is not possible.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28
Anonymous
Not applicable
See if this post helps you.

Similar Problem Solved
Anonymous
Not applicable
Excellent, removing the ind(material...) does it - less is more! Cheers
Laszlo Nagy
Community Admin
Community Admin
Can you post the solution?
I am curious of how it worked out.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28
Anonymous
Not applicable
I had made a collection of bits that were created and given an indexed material value that I wanted to control parametrically, basically as per the post from Wrathchild the entire ind(material...) chains could be replaced by the parameter name - the point I missed when first trying this was the need to get all of them for each element.

Before
sprism_{2} "Paint-01","Paint-01","Paint-01",
57, 0, 0, 1, 0, -1.495322479477, 0,
0, 0, 1, 0, 0, 0,
-0.6325, 1.103805482683E-16, 79, ind(material,"Paint-01"),
-0.6285229727575, -0.07081753113534, 79, ind(material,"Paint-01"),
-0.616641904455, -0.1407444907274, 79, ind(material,"Paint-01"),
-0.59700620642, -0.2089015066866, 79, ind(material,"Paint-01"),
-0.5698628089483, -0.2744314649919, 79, ind(material,"Paint-01"),

After
sprism_{2} AC_SPK_MAT, AC_SPK_MAT, AC_SPK_MAT,
57, 0, 0, 1, 0, -1.495322479477, 0,
0, 0, 1, 0, 0, 0,
-0.6325, 1.103805482683E-16, 79, AC_SPK_MAT,
-0.6285229727575, -0.07081753113534, 79, AC_SPK_MAT,
-0.616641904455, -0.1407444907274, 79, AC_SPK_MAT,
-0.59700620642, -0.2089015066866, 79, AC_SPK_MAT,
-0.5698628089483, -0.2744314649919, 79, AC_SPK_MAT,


Probably really obvious now DOH!
Anonymous
Not applicable
Nothing like coding to make you feel stupid....lol
Laszlo Nagy
Community Admin
Community Admin
OK, I see.
So you skipped using the IND() part entirely.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28